fiber-boilerplate

module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2021 License: MIT

README

Fiber Boilerplate

Simple and scalable boilerplate for Fiber. Structure inspired by project-layout.

Directory Structure:

├── build
│   └── Dockerfile
├── cmd
│   └── example
│       └── main.go
├── config
│   └── example.toml
├── docker-compose.yaml
├── go.mod
├── go.sum
├── internal
│   ├── config
│   │   └── config.go
│   ├── controllers
│   │   └── article.go
│   ├── middlewares
│   │   └── token
│   │       └── token.go
│   ├── models
│   │   └── article_model.go
│   ├── routes
│   │   └── api.go
│   ├── utils
│   │   └── utils.go
│   └── webserver.go
├── LICENSE
├── README.md
└── storage
    ├── private
    │   └── example.html
    ├── private.go
    └── public

Usage:

You can run that commands to run project:

go mod download

go run cmd/example/main.go or air -c .air.toml if you want to use air

Docker:
docker-compose build
docker-compose up

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL