SE 4200: Web Application Development II
Assignment: Node.js
Requirements
Web Service
Create a simple, RESTful HTTP web service using JavaScript and Node.js (without frameworks):
Define a simple resource with several attributes.
Create a basic router to recognize defined method/path actions.
Create an in-memory data store to persist resource records (an array of objects, for example).
Implement an index action for your resource which returns data in JSON format.
Implement a create action for your resource which accepts data in query string format.
Implement Not Found responses for all other requests.
Conform to proper HTTP and REST standards across the application.
Keep your implementation clean by organizing request handlers into functions.
Documentation
The following items should be clearly detailed and documented in the
README.md
within your Git repository:The name of your resource, and the name of each of its attributes.
All REST endpoints implemented by your web service. Include the name, HTTP method, and path for each.
Use Markdown to structure and style the content within your
README.md
.
Resources
- Use this article to guide your implementation.
Submission
- Submit your project using Git and GitHub. Start by creating a repo for this assignment here.
- Show your completed assignment to the instructor during class or office hours to receive credit.
Last Updated 01/06/2025