Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

📝 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

go version go report license

Chi is a lightweight, idiomatic and composable router for building Go HTTP services.

⚡️ Quick start

  1. Create a new project with Fiber:
cgapp create# Choose a backend framework:#   net/http#   fiber# > chi
  1. Rename.env.example to.env and fill it with your environment values.
  2. InstallDocker and the following useful Go tools to your system:
  1. Run project by this command:
make docker.run
  1. Go to127.0.0.1:5000/hc/status and seeHTTP 200 OK.

📦 Used packages

NameVersionType
go-chi/chiv5.0.7core
joho/godotenvv1.4.0config

⚙️ Configuration

# .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

⚠️ License

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

Stars

Watchers

Forks

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp