ARF-DEV / WoiShop-API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WOISHOP API

Clone Repo

git clone https://github.com/ARF-DEV/bluesky-API.git

Run via Docker Compose (Recommended)

  1. Make sure you have installed docker and docker compose. I recommended you to install docker desktop because it installed docker CLI and docker compose.
  2. Run this command:
docker compose up --build
  1. To stop the program you can press ctrl+c
  2. After that run this command:
docker compose down --remove-orphans --volumes

Run manually

  1. Make sure you have golang installed in your device. If not you can follow instruction here
  2. You can install postgres in your device or you can install docker to run the postgres container (recommended)
  3. We're gonna use docker for this one
  4. Run this command to run postgreSQL:
docker run --name pgsql-dev -rm -h localhost -e POSTGRES_PASSWORD=test -dp 5432:5432 postgres
  1. use exit to exit the psql and the bash.
  2. download modules using this command:
go mod download
  1. run the program using this command:
go run main.go
  1. To stop the program you can press ctrl+c
  2. To stop the database you can run this command:
docker rm -f pgsql-dev

Test

  1. Make sure you run the database first (with docker compose or manually).
  2. Run this command:
go test -v ./...

How to open API Documentation

  1. Install NPM
  2. Open documentation directory on terminal
  3. Run This Command to serve the API documentation :
npx serve
  1. Open the link to access the API documnetation

ERD Design

Latest ERD Design

About


Languages

Language:Go 99.6%Language:Dockerfile 0.4%