Fiber backend template for Create Go App CLI

go version go cover go report license

Fiber is an Express.js inspired web framework build on top of Fasthttp, the fastest HTTP engine for Go. Designed to ease things up for fast development with zero memory allocation and performance in mind.

⚑️ Quick start

  1. Create a new project:
cgapp create
  1. Run project by this command:
task -s

☝️ We're using Taskfile as task manager for running project on a local machine by default. If you've never heard of Taskfile, we recommend to read the Docs and use it, instead of Makefile.

βœ… Used packages

πŸ—„ Template structure

β”œβ”€β”€ .dockerignore
β”œβ”€β”€ .editorconfig
β”œβ”€β”€ .gitignore
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ Taskfile.yml
β”œβ”€β”€ go.mod
β”œβ”€β”€ go.sum
β”œβ”€β”€ main.go
β”œβ”€β”€ configs
β”‚   └── apiserver.yml
β”œβ”€β”€ static
β”‚   └── index.html
└── pkg
    └── apiserver
        β”œβ”€β”€ config.go
        β”œβ”€β”€ config_test.go
        β”œβ”€β”€ error_checker.go
        β”œβ”€β”€ error_checker_test.go
        β”œβ”€β”€ new_server.go
        β”œβ”€β”€ new_server_test.go
        β”œβ”€β”€ routes.go
        β”œβ”€β”€ utils.go
        └── utils_test.go

4 directories, 17 files

βš™οΈ Configuration

# ./configs/apiserver.yml

# Server config
  port: 5000

# Database config
  port: 5432
  username: postgres
  password: 1234

# Static files config
  prefix: /
  path: ./static

⚠️ License

MIT © Vic ShΓ³stak & True web artisans.

Fiber Go Template

πŸ“ Fiber backend template for Create Go App CLI.

Fiber Go Template Info

⭐ Stars 13
πŸ”— Homepage
πŸ”— Source Code
πŸ•’ Last Update 8 months ago
πŸ•’ Created a year ago
🐞 Open Issues 0
βž— Star-Issue Ratio Infinity
😎 Author create-go-app