This repository contains the Angular 2 frontend application for the BioSentiers project.
- Node.js 6.x
- Angular CLI (install with
npm install -g angular-cli
) - BioSentiers backend (running on port 3000 by default)
-
Clone and move into this repository:
git clone https://github.com/MediaComem/biosentiers-frontend.git cd biosentiers-frontend
-
Install dependencies:
npm install
-
Run it:
npm start
-
Visit http://localhost:4200.
-
Read the contribution guidelines before committing.
Command | Purpose |
---|---|
npm start |
Run the Angular application in development mode (with live reload). |
npm run build |
Build the Angular application for production (into the dist directory.) |
npm run doctoc |
Regenerate the table of contents of the project's Markdown files. |
npm run lint |
Check the code for readability, maintainability, and functionality errors. |
npm test |
Run unit tests in development mode (with live reload). |
npm run test |
Run unit tests once. |
npm run e2e |
Run end-to-end tests once. |
npm run ci |
Run all tests once. |
Run ng generate component component-name
to generate a new component.
You can also use ng generate directive/pipe/service/class/module
.
Check out Angular CLI's documentation for more information.