ng new RESTfulNode
cd RESTfulNode && ng serve //then stop
npm install express cors mongoose -S //similarly for others see package.json dependencies
npm install chai chai-http -D //similarly for other see package.json devDependenciesNote: You do not want Angular (just API server) then remove src/**, .angular-cli.json, karma.conf.js, protractor.conf.js. And comment out following two lines from server.js
app.set('views', path.join(__dirname, 'dist'));
app.use(express.static(path.join(__dirname, 'dist')));
Project should work
GET /students
POST /students
PUT /students
DELETE /students
GET /api/student/search?q=term
First run npm init to install dependencies then run the following command:
node serverYou may also run nodemon server if you are developing.
npm test
Download app.postman_collection_vX.json file and import into postman app.
This project was generated with Angular CLI version 1.4.7.
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.
