Categorygithub.com/KenFront/gin-todo-list
module
0.0.0-20230730091929-0dfd234619f9
Repository: https://github.com/kenfront/gin-todo-list.git
Documentation: pkg.go.dev

# README

gin-todo-list

Description

Basic gin for Todo list

Environment

  • Docker: v20.10.7
  • Go: v1.16.5
  • golangci-lint: v1.41.0
  • Node.js: v16.17.1

Service Flow Chart

service flow chart

Command

# Launch go server
make start

# Update go module required packages
make update

# Set runtime enviroment
make setEnv

# Set database data volume path
make setDbPath

# Build go server image
make build

# Build next.js image
make buildApp

# Launch database with migrate
make upDB

# Launch all services
make upAll

# Shut down adn remove all services
make down

# Run unit test with cache
make test

# Run unit test without cache
make testAll

# Run golangci-lint
make lint

# Generate servers flow chart
make generateFlowChart FLOW_CHART=servers

Development

Develop gin server

# run first time
make setDbPath

# run first time or enviroment changed
make setEnv

# Launch database with migrate
make upDB

# Launch go server
make start

Develop next.js web

# run first time
make setDbPath

# run first time or enviroment changed
make setEnv

# Build go server image
make build

# Build next.js image
make buildApp

# Launch all sever service
make upAll

# To app root dictionary
cd ./app

# Run next.js web
npm run dev

Prevview

# run first time
make setDbPath

# run first time or enviroment changed
make setEnv

# Build go server image
make build

# Build next.js image
make buildApp

# Launch all services
make upAll

Postman

  • Set Enviroments domain(http://localhost)
  • Edit Collection Add API Key(Key: X-Service, Value: gin_server, Add to: Header)

Todolist

  • UI(React)
  • i18n
  • https setting
  • Cron
  • System log(MongoDb)
  • Swagger

# Packages

No description provided by the author