Sample Go-Lang Fiber Project Structure
- Please clone or download this repository.
- Prepare postgres database, or use docker, you can type
docker-compose up
OR
docker-compose up -d
- add .env file to setup your database connection
installing migrator tools
download from golang migrate in release page- run
make migrate-up
- run the golang server
make run
- Web : GoFiber
- Validation : Go-Ozzo
- Configuration : GoDotEnv
- Database : MongoDB, Postgres, MySQL
Controller -> Service -> Repository
- Entity is representing database table
- Model is representing payload and response
- Helper is representing anything what you need to help your coding process