{"id":14957631,"url":"https://github.com/rajathavalam/express-mvc-generator","last_synced_at":"2025-05-02T07:32:23.459Z","repository":{"id":52954543,"uuid":"61205548","full_name":"rajathavalam/express-mvc-generator","owner":"rajathavalam","description":"Express' Model View Controller Application Generator.","archived":false,"fork":false,"pushed_at":"2021-04-14T08:29:21.000Z","size":37,"stargazers_count":42,"open_issues_count":9,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T23:14:54.886Z","etag":null,"topics":["database","express-js","express-mvc","expressjs","generator","mongoose","mvc-structure","node","node-js","nodejs","npm-module","npm-package","sass"],"latest_commit_sha":null,"homepage":"https://github.com/rajathavalam/express-mvc-generator","language":"JavaScript","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/rajathavalam.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}},"created_at":"2016-06-15T12:16:09.000Z","updated_at":"2023-05-11T13:09:58.000Z","dependencies_parsed_at":"2022-09-04T15:04:07.027Z","dependency_job_id":null,"html_url":"https://github.com/rajathavalam/express-mvc-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajathavalam%2Fexpress-mvc-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajathavalam%2Fexpress-mvc-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajathavalam%2Fexpress-mvc-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajathavalam%2Fexpress-mvc-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajathavalam","download_url":"https://codeload.github.com/rajathavalam/express-mvc-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224182203,"owners_count":17269435,"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":["database","express-js","express-mvc","expressjs","generator","mongoose","mvc-structure","node","node-js","nodejs","npm-module","npm-package","sass"],"created_at":"2024-09-24T13:15:16.019Z","updated_at":"2024-11-12T16:04:18.488Z","avatar_url":"https://github.com/rajathavalam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n---\n---\n\n### This project's version is no longer actively supported and not recommended for use. It is made available as read-only. \n### Please check the official website for express application generator https://expressjs.com/en/starter/generator.html\n\n---\n---\n\n\n[![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](https://www.npmjs.com/package/express-mvc-generator/)\n\n[Express'](https://www.npmjs.com/package/express-mvc-generator) Model View Controller Application Generator.\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n\n\n## Installation\n\n```sh\n$ npm install express-mvc-generator -g \n```\n##Display the command options with the -h option:\n\n\n```bash\n express -h\n\n  Usage: express [options] [dir]\n\n  Options:\n\n    -h, --help          output usage information\n    -V, --version       output the version number\n    -e, --ejs           add ejs engine support (defaults to EJS)\n        --hbs           add handlebars engine support\n    -H, --hogan         add hogan.js engine support\n    -c, --css \u003cengine\u003e  add stylesheet \u003cengine\u003e support (less|stylus|compass|sass) (defaults to plain css)\n        --git           add .gitignore\n    -f, --force         force on non-empty directory\n\n```\n\n#### For example, the following creates an Express app named myapp in the current working directory:\n\n\nexpress myapp:\n\n```bash\n$ express myapp\n\n\n   create : myapp\n   create : myapp/public/js/script.js\n   create : myapp/package.json\n   create : myapp/app.js\n   create : myapp/public\n   create : myapp/public/js\n   create : myapp/public/img\n   create : myapp/public/css\n   create : myapp/public/css/style.css\n   create : myapp/config\n   create : myapp/config/routes.js\n   create : myapp/config/constants.js\n   create : myapp/config/database.js\n   create : myapp/config/passport.js\n   create : myapp/app/views\n   create : myapp/app/views/login.ejs\n   create : myapp/app/views/signup.ejs\n   create : myapp/app/views/index.ejs\n   create : myapp/app/views/index.ejs\n   create : myapp/app/views/error.ejs\n   create : myapp/app/views/404.html\n   create : myapp/app/controllers\n   create : myapp/app/controllers/home.js\n\n   install dependencies:\n     $ cd myapp \u0026\u0026 npm install\n\n   run the app:\n     $ DEBUG=myapp:* node app or nodemon app \n\n   create : myapp/app/models\n   create : myapp/app/models/home.js\n   create : myapp/lib\n   create : myapp/lib/email.js\n\n```\n\n\n\nInstall dependencies:\n\n```bash\n$ npm install\n```\n\n###File Structure\n\n```bash\n$ express myapp\n\n\nmyapp\n|\n|\n|____app\n|      |____controllers\n|      |    |____home.js\n|      |\n|      |____models\n|      |     |___home.js\n|      |\n|      |____views\n|           |___404.ejs\n| \t    |___error.ejs\n|           |___index.ejs\n|           |___login.ejs\n|           |___signup.ejs\n|\t\n|\n|_____config\n|     |___auth.js\n|     |___constants.js\n|     |___database.js\n|     |___passport.js\n|     |___routes.js\n|\n|\n|____lib\n|    |___email.js\n|\n|____node_modules\n|\n|\n|____public.js\n|    |____css\n|    |    |__style.css\n|    |    \n|    |____js\n|    |    |__script.js\n|    |\n|    |____img\n|    |    |__img.jpg\n|    |\n|    |\n|    |____uploads\n|         |__img.jpg\n|      \n|   \n|\n|_____app.js\n|\n|\n|\n|_____package.json\n\n ```\n\n\n\n\n###Important Settings\n1) Open your config/database.js , Please configure your mongo db.\n2) Open your config/constants.js , Please configure your constants(SMTP ....). \n3) Do you want use SMTP ,Please uncomment passport.js line 95  to 98\n\n\n\nRun The express-mvc-generator Application\n\n```bash\n$ node app or nodemon app \n```\n\n```sh\nDemo URL's\n\nSignup : http://localhost:8042/signup\nLogin :  http://localhost:8042/login\n\n```\n\n\n\n## Command Line Options\n\nThis generator can also be further configured with the following command line flags.\n\n    -h, --help          output usage information\n    -V, --version       output the version number\n    -e, --ejs           add ejs engine support (defaults to jade)\n        --hbs           add handlebars engine support\n        --jade          add jade engine support\n    -H, --hogan         add hogan.js engine support\n    -c, --css \u003cengine\u003e  add stylesheet \u003cengine\u003e support (less|stylus|compass|sass) (defaults to plain css)\n        --git           add .gitignore\n    -f, --force         force on non-empty directory\n\n\n## Features\n\n- Very Good  file structure MVC style Express. \n- Already We Given Examples of Controller and Model(Mongoose) , Passport  and Config Settings\n- Pre Installed Important and Most Used NPM Packages , and used Example \n- We Given Simple And Well understanding Express MVC Example\n- We already included most used and important npm modules like as pm2 ,async, body-parse, sessions, flash, cookie, dateformat, mongoose, nodemailer , nodemon, passport\n- Support View engines:\n  - Jade\n  - Handlebars\n  - Swig\n  - EJS\n  - Marko\n  - Nunjucks\n- Supported CSS pre-processors\n  - SASS (both node-sass and ruby sass)\n  - LESS\n  - Stylus\n- Supported Databases (with MVC structure):\n - MongoDB\n - MySQL\n - PostgreSQL\n - RethinkDB\n - SQLite\n\n\n\n## Help/Assistance\n\nEmail Us : rajaram.tavalam@gmail.com          \n\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/express-mvc-generator.svg\n[npm-url]: https://npmjs.org/package/express-mvc-generator\n[downloads-image]: https://img.shields.io/npm/dm/express-mvc-generator.svg\n[downloads-url]: https://npmjs.org/package/express-mvc-generator\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajathavalam%2Fexpress-mvc-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajathavalam%2Fexpress-mvc-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajathavalam%2Fexpress-mvc-generator/lists"}