You must set up the database according to the instructions here.
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
Enter the following variables in an .env
file:
DB_USER
DB_PASSWORD
DB_NAME