{"id":19869893,"url":"https://github.com/pradipchaudhary/node-mvc-boilerplate","last_synced_at":"2025-07-02T15:36:53.430Z","repository":{"id":109077170,"uuid":"532308683","full_name":"pradipchaudhary/node-mvc-boilerplate","owner":"pradipchaudhary","description":"A Simple boilerplate using(MVC-pattern) with  Node.js, Express.js, MongoDB, and TypeScript.","archived":false,"fork":false,"pushed_at":"2024-10-07T05:25:10.000Z","size":163,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-02T08:45:54.719Z","etag":null,"topics":["expressjs","filesystem","javascript","mvc-architecture","mvc-pattern","nodejs","reactjs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pradipchaudhary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-03T16:05:44.000Z","updated_at":"2025-03-16T04:48:49.000Z","dependencies_parsed_at":"2025-05-02T08:36:34.770Z","dependency_job_id":"81d5c4bf-0cb4-4f71-8190-802049f85997","html_url":"https://github.com/pradipchaudhary/node-mvc-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pradipchaudhary/node-mvc-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradipchaudhary%2Fnode-mvc-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradipchaudhary%2Fnode-mvc-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradipchaudhary%2Fnode-mvc-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradipchaudhary%2Fnode-mvc-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pradipchaudhary","download_url":"https://codeload.github.com/pradipchaudhary/node-mvc-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradipchaudhary%2Fnode-mvc-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263166919,"owners_count":23424276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expressjs","filesystem","javascript","mvc-architecture","mvc-pattern","nodejs","reactjs","typescript"],"created_at":"2024-11-12T16:07:15.398Z","updated_at":"2025-07-02T15:36:53.408Z","avatar_url":"https://github.com/pradipchaudhary.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Node MVC Boilerplate](#)\n\nA Simple Node.js Model-View-Controller boilerplate application.\n\n## Overview\n\nThis is a simple boilerplate project using the MVC (Model-View-Controller) pattern with Node.js, Express.js, MongoDB, and TypeScript. It provides a foundational setup to help you get started with building scalable and maintainable web applications.\n\n## Features\n\n-   MVC architecture for better organization and scalability.\n-   Built with TypeScript for a type-safe and maintainable codebase.\n-   Express.js for creating robust and flexible routes.\n-   MongoDB with Mongoose for schema-based data modeling.\n-   Environment configuration with `dotenv`.\n-   Clean and maintainable folder structure.\n\n## Directory Structure\n\n```bash\nsrc/\n│\n├── controllers/    # Contains request handling logic for routes\n├── models/         # Contains Mongoose schemas and models\n├── routes/         # Defines the application's routes\n├── services/       # Contains business logic and data processing\n├── views/          # Contains view templates (if using server-side rendering)\n├── middlewares/    # Custom middleware for the application\n├── config/         # Configuration files and setup (e.g., database connection)\n├── utils/          # Utility functions and helpers\n│\n├── app.ts          # Main application entry point\n└── public/         # Publicly accessible files (e.g., images, static assets)\n```\n\n## Prerequisites\n\nMake sure you have the following installed:\n\n-   [Node.js](https://nodejs.org/)\n-   [MongoDB](https://www.mongodb.com/)\n\n## Getting Started\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/yourusername/node-mvc-boilerplate.git\n    ```\n\n2. Install dependencies:\n\n    ```bash\n    npm install\n    ```\n\n3. Create a `.env` file in the root of the project with the following variables:\n\n    ```bash\n    MONGO_URI=mongodb://localhost:27017/yourdbname\n    PORT=3000\n    ```\n\n4. Start the development server:\n\n    ```bash\n    npm run dev\n    ```\n\n    The server will be running on `http://localhost:3000`.\n\n## Available Scripts\n\n-   `npm run build`: Compiles TypeScript into JavaScript.\n-   `npm run watch`: Watches for file changes and automatically compiles TypeScript.\n-   `npm run start`: Starts the application in production mode.\n-   `npm run start:dev`: Starts the application in development mode with hot-reloading using `nodemon`.\n-   `npm run dev`: Runs the development server by compiling TypeScript, watching for changes, and using `nodemon` to restart the app.\n-   `npm run clean`: Cleans the `dist` directory.\n\n## Technologies Used\n\n-   **Node.js**: JavaScript runtime for building server-side applications.\n-   **Express.js**: Fast, unopinionated, minimalist web framework for Node.js.\n-   **TypeScript**: A statically typed superset of JavaScript.\n-   **MongoDB**: NoSQL database for high performance and scalability.\n-   **Mongoose**: MongoDB object modeling for Node.js.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradipchaudhary%2Fnode-mvc-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradipchaudhary%2Fnode-mvc-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradipchaudhary%2Fnode-mvc-boilerplate/lists"}