All Projects → rajathavalam → express-mvc-generator

rajathavalam / express-mvc-generator

Licence: MIT License
Express' Model View Controller Application Generator.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
SCSS
7915 projects
CSS
56736 projects
Less
1899 projects
stylus
462 projects

Projects that are alternatives of or similar to express-mvc-generator

node-express-mongo-passport-jwt-typescript
A Node.js back end web application with REST API, user JWT authentication and MongoDB data storage using TypeScript
Stars: ✭ 51 (+10.87%)
Mutual labels:  mongoose, expressjs, node-js, express-js
Backend-NodeJS-Golang-Interview QA
A collection of Node JS and Golang Backend interview questions please feel free to fork and contribute to this repository
Stars: ✭ 122 (+165.22%)
Mutual labels:  mongoose, expressjs, node-js, express-js
express-boilerplate
ExpressJS boilerplate with Socket.IO, Mongoose for scalable projects.
Stars: ✭ 83 (+80.43%)
Mutual labels:  mongoose, expressjs, node-js, express-js
react-full-stack-starter
🎈Full-stack React boilerplate using `create-react-app`, Babel, Node.js, and express
Stars: ✭ 22 (-52.17%)
Mutual labels:  mongoose, expressjs, node-js
timeoff-server
TimeOff is an application that allows companies' employees to set vacations before they begin taking their time off. Implemented in modern tech stack i.e. Node, Express, MongoDB.
Stars: ✭ 33 (-28.26%)
Mutual labels:  mongoose, expressjs, node-js
Node Loadbalance
A collection of distilled load balancing engines
Stars: ✭ 79 (+71.74%)
Mutual labels:  npm-package, npm-module, node-js
node-rest-api-scaffold
This project is an initial NodeJS Rest API scaffold for developers
Stars: ✭ 24 (-47.83%)
Mutual labels:  mongoose, node-js, express-js
Focus Budget Manager
Budget Manager application built with Vue.js, Node.js, Express.js and MongoDB
Stars: ✭ 189 (+310.87%)
Mutual labels:  mongoose, node-js, express-js
Node Typescript Mongodb
node js typescript mongodb express generator yo
Stars: ✭ 96 (+108.7%)
Mutual labels:  generator, mongoose, node-js
arcscord
A Discord library written in typescript
Stars: ✭ 18 (-60.87%)
Mutual labels:  npm-package, npm-module, node-js
express-file-upload
Node.js Express Upload/Download File Rest APIs example with Multer
Stars: ✭ 64 (+39.13%)
Mutual labels:  expressjs, node-js, express-js
BotBlock.org
BotBlock - The List of Discord Bot Lists and Services
Stars: ✭ 29 (-36.96%)
Mutual labels:  expressjs, node-js, express-js
Rando.js
The world's easiest, most powerful random function.
Stars: ✭ 659 (+1332.61%)
Mutual labels:  npm-package, npm-module, node-js
Blueprint
solid framework for building APIs and backend services
Stars: ✭ 87 (+89.13%)
Mutual labels:  expressjs, node-js, express-js
Forge Node App
🛠📦🎉 Generate Node.js boilerplate with optional libraries & tools
Stars: ✭ 90 (+95.65%)
Mutual labels:  npm-package, npm-module, node-js
Node Express Postgresql Server
Basic Node with Express + PostgreSQL Server
Stars: ✭ 74 (+60.87%)
Mutual labels:  expressjs, node-js, express-js
Node Production
Take Your Node.js Project to The Production Environment (VPS/Dedicated Server).
Stars: ✭ 35 (-23.91%)
Mutual labels:  expressjs, node-js, express-js
Practicalnode
Practical Node.js, 1st and 2nd Editions [Apress] 📓
Stars: ✭ 3,694 (+7930.43%)
Mutual labels:  expressjs, node-js, express-js
Serverless Express
Run Node.js web applications and APIs using existing application frameworks on AWS #serverless technologies such as Lambda, API Gateway, Lambda@Edge, and ALB.
Stars: ✭ 4,265 (+9171.74%)
Mutual labels:  expressjs, node-js, express-js
Registration-and-Login-using-MERN-stack
Simple Registration and Login component with MERN stack
Stars: ✭ 210 (+356.52%)
Mutual labels:  mongoose, node-js, express-js


This project's version is no longer actively supported and not recommended for use. It is made available as read-only.

