git clone https://github.com/ARF-DEV/bluesky-API.git- Make sure you have installed docker and docker compose. I recommended you to install docker desktop because it installed docker CLI and docker compose.
- Run this command:
docker compose up --build- To stop the program you can press
ctrl+c - After that run this command:
docker compose down --remove-orphans --volumes- Make sure you have golang installed in your device. If not you can follow instruction here
- You can install postgres in your device or you can install docker to run the postgres container (recommended)
- We're gonna use docker for this one
- Run this command to run postgreSQL:
docker run --name pgsql-dev -rm -h localhost -e POSTGRES_PASSWORD=test -dp 5432:5432 postgres- use
exitto exit the psql and the bash. - download modules using this command:
go mod download- run the program using this command:
go run main.go- To stop the program you can press
ctrl+c - To stop the database you can run this command:
docker rm -f pgsql-dev- Make sure you run the database first (with docker compose or manually).
- Run this command:
go test -v ./...- Install NPM
- Open
documentationdirectory on terminal - Run This Command to serve the API documentation :
npx serve- Open the link to access the API documnetation
