MD
mdahamshi/express-basic
A simple Node.js and Express.js server setup for learning or bootstrapping a backend project.
๐ README.md
# Basic Node/Express Server
A simple Node.js and Express.js server setup for learning or bootstrapping a backend project.
## ๐ Features
- Fast and lightweight Express server
- `.env` support via `dotenv`
- JSON body parsing middleware
- Basic routing (GET, POST)
- 404 handler for unknown routes
## ๐ ๏ธ Tech Stack
- Node.js
- Express.js
- dotenv
- ejs
## ๐ Folder Structuremy-app/
โโโ server.js # Main server entry point
โโโ package.json # Project config and dependencies
โโโ .env # Environment variables
## ๐งช Installation
1. Clone the repo:
```bash
git clone https://github.com/your-username/basic-node-express.git
cd basic-node-express
-
Install dependencies:
npm install
-
Create a
.envfile:PORT=3000
-
Start the server:
npm run dev # for development with nodemon # or npm start # for production
-
Open your browser:
http://localhost:3000
๐ฌ Example Routes
GET /โ Welcome messageGET /aboutโ About pagePOST /api/dataโ Send{ "name": "YourName" }and receive a greeting
๐ License
This project is licensed under the ISC License.
โ๏ธ Author
Mohammad Dahamshi
GitHub Profile
On this page
Languages
JavaScript66.4%EJS29.0%CSS4.6%
Contributors
MIT License
Created July 29, 2025
Updated July 30, 2025