This project was generated with Angular CLI version 13.1.2.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
- Create a GitHub repository for project.
- Configure git in local project
git remote add origin https://github.com/your-username/your-project-name.git
git branch -M main
git push -u origin main
- Create and check out a git branch named gh-pages.
git checkout -b gh-pages
- Build project
ng build --output-path docs --base-href /project_name/
With this project, the command will be
ng build --output-path docs --base-href /home-assistant-web-client/
- Make a copy of docs/index.html and name it docs/404.html. (Required)
- Commit your changes and push.
- On the GitHub project page, go to Settings and scroll down to the GitHub Pages section to configure the site to publish from the docs folder.
- Click Save.
- Click on the GitHub Pages link at the top of the GitHub Pages section to see deployed application. The format of the link is https://<user_name>.github.io/<project_name>/.