0.1.1 • Published 6 years ago

assessment-renderer-saas v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
6 years ago

Assessment Renderer (ePASS)

Feed Setup


To initialize your npmrc file (only do this once):

npm install -g vsts-npm-auth --registry https://registry.npmjs.com --always-auth false

cd C:\Users\[myUserName]
cd. > .npmrc  

To authorize the feed (this will need to be done every time a new feed is added):

  1. cd to project root directory (e.g. C:\Users[myUserName]\Source\repos\AssessmentRenderer)
  2. run vsts-npm-auth -config .npmrc

Project Setup


To get up and running with this application:

  1. Install nodeJs (version 6.9.2 or higher) get it from http://nodejs.org
  2. Ensure npm is installed and up to date (npm i npm -g)
  3. Install Aurelia CLI globally (npm i aurelia-cli -g)
  4. Install Gulp globally (npm i gulp -g)
  5. Install Express globally (npm i express -g)
  6. Run "npm i" from this directory to install all dependencies for the application
  7. Run "au run --watch" to start the server and watch for changes to files for automatic update

After the very first time the application has been run, each day after getting latest, simply run steps 6 and 7 to get going.

To run specific to an environment (valid values are dev, stage, and prod) run:

au run --env prod --watch

To build the scripts (again, for an environment) without running the server, use:

au build --env prod

To run the renderer in standalone mode, browse to http://localhost:5878 To run the renderer in a simulated frame, browse to http://localhost:5878/framed.html

DO NOT EVER check in node_modules directory or its subdirectories as these are like nuget packages and can be reinstated on a developer's machine by simply running "npm i" from this directory.

Unit Testing


Mocks: You can store mocks that will be used by multiple tests in the test/unit/mocks directory (using subdirectories to match the source path of the class the mock doubles for). See test/unit/src/controls/ for an example of overriding Aurelia's default dependency injection to inject the mock.

Create:

au generate unit-test [componentName] [subFolder]

(**Note: if you use the component generator (au generate component...) to create a component, then a unit test is automatically created)

Run:

au test 

Run with watch:

au test --watch

Resources: