.
|
├── config # contains config set up
├── constant # contains constant variable
├── database # database connection
├── delivery
| ├── http # HTTP delivery (API)
├── entites # entities
├── helper # contains all services
├── middleware # middleware that used
├── repository # all database logic
├── services # service that can be used
├── template # template for html format
├── usecase # all business logic
│ |
. .
https://golang.org/doc/install/source
- Edit database config in config.json
- Set env in server using
export
go build
./backend-tpi migrate
./backend-tpi seed
- It will create superadmin account with username superadmin and password superadmin
- Login with superadmin account and change the password