Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frani/go-fiber-api
⚡️ ➡ 🐭 Fiber - Boilerplate
https://github.com/frani/go-fiber-api
boilerplate fiber golang
Last synced: 24 days ago
JSON representation
⚡️ ➡ 🐭 Fiber - Boilerplate
- Host: GitHub
- URL: https://github.com/frani/go-fiber-api
- Owner: frani
- License: mit
- Created: 2023-03-19T17:55:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T18:35:09.000Z (11 months ago)
- Last Synced: 2024-07-08T09:52:23.654Z (6 months ago)
- Topics: boilerplate, fiber, golang
- Language: Go
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Fiber API with Mongo
Current boilerplate is a migration from and old NodeJS template that I used to use.
# Folder structure
```sh
| Folder | Suffix Extention | description |
| ------------ | ---------------- | -------------------------------------------------------------------------------------- |
| /routes | \*.route.js | Fiber Routes |
| /validations | \*.validation.js | Request Validation Schemas |
| /middlewares | \*.mid.js | custom Fiber middlewares |
| /controllers | \*.controller.js | controller (a.k.a. handlers ) |
| /services | \*.service.js | business logic, incluye intertal or externaa servicies as SDK (service layer) |
| /database | \*.db.js | Function to manage Mongoose schemas |
| /models | \*.model.js | Mongoose models/models (data layer) |
| /config | \*.conf.js | Environment variables and configuration related things |
| /helpers | \*.helper.js | Helpful functions that can be used in many places but is not necesary a business logic |
| /tests | \*.test.js | well... just tests for your API |
```