https://github.com/kenfront/gin-todo-list
Basic gin for Todo list
https://github.com/kenfront/gin-todo-list
docker-compose gin-gonic nextjs nginx
Last synced: 3 months ago
JSON representation
Basic gin for Todo list
- Host: GitHub
- URL: https://github.com/kenfront/gin-todo-list
- Owner: KenFront
- License: mit
- Created: 2021-06-09T02:20:59.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-30T09:19:32.000Z (almost 3 years ago)
- Last Synced: 2025-01-18T08:36:30.834Z (over 1 year ago)
- Topics: docker-compose, gin-gonic, nextjs, nginx
- Language: Go
- Homepage:
- Size: 478 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
## Command
```bash
# 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
```bash
# 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
```bash
# 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
```bash
# 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