StarSearch is a simple set of API endpoints to demonstrate Golang's strength in RESTful API development. It fetches data from Swapi API, transforms and send them as a Response
to different endpoints. See demo and documentation
- Go 1.19
- Postgresql 15 (You can also install with
sh install.sh db
on Linux) - Redis 7
To enable hot reload, install air: sh install.sh air
.
To install the demo and documentation sh install.sh docs
.
You can install and launch the app using docker-compose up
sh serve.sh app
cd app && go run main.go
If you installed air, then you can do
cd app && air
sh build.sh app
cd app && go build -o starsearch main.go