Skip to content
/ go-BasicWithEnt Public template

Provide application template for application using basically Gin, Entgo and authentication system with JWT

Notifications You must be signed in to change notification settings

louistwiice/go-BasicWithEnt

Repository files navigation

Documentation

Step 1: Set env file

Env name Description Example
SERVER_PORT Application running port :9000
DB_ROOT_PASSWORD Database root passwod
DB_NAME Database name
DB_USER Database User
DB_PASSWORD Database password
DB_HOST Database IP host localhost
ACCESS_TOKEN_HOUR_LIFESPAN Duration of authentication access token you in Login in Hour 1
REFRESH_TOKEN_HOUR_LIFESPAN Duration of authentication refresh token you in Login in Hour 1
ACCESS_TOKEN_SECRET Access Secret key that allow you to generate each login token secret_1246@@@@!!/shghj_---QaZerftQWWWfz
REFRESH_TOKEN_SECRET Refresh Secret key that allow you to generate each login token secret_1246@@@@!!/shghj_---QaZerftQWWWfz
TOKEN_PREFIX authorization token prefix used Bearer

Other environment variable will go there in this file

Step 2: Start mysql container

make db-start

Step 3: Start application

make go-server

About

Provide application template for application using basically Gin, Entgo and authentication system with JWT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages