Server of Agro-based e- commerce/Service
touch .env
Fill it with -
# .env
PROJECT_NAME=agro-e-commerce
# Set it to 'production' when deploying
NODE_ENV=development
# Set the postgres database url when deploying
POSTGRES_DATABASE_URL=
# Optional, Just for local development
PORT=5000
HOST_URL=http://localhost
# Set it to true to create a role: 'ADMIN' account else leave blank
# Use it after hosting the app to create the first Admin account
# Without this env variable no one can create admin account
ADMIN_MODE=
# leave it blank if you don't want to use mongo DB
USE_MONGO_DB=
MONGO_DB_URI=mongodb://localhost/agro-e-commerce
POSTGRES_DATABASE=agro-e-commerce
POSTGRES_DATABASE_USER=postgres
POSTGRES_DATABASE_PASSWORD=
JWT_SECRET=mysupersecretkey
JWT_TIMEOUT=60m
# To manage media assets (https://cloudinary.com/)
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
Application will check for an ‘x-token’ key value pair in the HTTP header to consider as a Authenticate User.