NITRO MVC
Simple MVC Framework
$ npm install -g @jaydadarkar/nitromvc
$ mkdir example
$ cd example
$ nitro-init
$ npm install
$ npm run key:generate
$ npm start
Installation
- npm install -g @jaydadarkar/nitromvc (Globally install NITRO MVC).
- mkdir myapp (Make A Directory With Your App Name).
- cd myapp (Go To That Directory).
- nitro-init (Initialize An Empty Application).
- npm install (Install All The Required Dependences).
- Setup ENV. Make necessary changes to .env file. (App Configuration, Mail Configuration).
- Connect To MongoDB (Replace DB, MONGO_DATABASE_URI, MONGO_DATABASE_URL in the env file).
- Setup package.json (Rename your application name and other details).
- npm run key:generate (Generate App Keys).
- npm start (Start Nodemon).
- Visit https://localhost/
- Hit nitro-help to read the docs from command line.
- Alternatively, once your application is running, you can visit http://localhost:{port}/docs/ to read the docs in detail.
Usage
- To Make A Controller, Hit: nitro-controller --name={name_of_controller}.
- To Make A Model, Hit: nitro-model --name={name_of_model}.
- To Make Model, View And Controller, Hit: nitro-mvc --name={name_of_module}.
- To Make A User Admin, Hit: npm run-script make:admin --name={email_of_registered_user}.
- To Make A Role, Hit nitro-auth-role --name={name_of_role}. Then use is{RoleName} as a middleware in the routes like isAdmin.
- To Delete Current Project, Hit nitro-delete.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change or send an email.
Thank You
- B Crypt
- Body Parser
- Bootstrap, JQuery And Poppers
- Cookie Parser
- Crypto
- CSURF
- Dot ENV
- EJS
- Express
- Express Validator
- JWT
- Mongoose
- Morgan
- Node Mailer
- Nodemon
- Superagent
- UUID
- YARGV
DOCS
Full Documentation can be found at http://localhost/docs once your app is running.
Author
License
Changelog
(v1.1.1) => { Minor Fixes }
(v1.1.0) => { Bootstrap, Storage, Docs, NitroCore, Production Environment, Public Static Assests }
(v1.0.0) => { MVC, Auth, Roles, Error Pages, Commands }