#
Mathy Msg - Angular 13
#
Project summary
A simple mathematics game using Angular 13.
Best viewed on mobile phones.
How to play:
- You have 10 seconds to answer each question (timer is on the top left)
- Click the alphabet that corresponds to the correct number
- If an answer is wrong or 10 seconds is up, you lose and need to restart from the beginning
#
🌐 Page
#
Github repository
#
Setup guide
The setup and deploy guide is up to date with version 13.0.4
- Install Angular:
npm install -g @angular/cli
- Initialization:
ng new mathy-msg --directory ./
The --directory ./
flag is to initialize the Angular project in the current directory.
- Run Angular:
ng serve
#
Deploy to Github Pages
#
Prerequisites
- Go to Github Pages at
https://github.com/<github_user>/<repo>/settings/pages
. - Select
gh-pages
branch with/(root)
and save. - Install
angular-cli-pages
npm i angular-cli-ghpages --save-dev
#
Deployment
Run these commands:
ng build --prod --base-href https://<github_user>.github.io/<repo>/
npx angular-cli-ghpages --dir=dist/<repo>