Categorygithub.com/Ericarthurc/GoFiber-Rest-API-Mongo_Template
modulepackage
0.0.0-20210908010543-464c9f9eda0b
Repository: https://github.com/ericarthurc/gofiber-rest-api-mongo_template.git
Documentation: pkg.go.dev

# README

GoFiber MongoDB Rest API Template

Demonstrates:

  • Full CRUD REST API
  • MongoDB native driver; no use of orm/odm
  • How to structure a production ready API (Model/Controller/Routes)
  • How to implement custom JSON schema validation (database/database.go)
  • How to implement custom collection indexes (database/database.go)

Start:

  • Make sure to setup environmental variables before running

Environmental Variables:

File Path: ./config/config.env

  • PORT
  • MONGO_URI

Run server:

go run server.go

Use fresh for hot reload:

go get github.com/pilu/fresh
fresh

Tools:

  • GoFiber v2
  • Mongo-driver

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author