A lightweight and beginner-friendly HTTP server built using Node.js. This project is a foundational setup for building APIs, handling HTTP requests, and learning core backend development.
🔌 Handles basic HTTP requests
🌐 Returns plain text or HTML responses
🧱 Minimal and extensible structure
🔁 Ready for route and middleware expansion
node-http-server/
- server.js # Main server logic
- ackage.json # Node.js metadata and dependencies
- README.md # Project documentation
# Clone the repository
git clone https://github.com/neha-dev-dot/node-http-server.git
cd node-http-server
npm install
node server.js
Once the server is running, go to your browser or use curl:
http://localhost:3000/
Only supports a single route by default (/)
No error-handling middleware yet
Static file serving not yet implemented
This project helps you: 📘 Understand how Node.js handles HTTP natively 📘 Work with http.createServer() 📘 Prepare for using Express.js or other frameworks
Contributions are welcome! Please fork the repo and submit a pull request.