Try it on Heroku: https://joggingtracker-ui-angular2.herokuapp.com/
- Register new user or use admin/admin credentials
- REST api calls proxied to - https://joggingtracker.herokuapp.com
OAuth2 with access-token stored in local-storage
npm install
Compiles Typescript to build/js directory.
npm run build
Compiles TS, browserify and packages application to dist directory.
npm run build-dist
To run this application you need to connect it to a backend such as spring-rest-oauth2-mongo. See below for proxy configuration. In real life you would deploy both backend and the frontend in one container, this is a modular approach for demonstration purposes.
Runs browsersync using index.html and build/js scripts. BS is configured to access backend REST api through proxy to avoid CSRF complications during development (see bs-config.js).
npm run start-dev
Runs app.js node application providing:
- public access to angular script files
- proxied access to api
- sends index.html for every other path
npm start