CS 290 Final Project
Setup
- Run the command
npm installto install all project dependencies. - Run the command
npm run buildto compile the source code. - Copy “.env.example” to “.env” in the same directory.
- Fill “.env” with the proper API keys.
Note: API keys should not be published in this repository, so make sure your “.env” is not getting picked up by git. The gitignore is configured to handle this as long as the file is named properly.
Usage
- Run one of the following commands to start the server:
- As a single process:
npm run start - As a background service:
pm2 start server.js - As a cluster:
pm2 start ecosystem.config.js
- As a single process:
- Access the server at
http://localhost:8000or your environment defined address and port.