A simple Node.js application structure using Node.js, Express, MongoDB, and Jade.
This project demonstrates a basic file structure for a Node.js application that uses:
Node.js: JavaScript runtime. Express: Web application framework. MongoDB: NoSQL database. Jade (now Pug): Templating engine.
- A structured and modular setup for Node.js applications.
- Integration with MongoDB for database operations.
- Jade templating for rendering dynamic HTML pages.
To get started, clone the repository and install the required dependencies:
git clone https://github.com/Progesh/node-mongo-jade.git cd node-mongo-jade npm install
Here’s an overview of the file structure used in this project:
node-mongo-jade/ ├── routes/ │ ├── index.js # Route handlers ├── views/ │ ├── layout.jade # Base layout file │ ├── index.jade # Main page template ├── public/ │ ├── stylesheets/ │ ├── style.css # CSS files ├── app.js # Main application file ├── package.json # Project metadata and dependencies
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to create an issue or submit a pull request.