This repository contains a basic Node.js server application with various features. The server application allows you to handle different HTTP requests and perform specific actions.
In this level, the server application includes the following features:
- Set up a server that listens on a specified port (e.g., port 8080).
- Create a route to handle GET requests to the root URL ("/") and send a "Hello, World!" response.
- Implement a route to handle POST requests to the root URL ("/") and log the received data to the console.
In addition to the basic requirements, the server application enhances its functionality with the following features:
- Create a route to handle GET requests to "/books or /products" and send a response with information accordingly.
- Implement a route to handle POST requests to "/books or /products" and save the received data to a file on the server.
If you have a higher skill level and finish the previous requirements before the deadline, you can tackle the following bonus tasks: Peer Review:
- Review the code and implementation of 2 assignments from other participants.
- Provide constructive feedback and suggestions for improvement.
Please note that the bonus requirements and reviews are optional and can be completed if you have additional time and advanced skills.
Happy coding!