AustinCodingAcademy / campus-manager

Campus Manager
https://campus.austincodingacademy.com
8 stars 28 forks source link
learning-management-system lms

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 Xcode
        • Open it and accept the terms
      2. Install Homebrew
      3. Install MongoDB brew install mongodb
      4. Create MongoDB data directory sudo mkdir -p /data/db
      5. Correct permissions sudo chmod -R 0755 /data/db && sudo chown $USER /data/db
      6. 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
      7. Install Python 2 brew install python@2
    • Windows
      1. Install Chocolatey
      2. Install MongoDB choco install mongodb -y
      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
      5. Install VCBuild Tools choco install vcbuildtools -y
      6. Install Python 2 choco install python2 -y
    • 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. Check to see if python --version returns Python 2.*
    • If not and on Mac, run alias python=python2 and try again
  2. Install dependencies yarn
  3. Duplicate .env.example and name it .env
  4. Leave npx gulp running in one terminal session
  5. 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
  3. Run yarn test