This is not meant to be a full. amazing, awesome app....just an example.
After cloning/downloading source, run:
npm install
Run all three (DB, NodeJS server, and App) to have a fully contained and running app.
npm run start-dev
Goto http://localhost:4200/ to view the running app.
- Add a ToDo item with a description
- ToDo's not complete are marked as Green
- ToDo's that are complete have a grey background
- Delete any ToDo you don't need any more
- ToDo's are saved in the
db.json
file, so restarting the app will load your previous ToDo's
npm run db
The 'DB' is a JSON file named db.json
. Data is retrieved and stored in this file. View the JSON server and it's data at http://localhost:3000/
npm run server
The file server.js
is our Node server for our REST API. The web services (used within the Angular app) are located at http://localhost:8000/api
start the Angular app with npm serve
Start the Angular app and goto http://localhost:4200/
############################################################
This project was generated with Angular CLI version 8.3.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. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.