A base project for a Node.js backend, generated with Express and using EJS as the view engine.
- Express app with
morganlogging,cookie-parser, JSON and form body parsing - Static files served from
public/ - 404 and error handling middleware
- Example routes:
| Method | Route | Description |
|---|---|---|
| GET | / |
Renders the home page |
| GET | /users |
Sample users endpoint |
git clone https://github.com/SemihSamandar/project-base-ytb.git
cd project-base-ytb/api
npm install
npm startThe server runs at http://localhost:3000.
api/
├── app.js # Express app setup
├── bin/www # Server entry point
├── routes/
│ ├── index.js
│ └── users.js
├── views/ # EJS templates
└── public/stylesheets/