An implementation for Restful APIs for user managements
api/v1
bootstrap/
lib/
migrations/
models/
public/
repository/
services/
static/
Make sure you have installed all the following prerequisites on your machine:
To run the application you'll need to create a database and copy .env.example
file into .env
and update the DB credentials,
also you need to add the DB credentials into the connection string in dbconfig.yml
.
Once changed you'll need to run the migrate.sh
file with the following command to create the users table in the database
bash migrate.sh up
To start the application run the command
go run server.go