Super simple Angular app with 1 module and 2 routes. Uses LaunchDarkly feature flags to toggle search functionality.
git clone https://github.com/launchdarkly/ld-tour-of-heroes.git toh
cd toh
npm i
Follow the instructions outlined in this repo's companion blog post to get started with LaunchDarkly. Remember to initialize the SDK with your own Client-Side ID! (Found in app/launchdarkly.service.ts
)
Runs the TypeScript compiler and launches the app
npm start
Runs the Angular AoT compiler, rollup, uglify for an optimized bundle, then launches the app
npm run start-aot
Runs AoT plus gzips and launches the app
gulp copy-aot-gzip
npm run aot
npm run rollup
http-server
Notes:
http-server
lite-server
does not launch gzipped files by default.