The purpose of this project is to create a small web service that serves up a simple API for testing purposes. A further goal is to build it using Node.js and Express as a learning opportunity.
This project is comprised of a Node.js/Express web service and an Angular 4 front end.
- Node.js (v6.11.1)
- Angular CLI (v1.2.1)
Run npm install to install the node module dependencies.
Run ng build to build the Angular portion of the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.
To lauch the app run npm start.
The web service has one endpoint:
This endpoint accepts no parameters
A list of teams. Each team contains:
- Id (integer)
- Name (string)
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve.