/sfhacks-angular-demo

Demo program written for the SF Hacks 2022 workshop

Primary LanguageTypeScriptApache License 2.0Apache-2.0

SF Hacks 2022: Angular Workshop

This project was generated with Angular CLI version 13.1.3.

Live demo

https://shaeberling.github.io/sfhacks-angular-demo/

Install prerequisites (Linux, MacOS, Windows-WSL)

  • Install nvm (Node Version Manager)
  • Install Node.js
    • nvm install --lts
    • Check with: node --version
  • Install npm package manager
    • npm install -g npm
    • Follow on-screen instructions
  • Install Angular
    • npm install -g @angular/cli
    • Check with ng --version

Build

Run npm install to install all dependencies. Could take a little while.

Start development server

Run ng serve --open for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

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.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.