Oar Skylight is a Single Page Application based on OAR API.
This project was generated with Angular CLI version 1.0.0.
Note that this seed project requires node >=v6.9.0 and npm >=3.
In order to start the project use:
$ git clone https://github.com/oar-team/oar-skylight.git
$ cd oar-skylight
# install the project's dependencies
$ npm install
# watches your files and uses livereload by default run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
$ npm start
# prod build, will output the production application in `dist`
# the produced code can be deployed (rsynced) to a remote server
$ npm run build
Run ng generate component component-name
to generate a new component. You can also use ng generate directive/pipe/service/class/module
.
Check angular CLI documentation for tooling informations
- Make sure everything is set up properly.
- You have node >=v6.9.0 and npm >=3
- Checkout on banche you want to build
- Do a
npm update
to make sure libraries are up to date (ornpm install
)
-
Go to
/src/environments/environment.prod.ts
and make sure constants are well configured. -
Run build process with :
npm run build
.Generated files can be found in
/dist/
-
Copy
/dist/
sources to your www directory. (keep the.htaccess
rules)
-
ENOENT: no such file or directory
you are not on the good directory. -
Cannot build ? Check angular CLI documentation
To run the Documentation :
npm install -g @compodoc/compodoc
Generate the documentation with npm run compodoc
. Now go to : http://localhost:8080/
This app use Prettier formatting. Please lint your code before commit.