Skip to content
Njc intranet
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
models
public
routes
views
.env.example
.gitignore
app.js
chalk-colours.js
helpers.js
package.json
readme.md
seed-database.js
todo.md
webpack.config.js

readme.md

Readme

Installation

  1. Clone the repo
  2. Configure your env variables, see the .env.example file for the required environment variables. This includes a mailgun api key (feel free to replace with your own mailing service)
  3. Run node seed-database to seed the database with fake data (or skip if you want a blank copy)
  4. install all packages npm install
  5. Build the app npm install

Running the app

To run the app locally:

  1. Start webpack webpack-dev-server
  2. Start mongodb
  3. Run npm start

Usage

This app requires npm and nodejs

Testing

Tests are run using protractor follow the installation instructions first and make sure protractor and webdriver are working.

Make sure that:

  1. the app is running
  2. a selenium session is active
  3. webpack-dev-server is running

you can use npm run pre-test to do both of these, then you can run the e2e tests using npm run test. This should start a selenium session in chrome and run through the test suite.

Deployment

Credits

You can’t perform that action at this time.