These instructions assume your working directory is the root of this repo, where this file is located.
- Install Node.js with
sudo apt install nodejs - Install Bower with
sudo npm install --global bower - Install Ruby with
sudo apt install ruby-full, thensudo gem install sass - Install Grunt with
sudo npm install --global grunt - Install MongoDB with
sudo apt install mongodb - Install server dependencies with
npm install - Install frontend dependencies with
bower install
- Run
mongodto start the database server.- In order to keep using the terminal, you'll need to do one of the following:
Ctrl-Zto pause mongod andbgto resume it in the background (pkill mongodto stop it later)Ctrl-Shift-Tto open a new terminal tab, leaving mongod in the first tab (Ctrl-Cin that tab to stop it later)
- In order to keep using the terminal, you'll need to do one of the following:
- Run
grunt serveto start the web server.- A tab should open in your browser upon success.
- As with mongod above, if you want to free up your terminal, use
Ctrl-Z&bgorCtrl-Shift-T.
- Edit
./server/config/environment/shared.js.- NOTE: This is the folder
./serverin the root of~/dredd-2019, not./dist/server!
- NOTE: This is the folder
- The variable
prototypesshould be a JSON array of scoring options.- The comment at the top of the file describes the meaning of each option.