Skip to content
This repository was archived by the owner on Jan 24, 2026. It is now read-only.

vm-palanhaar/gab-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

444 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goanubhavbharat backend server

How to run project in local development (without docker)

  1. Create the following files/folders
    • files :
      1. .env in the root folder
      2. .env.* in the root folder
    • folders : 2. media folder in any location (folder location to be used in env file)
  2. Add environment variable in .env file
    1. APP_ENV="local" #local,prod
  3. Add environment variables in .env.APP_ENV file (with example)
    1. PORT=":8080:
    2. API_REQUEST_MAX_BYTES
    3. DB_DATABASE="goanubhavbharat"
    4. DB_PASSWORD="admin"
    5. DB_USERNAME="postgres"
    6. DB_PORT="5432"
    7. DB_HOST="localhost"
    8. DB_SCHEMA="public"
    9. DB_MAX_OPEN_CONNS=10
    10. DB_MAX_IDLE_CONNS=10
    11. DB_MAX_OPEN_TIME="5m
    12. PUBLIC_MEDIA_FILE_PATH="../media"
  4. Install all dependencies (command: go mod download)
  5. Run project (command: go run cmd/api/main.go)