Before running the project make sure the docker package is installed and all the globally reqired npm pacakages are installed.
In linux append sudo when executing below mentioned docker command.(Incase of error)
POSTGRES_USER=root
POSTGRES_PASSWORD=1234
POSTGRES_DB=blog-summary
PGADMIN_DEFAULT_EMAIL=admin@admin.com
PGADMIN_DEFAULT_PASSWORD=admin
(Backend) .env (Note : The database credentials should be same as in docker.en in root. You can use same env except the openAi key)
# Database creds
DB_PORT=5432
DB_HOST=postgres
DB_USERNAME=root
DB_PASSWORD=1234
DB_NAME=blog-summary
# OPEN AI KEY
# Open Ai key can be aquired from the link below
# https://platform.openai.com/account/api-keys
OPEN_AI_KEY=<key>
NODE_ENV=dev
POSTGRES_DB=blog-summary
POSTGRES_USER=root
POSTGRES_PASSWORD=1234
(Frontend) .env (kindly use the same below given env for frontend. As backend is configured at port 4001)
REACT_APP_BACKEND_URL = 'http://localhost:4001'
You can access project web interface(Frontend) at localhost:3000