Β Β Β
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
- Create a new project:
cgapp create
- 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
server:
host: 0.0.0.0
port: 5000
# Database config
database:
host: 127.0.0.1
port: 5432
username: postgres
password: 1234
# Static files config
static:
prefix: /
path: ./static
β οΈ License
MIT Β© Vic ShΓ³stak & True web artisans.