Skip to content
Fanny Dolisy edited this page Apr 26, 2023 · 2 revisions

NOTE - all of these instructions are for local deployment, please visit the deployment page for all details regarding deployment development


Overview

All code for the server can be found within the folder TeamUp/server

The driving file for the server is app.js which sets up the database connection, sets up all necessary routes and starts the server

Initial Set Up

  1. Create a config.env file that contains 3 environment variables - TOKEN, GMAIL_PASS, GMAIL_USER. The values for these variables can be retrieved through the professor, as they are confidential to developers of the project.

  2. Ensure you are in the directory server, run npm install to install all necessary dependencies

Running for local testing

Ensuring you are in the server directory, you can now run npm start and the server should have launched on port 8082.

Clone this wiki locally