Bootstrap new project based on Gin framework.
All apps are declared here for example api v1
or api v2
and etc.
Project start entry. only one main file should be here.
Different config based on running env
must be declared here. also env.json
are overwrite all other config and default.json
file are used when needed config are not found in any other config files.
All project constants are stored in this folder.
All project middlewares stored in this file. please note that these middleware are all identical to gin middlewares.
JWT authentication are configured. all you have to do is to define appropriate db source in middleware and define your own custom jwt schema
Project database models stored here.
This folder store all project routes and you can split different route name space here for example api/v1
This directory serve as project helpers functions and logic. all project wide common and helper functions stored here.
Sina Abadi