Skip to content

mnoNoor/Node.js-Training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Web Server - Training Project

Developer: mnoNoor
License: MIT
Description: My first Node.js training project

📖 About the Project

A simple Node.js training project to learn serving HTML files and exposing a basic JSON API:

  • Create a web server using only Node.js
  • Serve static HTML pages
  • Build a simple API that returns data
  • Handle different routes

📁 Project Structure

project/
│
├── servers/
│   ├── server.js      # HTML pages server
│   └── server2.js     # API server
│
├── public/
│   ├── home.html      # Home page
│   └── about.html     # About page
│
├── package.json
└── .gitignore

⚙️ Installation

# Install dependencies (nodemon)
npm install

# Or install nodemon globally
npm install -g nodemon

🎯 How to Use

Normal start:

node servers/server.js

Start with auto-restart (recommended for development):

npm start

💡 What I Learned

  • How to create a web server with Node.js
  • Handling different HTTP requests
  • Reading and serving HTML files
  • Creating simple APIs

This is my start at Back-end 🚀

npm start

About

A simple Node.js training as my first step into back-end.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published