Skip to content

Bardiesel/twitchhub-go-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwitchHub Golang Backend

setup development environment:

  1. clone the repository:
    git clone https://github.com/Bardiesel/twitchhub-go-backend.git
  2. install packages:
    go install
  3. config .env file:
    cp .env.example .env
  4. run the project:
    go run main.go
    you may add -migrate at the end of the command to migrate tables to database.

base structure for new services:

- 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 inside main.go.

Releases

No releases published

Packages

No packages published