Prerequisites: Angular CLI: 9.0.7 (https://cli.angular.io/) || can probably be updated Node: (https://nodejs.org/en/download/)
- Create a new project folder e.g cta-tracker
- Pull down the repo:
git clone https://github.com/LoganLaFollette/cta-tracker.git - Install the required node modules:
npm install - Start up the express cta api server:
node server.jsthis starts an express server that constantly serves API data to localhost:3000/trains - Start up the angular application:
ng serve - Head to localhost:4200 and view train data!
This project was generated with Angular CLI version 9.0.7.
- Typescript version: 4.6.3 (tsc -v)
- Node version: 18.10
- Angular CLI: 13.3.5 (updated)
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. Use the --prod flag for a production build.
Use ng serve --watch to run and rebuild automatically
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
