/go-fiber-postgres-api

I want to learn Go, so I implemented a basic API with Fiber and Gorm.

Primary LanguageGoMIT LicenseMIT

GO-CRUD

I want to learn Go, so I implemented a basic API with FIBER and GORM which implements:

  • CRUD operations for a simple Users model
  • Users login where JWT is used
  • CRUD operations for a simple blog model (connecting to users by foreign key)
  • Connection to a database (I used postgresql)
  • Environment variables with godotenv

Disclaimer

This is an introductory project to look how Go works. This project is not production ready and it has some bad practices. All improvements and comments are very welcome.

Future work

Some improvements need to be implemented before the app is ready for production

  • Implement middlewares
  • Implement testing
  • Accelerate queries
  • Add descriptions and metadata to functions