Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 588 Bytes

File metadata and controls

29 lines (20 loc) · 588 Bytes

Setting up .env

Duplicate the .env.sample file and rename it to .env, fill in the missing values.

ENV=<PROD | TEST>
ORIGIN=<frontend url>
PORT=<port no.>

Note: ORIGIN and PORT have default values http://localhost:3000 and 8002 respectively

Run Independently

To run communication-service independently (i.e. without other services running), run the following commands:

Navigate to the ./communication-service directory

# Install dependencies
npm i

# Run communication-service
npm run dev

# Run test
# Ensure ENV=TEST first
npm run test