- Create the following files/folders
- files :
- .env in the root folder
- .env.* in the root folder
- folders : 2. media folder in any location (folder location to be used in env file)
- files :
- Add environment variable in .env file
- APP_ENV="local" #local,prod
- Add environment variables in .env.APP_ENV file (with example)
- PORT=":8080:
- API_REQUEST_MAX_BYTES
- DB_DATABASE="goanubhavbharat"
- DB_PASSWORD="admin"
- DB_USERNAME="postgres"
- DB_PORT="5432"
- DB_HOST="localhost"
- DB_SCHEMA="public"
- DB_MAX_OPEN_CONNS=10
- DB_MAX_IDLE_CONNS=10
- DB_MAX_OPEN_TIME="5m
- PUBLIC_MEDIA_FILE_PATH="../media"
- Install all dependencies (command: go mod download)
- Run project (command: go run cmd/api/main.go)
This repository was archived by the owner on Jan 24, 2026. It is now read-only.
vm-palanhaar/gab-backend
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|