It is a Progressive Web App. Download the app from the browser and use it offline.
ng serve for a dev server. Navigate to
http://localhost:4200/. The app will automatically reload if you change any of the source files.
ng generate component component-name to generate a new component. You can also use
ng generate directive|pipe|service|class|guard|interface|enum|module.
ng build to build the project. The build artifacts will be stored in the
dist/ directory. Use the
--prod flag for a production build.
Running unit tests
ng test to execute the unit tests via Karma.
Running end-to-end tests
ng e2e to execute the end-to-end tests via Protractor.
Publish on GitHub Pages
GitHub Pages needs static files. They are generated with
ng build. This command creates a
The project includes a package called angular-cli-ghpages in the dev dependencies. The package tells GitHub Pages where to find the static files.
To build and publish run
npm run publish.
Deploy on Heroku
Buildpacks require the
dist folder to be committed. That's why is not ignored in
$ ng build --prod $ git add . $ git commit -m "Commit message" $ git push heroku master $ heroku open
The project is based on this tutorial.
Tick Sound recorded by DeepFrozenApps.
The contents of this repository are covered under the MIT License.