Please check the official website for express application generator https://expressjs.com/en/starter/generator.html



Express Logo

Express' Model View Controller Application Generator.

NPM Version NPM Downloads

Installation

$ npm install express-mvc-generator -g 

##Display the command options with the -h option:

 express -h

  Usage: express [options] [dir]

  Options:

    -h, --help          output usage information
    -V, --version       output the version number
    -e, --ejs           add ejs engine support (defaults to EJS)
        --hbs           add handlebars engine support
    -H, --hogan         add hogan.js engine support
    -c, --css <engine>  add stylesheet <engine> support (less|stylus|compass|sass) (defaults to plain css)
        --git           add .gitignore
    -f, --force         force on non-empty directory

For example, the following creates an Express app named myapp in the current working directory:

express myapp:

$ express myapp


   create : myapp
   create : myapp/public/js/script.js
   create : myapp/package.json
   create : myapp/app.js
   create : myapp/public
   create : myapp/public/js
   create : myapp/public/img
   create : myapp/public/css
   create : myapp/public/css/style.css
   create : myapp/config
   create : myapp/config/routes.js
   create : myapp/config/constants.js
   create : myapp/config/database.js
   create : myapp/config/passport.js
   create : myapp/app/views
   create : myapp/app/views/login.ejs
   create : myapp/app/views/signup.ejs
   create : myapp/app/views/index.ejs
   create : myapp/app/views/index.ejs
   create : myapp/app/views/error.ejs
   create : myapp/app/views/404.html
   create : myapp/app/controllers
   create : myapp/app/controllers/home.js

   install dependencies:
     $ cd myapp && npm install

   run the app:
     $ DEBUG=myapp:* node app or nodemon app 

   create : myapp/app/models
   create : myapp/app/models/home.js
   create : myapp/lib
   create : myapp/lib/email.js

Install dependencies:

$ npm install

###File Structure

$ express myapp


myapp
|
|
|____app
|      |____controllers
|      |    |____home.js
|      |
|      |____models
|      |     |___home.js
|      |
|      |____views
|           |___404.ejs
| 	    |___error.ejs
|           |___index.ejs
|           |___login.ejs
|           |___signup.ejs
|	
|
|_____config
|     |___auth.js
|     |___constants.js
|     |___database.js
|     |___passport.js
|     |___routes.js
|
|
|____lib
|    |___email.js
|
|____node_modules
|
|
|____public.js
|    |____css
|    |    |__style.css
|    |    
|    |____js
|    |    |__script.js
|    |
|    |____img
|    |    |__img.jpg
|    |
|    |
|    |____uploads
|         |__img.jpg
|      
|   
|
|_____app.js
|
|
|
|_____package.json

###Important Settings

  1. Open your config/database.js , Please configure your mongo db.
  2. Open your config/constants.js , Please configure your constants(SMTP ....).
  3. Do you want use SMTP ,Please uncomment passport.js line 95 to 98

Run The express-mvc-generator Application

$ node app or nodemon app 
Demo URL's

Signup : http://localhost:8042/signup
Login :  http://localhost:8042/login

Command Line Options

This generator can also be further configured with the following command line flags.

-h, --help          output usage information
-V, --version       output the version number
-e, --ejs           add ejs engine support (defaults to jade)
    --hbs           add handlebars engine support
    --jade          add jade engine support
-H, --hogan         add hogan.js engine support
-c, --css <engine>  add stylesheet <engine> support (less|stylus|compass|sass) (defaults to plain css)
    --git           add .gitignore
-f, --force         force on non-empty directory

Features

  • Very Good file structure MVC style Express.
  • Already We Given Examples of Controller and Model(Mongoose) , Passport and Config Settings
  • Pre Installed Important and Most Used NPM Packages , and used Example
  • We Given Simple And Well understanding Express MVC Example
  • We already included most used and important npm modules like as pm2 ,async, body-parse, sessions, flash, cookie, dateformat, mongoose, nodemailer , nodemon, passport
  • Support View engines:
    • Jade
    • Handlebars
    • Swig
    • EJS
    • Marko
    • Nunjucks
  • Supported CSS pre-processors
    • SASS (both node-sass and ruby sass)
    • LESS
    • Stylus
  • Supported Databases (with MVC structure):
  • MongoDB
  • MySQL
  • PostgreSQL
  • RethinkDB
  • SQLite

Help/Assistance

Email Us : [email protected]

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].