This is a basic Node.js and Express project that uses EJS for templating. The site includes two pages: Home and About.
- Uses Express for routing.
- Uses EJS as a templating engine.
- Dynamic content rendering (displays a list of cars on the home page).
- Modular route handling with a
routes.jsfile.
git clone https://github.com/hscanlan/node_express_ejs_demo
cd node_express_ejs_demonpm installnode index.js/demo
│── /routes
│ ├── routes.js
│── /views
│ ├── index.ejs
│ ├── about.ejs
│── index.js
│── package.json
│── README.md
- Open your browser and visit:
- Home Page: http://localhost:3000/
- About Page: http://localhost:3000/about
- Language: JavaScript (Node.js)
- Framework: Express.js
- View Engine: EJS
- Maintainer: Harry Scanlan
This project is open-source. Feel free to modify and use it for learning purposes.