mhrdini / greenlight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Greenlight API

Database setup

You must set up the database according to the instructions here.

Running the server

Within the project directory:

> cd /cmd/api
> air # To close the server, press Ctrl+C

If the port is being used:

> kill $(lsof -t -i:4000) # replace 4000 with any other port number you want

Environment variables

Enter the following variables in an .env file:

  • DB_USER
  • DB_PASSWORD
  • DB_NAME

About


Languages

Language:Go 100.0%