Pyxsys / SOEN390_19

SOEN 390 minicap repository
0 stars 2 forks source link

SOEN390_19

Winter 2021 SOEN 390 minicap repository for Kapp Industries (Team 19). Concordia University. alt text

WebApp Link

(Deployed with Heroku and Netlify)

Admin Login

You can login into the application by using the following credentials:

Intallation/Setup Guide

Via NPM

Requirements

Steps

  1. Download/Clone the project locally
  2. Open a terminal (eg. Cmd on windows)
  3. Navigate to the project root (C:/.../SOEN390_19/).
  4. Client Setup
    4.1. Go into the Client/ directory: cd Client/
    4.2. Install Client's dependencies: npm install
    4.3. Ensure the node_modules directory was generated.
    4.4. Start running Client with: npm start
    (React should've opened a new browser window)
    4.5. Move process to the background by hitting Ctrl+Z. 4.6. Return active directory to project root: cd ..
  5. Server Setup
    5.1. Go into the Server/ directory: cd Server/
    5.2. Install Server's dependencies: npm install
    5.3. Ensure the node_modules directory was generated.
    5.4. Start running Server with: npm start
    5.5. Move process to the background by hitting Ctrl+Z.
    5.6. Return active directory to project root: cd ..
  6. Both Client and Server are setup and running
  7. Connect to Client (if not already) in a browser using the link: localhost:3000

    Running tests with jest

  8. Open a terminal (eg. Cmd on windows)
  9. Navigate to the project root (C:/.../SOEN390_19/).
  10. Navigate to the test directory: cd Server/__tests__/
  11. Run jest with: npm test
  12. Tests suites are run with the output displayed to the terminal.

Via Docker

Requirements

Additional Setups for Devs

Running in a local environment

To run the the application in a local environment the following additional steps must be made:

Additional MongoDB Options

There are three possible avenues for the mongoDB connection:

  1. Cloud MongoDB Atlas (Default)
  2. Local MongoDB Instance
  3. Docker MongoDB Instance

If you wish to change the connection, comment/uncomment the appropriate 'db_link' variable value on lines 44-46 in 'SOEN390_19/Server/src/app.js' and save the change prior to starting the application.