The calculations behind the Lifestyle Test can also be made available upon a separate request to Sitra. This makes it easier to follow for which purposes the calculations are applied and to provide instructions for use. The questions and calculations of the Lifestyle Test are based on environmental calculations and the most common lifestyles, as a result of which calculations must be examined separately for each country when introducing the Test for international use. The party implementing the Materials is responsible for adapting the questions and calculations of the Materials to the country as it deems fit.
More detailed license information will be found from link below:
npm run dev for a dev server. The app will automatically open in browser, if not navigate to
http://localhost:5000/. The app will automatically reload if you change any of the source files.
There are more specific commands to run the server, which can be found in
You'll need a working database to run the app.
- Make sure you have a MongoDB process running.
- If you don't have MongoDB, install.
- Copy .env.example -> .env, this contains database URLs for local, staging and production environments.
npm run syncto initialize/sync database.
ng generate component component-name to generate a new component. You can also use
ng generate directive | pipe | service | class | module.
npm run build to build the project. The build artifacts will be stored in the
There are more specific commands to build the app, which can be found in
Every commit to the master branch gets automatically deployed to the staging app in Heroku.
Production deployment is made with
Promote to production button in Heroku pipeline.
. ├── e2e ├── dist # Compiled files │ ├── public │ └── server ├── src # Source files │ ├── client │ | ├── app # Angular app files │ | ├── assets # Static assets │ | ├── styles # Global styles │ | └── ... │ └── server │ ├── controllers # Server app logic │ ├── helpers # Helper tools │ ├── models # Mongoose models │ └── ... ├── .angular-cli.json # Angular-CLI configurations ├── proxy.conf.json # Proxy rules for ng serve └── ...
Running unit tests
Tests not implemented
npm run test to execute the unit tests via Karma.
Running end-to-end tests
Tests not implemented
npm run e2e to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via
npm run reports and gather all the data from
This project was generated with Angular CLI version 1.0.1.
To get more help on the Angular CLI use
ng help or go check out the Angular CLI README.