fiber-boilerplate

module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT

README

Fiber Boilerplate

Simple and scalable boilerplate to build powerful and organized REST projects with Fiber.

Structure inspired by project-layout.

Directory Structure:

├── build
│   ├── Dockerfile
│   └── DockerfileAir
├── cmd
│   └── example
│       ├── generate.go
│       └── main.go
├── config
│   └── example.toml
├── docker-compose.yaml
├── go.mod
├── go.sum
├── LICENSE
├── pkg
│   ├── controllers
│   │   ├── article_controller.go
│   │   └── contorller.go
│   ├── database
│   │   ├── database.go
│   │   ├── schemas
│   │   │   └── article.go
│   │   └── seeds
│   │       └── article_seeder.go
│   ├── helpers
│   │   ├── logger.go
│   │   └── webserver.go
│   ├── middlewares
│   │   ├── register.go
│   │   └── token
│   │       └── token.go
│   ├── requests
│   │   └── article_request.go
│   ├── router
│   │   └── api.go
│   ├── services
│   │   ├── article_service.go
│   │   └── services.go
│   └── utils
│       ├── config
│       │   └── config.go
│       ├── response
│       │   ├── response.go
│       │   └── validator.go
│       └── utils.go
├── README.md
└── storage
    ├── ascii_art.txt
    ├── private
    │   └── example.html
    ├── private.go
    └── public
        └── example.txt

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

CUSTOM="Air" docker-compose up # Use with Air

Tech Stack:

Jump to

Keyboard shortcuts

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