This is the back-end of UpTech social media website
Use the package manager npm to install all dependencies.
npm i --save
After installing all dependencies, you must create a new file .env
and put inside it the following.
ENV=development
PORT=5000
DB_DNS_SRV=disabled
DB_HOST=localhost
DB_PORT=27017
DB_USER=DB USER
DB_PASS=DB PASS
DB_NAME=DB NAME
DB_HOST_PRODUCTION=xxxxcluster.xxxxx..net
DB_PORT_PRODUCTION=27017
DB_USER_PRODUCTION=DB USER
DB_PASS_PRODUCTION=DB PASS
DB_NAME_PRODUCTION=DB NAME
JWT_ACCESS_TOKEN_SECRET_KEY=supre-secret-key-here
JWT_REFRESH_TOKEN_SECRET_KEY=supre-secret-key-here
JWT_CONFIRMATION_SECRET_KEY=supre-secret-key-here
JWT_FORGOR_PASSWORD_SECRET_KEY=supre-secret-key-here
MAIL_SMTP_HOST=smtp.xxx.com
MAIL_SMTP_PORT=2525
MAIL_SMTP_USER=SMTP USER
MAIL_SMTP_PASS=SMTP PASS
MAIL_SMTP_SENDER=MAIL SENDER
USE_TLS=false
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASS=REDIS PASS
Note: change all the above with your credentials.
In case you wanna run the script :
npm start
We use postman to document our API's. all endpoints with their documentation here