Skip to content

Chandara-Sin/supergo-api

Repository files navigation

SUPERGO-API

run time: Makefile

Go: Version

Development

Go version 1.21.1

create config.yml

app:
  host: localhost
  port: "8080"
mongo:
  uri: mongodb://localhost:27017
  user:
  password:
  db:
auth:
  sign: <signagure-value>
api:
  key: x-api-key
  public: <public-key-value>

Use Docker + MongoDB

make up

Down Docker + MongoDB

make down

Remove Docker Volumns

make remove volume

Run server

serve on http://localhost:8080

make run

Docker

create config-local.yml

app:
  host: localhost
  port: "8080"
mongo:
  uri: mongodb://mongodb:27017
  user:
  password:
  db:
auth:
  sign:
api:
  key:
  public:

Run Server + Docker

serve on http://localhost:8080

docker-compose up -d