Sources for creating a web server in Golang using the Echo Package.
Starting to create a project with connection to database to use echo and jwt
.
├── cmd main applications of the project
│ └── GolangApi the API server application
├── internal private application and library code
│ ├── connection connection to dabase
│ ├── dao Data Access Object
│ ├── handler controller
│ ├── models entity definitions
│ └── utils utilities to use
└── database
Clone the project:
git clone https://github.com/CristhoperDev/go-echo-jwt.git
cd into it:
cd go-echo-jwt
cd into database:
cd database
upload database:
Upload database on mysql
generate executable:
cd cmd/GolangApi
go build
run the server:
go run ./GolangApi/