Skip to content
lance13c edited this page Apr 27, 2017 · 7 revisions

Getting Started (like, from the very very beginning):

  1. Install NodeJS and MongoDB on your computer. This probably means you run sudo apt install nodejs mongodb on ubuntu
    • The app is currently on version 6.10.1 of node
  2. Open a terminal, go to the project directory
  3. Execute npm install
  4. Next, I think you need to install gulp and bower globally via npm, so run npm install -g gulp and npm install -g bower
  5. Run bower install to install the frontend dependencies
  6. Next, run gulp to "build" the code
  7. If you are starting from an empty database, you also need to run npm run setupSchools, which will run a script to populate the database with all the schools in the U.S.
  8. Run npm start to start your server

.env file

A .env file will need to be created in the root directory. This is used to define configurations for the database.

.env file layout:

    DB_USER=
    DB_PASS=
    DB_SECRET=
Clone this wiki locally