ZTM
Udemy Course - Complete NodeJS Developer.
Node.js
is installed ⚡- Prefered Code-Editor/IDE is installed (For example:
vscode
) ✍ - Terminal is ready 😎
This project implements a basic HTTP server as a learning exercise, simulating RESTful endpoints for managing a "friends" list. It introduces key HTTP methods, with GET
requests for viewing the list or individual items and POST
requests to add new entries. Additionally, the server demonstrates sending both JSON and HTML responses to highlight different content types. The project emphasizes core backend concepts, such as route handling, JSON data handling, and HTTP status codes, making it a useful exercise for understanding foundational web server operations in Node.js.
Run http-server 🏎️💨
node index.js