This is a golang boiler plate setup consisting of the follows.
- Database: MySql
- Restful apis for User model
- Authentication via JWT
- Authorization for public users, protected users and admins.
- Go installed
- MySql installed
- Create a dir named bacancy:
mkdir bacancy && cd bacancy
- Clone the repo inside bacancy repo:
https://github.com/bacancy/go-boiler-plate.git
- Create a new database (mysql) named "root". Connect with username and password "root", the host is 127.0.0.1 and port 3306
- Run
go get .
ingo-boiler-plate
folder to install dependancies - To run the project locally run
go run main.go
- To create a build run
go build