Fiber backend template
for Create Go App
β‘οΈ Quick start guide
- Create a new app with this template by Create Go App CLI:
cgapp -p ./my-app -b fiber
- Go to the
./my-app
folder
- Run app by command:
task -s
βοΈ Please note: we're using Taskfile
as task manager by default.
βοΈ Description
Fiber is an Express
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.
People switching from Node.js to Go often end up in a bad learning curve to start building their webapps, this project is meant to ease things up for fast development, but with zero memory allocation and performance in mind.
π Documentation
π Requirements
β
Used packages
π Template structure
.
βββ .dockerignore
βββ .editorconfig
βββ .gitignore
βββ Dockerfile
βββ LICENSE
βββ README.md
βββ Taskfile.yml
βββ go.mod
βββ go.sum
βββ cmd
β βββ apiserver
β βββ 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
6 directories, 17 files
βοΈ Configuration
# ./configs/apiserver.yml
# Server config
server:
host: 127.0.0.1
port: 8080
# Database config
database:
host: 127.0.0.1
port: 5432
username: postgres
password: 1234
# Static files config
static:
prefix: /public
path: ./static
β οΈ License
MIT Β© Vic ShΓ³stak & True web artisans.