Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.38 KB

readme.md

File metadata and controls

57 lines (44 loc) · 1.38 KB

Store Service

Is a simple project golang application with Echo Go web framework using MySQL and JWT base authentication middleware

Configured with

  • 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

Installation

$ go get https://github.com/ifty123/simple_online_store.git

Running Your Application

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

Entities/Domain

  • User
  • Product
  • Category
  • Cart
  • Transaction

Documentation API

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