Is a simple project golang application with Echo Go web framework using MySQL and JWT base authentication middleware
- gorm: ORM library for Golang
- jwt-go: JSON Web Tokens (JWT) as middleware
- godotenv: go dotenv library
- Go Modules
- Built-in RequestID Middleware
- Feature MySQL 5.7
- Environment support
$ go get https://github.com/ifty123/simple_online_store.git
Rename .env.example to .env and place your database credentials and jwt secret key
$ mv .env.example .env
$ go run main.go
migrate and seed database
$ go run main.go -m=migrate -s=all
- User
- Product
- Category
- Cart
- Transaction
you can see postman documentation : https://www.postman.com/winter-meteor-307866/workspace/simple-store-service or run the app, and see localhost:{port}/swagger/index.html