This is a training program.
Up-to-date versions of the following software is needed for the software to work properly.
git- Source control softwarenode- Environmentnpm- Third party dependency managementmongodb- The database
You will also need a github account.
This assumes that you have the above software already installed an up-to-date.
-
Fork the repository from github into your own user account.
-
Clone your fork onto your own computer:
# clones the repo
git clone git@github.com:[your-user-name]/legislative-simulation.git
# moves you to the project directory
cd legislative-simulation- Set up your upstream remote point (so you can update your code before submitting pull requests):
# sets up another remote point for your setup
git remote add upstream git@github.com:UVU-DigitalMedia/legislative-simulation.git- Install the
npmdependencies
npm install- Make sure your database is running (You don't need to do anything for this yet)
# this runs the mongodb shell.
mongo
>
# Press ctrl+c to quit the mongo shell if it connects successfullyIf it exits with exception: connect failed, then you need to open up a new
tab and run:
mongodIf that fails, then you need to figure out why you can't run mongod. Make sure
that you've installed mongodb in the first place, check for permissions on
the database file/folder it's trying to write to, and google the issue if that
persists. Avoid running with sudo.
-
Seed the Database (You don't need to do anything for this yet)
-
Start the app
npm startOR
nodemon server.js#End to End Tests
-
Fallow the instructions to install Protractor here: https://angular.github.io/protractor/#/
-
Make sure that WebDriver-Manager is running (this should have been installed when protractor was installed)
webdriver-manager start- Run npm test