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
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.
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