Campus Manager

CircleCI

Development

You first need to setup your environment.

Machine Dependencies

  1. Download and install Node.js (at least version 8.9.4)

  • Mac OSX
    1. Install Homebrew
    2. Install MongoDB brew install mongodb
    3. Create MongoDB data directory sudo mkdir -p /data/db
    4. Correct permissions sudo chmod -R 0755 /data/db && sudo chown $USER /data/db
    5. Start MongoDB mongod
    • Leave this running or just close the terminal window while running
    • You'll have to do this step every time you restart your computer
  • Windows
    1. Install Chocolatey
    2. Install MongoDB choco install mongodb
    3. Create MongoDB data directory mkdir /data/db
    4. Start MongoDB mongod.exe
    • Leave this running or just close the terminal window while running
    • You'll have to do this step every time you restart your computer
  • Linux
    1. Install MongoDB sudo apt install mongodb
    2. Create MongoDB data directory sudo mkdir -p /data/db
    3. Correct permissions sudo chmod -R 0755 /data/db && sudo chown $USER /data/db
    4. Start MongoDB mongod
    • Leave this running or just close the terminal window while running
    • You'll have to do this step every time you restart your computer

App Dependencies

After forking, cloning, and navigating into repository:

  1. Install dependencies npm install
  2. Duplicate .env.example and name it .env
  3. Leave npx gulp running in one terminal session
  4. Navigate to http://localhost:3000/register to create a user

Testing

  1. Download Google Chrome
  2. Install Java JDK
  • Mac OSX brew cask install java
  • Windows choco install jdk7
  • Linux sudo apt install openjdk-8-jdk-headless
  1. Run npm test