Skip to content
No description, website, or topics provided.
Branch: development-bo…
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
e2e
labmonitor
src
test-config
.editorconfig
.gitignore
LICENSE
README.md
constants.d.ts
constants.js
helpers.js
karma.conf.js
package-lock.json
package.json
prodserver.js
protractor.conf.js
tsconfig.aot.json
tsconfig.json
tslint.json
webpack.config.ts
webpack.d.ts
yarn.lock

README.md

Eye of Sauron

Bootstrap Branch

Featuring Bootstrap 4 and ng-bootstrap, Webpack 2 (and Webpack DLL plugin for faster dev builds), HMR (Hot Module Replacement), and @ngrx for state management.

You can use npm, but it's recommended to use yarn as it installs a lot faster and has other benefits https://yarnpkg.com/ . Make sure you are using yarn version 0.16.0 or newer (check with 'yarn --version')
git clone https://github.com/informaticslab/eye-of-sauron.git
cd eye-of-sauron
yarn
yarn start

Tooling Features

  • Angular 2
    • Async loading
    • Treeshaking
  • Webpack 2
    • Webpack Dlls (Speeds up devServer builds)
  • HMR (Hot Module Replacement)
  • TypeScript 2
    • @types
  • Bootstrap 4 and @ng-bootstrap
  • @ngrx
  • Karma/Jasmine testing
  • Protractor for E2E testing

Basic scripts

Use yarn start for dev server. Default dev port is 3000.

Use yarn run start:hmr to run dev server in HMR mode.

Use yarn run build for production build.

Use yarn run server:prod for production server and production watch. Default production port is 8088.

Default ports and option to use proxy backend for dev server can be changed in constants.js file.

HMR (Hot Module Replacement)

HMR mode allows you to update a particular module without reloading the entire application. The current state of your app is also stored in @ngrx/store allowing you to make updates to your code without losing your currently stored state.

Testing

For unit tests, use yarn run test for continuous testing in watch mode and use yarn run test:once for single test. To view code coverage after running test, open coverage/html/index.html in your browser.

For e2e tests, use yarn run e2e. To run unit test and e2e test at the same time, use yarn run ci.

Credit

This project was built using the follwing Angular 2 Starter.

License

MIT

You can’t perform that action at this time.