- Notifications
You must be signed in to change notification settings - Fork1
📝 Production-ready backend template with go-chi router for Create Go App CLI.
License
NotificationsYou must be signed in to change notification settings
create-go-app/chi-go-template
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
go-chi backend template forCreate Go App CLI
Chi is a lightweight, idiomatic and composable router for building Go HTTP services.
- Create a new project with Fiber:
cgapp create# Choose a backend framework:# net/http# fiber# > chi
- Rename
.env.exampleto.envand fill it with your environment values. - InstallDocker and the following useful Go tools to your system:
- golang-migrate/migrate for apply migrations
- github.com/securego/gosec for checking Go security issues
- github.com/go-critic/go-critic for checking Go the best practice issues
- github.com/golangci/golangci-lint for checking Go linter issues
- Run project by this command:
make docker.run
- Go to127.0.0.1:5000/hc/status and see
HTTP 200 OK.
| Name | Version | Type |
|---|---|---|
| go-chi/chi | v5.0.7 | core |
| joho/godotenv | v1.4.0 | config |
# .env# Stage status to start server:# - "dev", for start server without graceful shutdown# - "prod", for start server with graceful shutdownSTAGE_STATUS="dev"# Server settings:SERVER_HOST="0.0.0.0"SERVER_PORT=5000SERVER_READ_TIMEOUT=5SERVER_WRITE_TIMEOUT=10SERVER_IDLE_TIMEOUT=120
Apache 2.0 ©Vic Shóstak &True web artisans.
About
📝 Production-ready backend template with go-chi router for Create Go App CLI.
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.