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
mongod
to start the database server.- In order to keep using the terminal, you'll need to do one of the following:
Ctrl-Z
to pause mongod andbg
to resume it in the background (pkill mongod
to stop it later)Ctrl-Shift-T
to open a new terminal tab, leaving mongod in the first tab (Ctrl-C
in that tab to stop it later)
- In order to keep using the terminal, you'll need to do one of the following:
- Run
grunt serve
to 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
&bg
orCtrl-Shift-T
.
- Edit
./server/config/environment/shared.js
.- NOTE: This is the folder
./server
in the root of~/dredd-2019
, not./dist/server
!
- NOTE: This is the folder
- The variable
prototypes
should be a JSON array of scoring options.- The comment at the top of the file describes the meaning of each option.