Skip to content

cecep31/go_clean_orm

Repository files navigation

fibercleanall

REST API Fiber boilerplate

⭐️ Features

  • REST API oriented
  • Book CRUD example
  • middleware
    • compress
    • CORS
    • ETag
    • recover
    • helmet
    • logger (optional)
    • limiter (optional)
  • Environment config with .env
  • JSON Error handling
  • GORM V2
  • Docker
  • Live reloading (Air or Fresh)
  • Testing

⚙️ Usage

You can fork this repo or use fibercleanall as a package

🚧 Development

Check .env file for database variables

# Install postgres or use docker-compose
docker-compose up postgres
go test ./...
air
# or fresh

🐳 Docker

# postgres + server
docker-compose up

# Building and running docker image (you will need postgres)
docker build -t fibercleanall .
docker run -d -p 8080:8080 fibercleanall

# only postgres
docker-compose up postgres

📜 Changelog

We use GitHub releases.

🔐 Security

To report a security vulnerability, please use the Tidelift security contact.

📄 License

This project is licensed under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published