API responsible for listing customers and their orders.
- A GitHub account
- Git
- Node JS
Create a fork of this repository and clone your fork on to your local machine. From the app directory, open a terminal and run npm install this will install the local dependencies for the project. To run the API run npm start if the API launched successfully you should see the message: "App listening on port: 8085".
To make a request to the API make a HTTP request to one of the following routes:
http://localhost:8085/customer/listhttp://localhost:8085/customer/gethttp://localhost:8085/order/list
You can also get the orders for a customer via http://localhost:8085/order/list?customer=39
-
Add a search parameter to the
/customer/listroute, this should bring back any customers that have a name that contains the search term. -
Create a simple web application that displays the customers and allows the user to search for them using the
/customer/listroute. Clicking on a customer should list all orders for a customer, if no orders are found, display a message that reads "No orders have been booked for this customer yet."
Push all your work up to your fork and send an email containing your name and a link to your repository to ctrain@pcs-publishing.com
If you have any questions, or run into any problems please feel free to contact me via email.
Good luck!