- Most tech stack & utilities from oculi
- Postgresql
- apib2swagger (optional, for regenerate api documentation)
- Copy
.env.example
to.env
. - Setup
.env
. Don't forget to start the database server before moving to the next step. - For development, run
go run main.go
. Or,go build main.go
and run the executable.
To use with nodemon: nodemon --exec go run main.go --signal SIGTERM
- Copy all example in
server/env
to the same directories and setup all of it. - Run
cd server
if you at project root. - Run
docker-compose up
Note: docker-compose intended to be used by server, because there are domain and reverse proxy setup.
All API are documented in localhost/docs. Live docs: Live Docs
(Please run the program in port 80 to use this hyperlink, or directly just access localhost:YOUR_PORT/docs)
- Install api2bswagger using
npm install -g apib2swagger
- Run
apib2swagger -i ./api/blueprint.apib -o ./resources/external/docs.json
Coded with <3 by ravielze