API for Pulse Messenger
- install the dependencies with node lts/hydrogen
npm i
- create a .env file
DATABASE_ACCESS=Your mongo connection string
JWT_SECRET=Your JWT secret
APP_PORT=Your port
S3_BASE_URL=Your S3 base URL
EMAIL_USERNAME=Your gmail username
EMAIL_PASSWORD=Your gmail password
CLIENT_PATH=URL to your client
- run the API with
npm run build
npm start
- test the API with
npm run watch
# build with
docker build -t backend .
# run with
docker run
-p 3000:3000
--env-file .env
backend