Skip to content

UVU-DigitalMedia/legislative-simulation

Repository files navigation

Legislative Simulation

This is a training program.

Required Software

Up-to-date versions of the following software is needed for the software to work properly.

  • git - Source control software
  • node - Environment
  • npm - Third party dependency management
  • mongodb - The database

You will also need a github account.

Installation and Setup

This assumes that you have the above software already installed an up-to-date.

  1. Fork the repository from github into your own user account.

  2. 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
  1. 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
  1. Install the npm dependencies
npm install
  1. 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 successfully

If it exits with exception: connect failed, then you need to open up a new tab and run:

mongod

If 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.

  1. Seed the Database (You don't need to do anything for this yet)

  2. Start the app

npm start

OR

nodemon server.js

#End to End Tests

  1. Fallow the instructions to install Protractor here: https://angular.github.io/protractor/#/

  2. Make sure that WebDriver-Manager is running (this should have been installed when protractor was installed)

webdriver-manager start
  1. Run npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors