- clone the repository:
git clone https://github.com/Bardiesel/twitchhub-go-backend.git
- install packages:
go install
- config
.env
file:cp .env.example .env
- run the project:
you may add
go run main.go
-migrate
at the end of the command to migrate tables to database.
- root
* controllers
service_controller_name.go
* models
service_model_name.go
* routes
service_route_name.go
* service
service_name.go
important: remember to add service model to
AutoMigrate
insidemain.go
.