1.1.2 • Published 6 years ago

create-express-api-mvc v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Express Api generator NPM Version

NPM Downloads

Installation

$ npm install -g create-express-api-mvc -g 

After installation you can then write your project by doing express-api your-project-name 😄

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

express-api myapp:

$ express-api myapp

   create : myapp
   create : myapp/package.json
   create : myapp/app.js
   create : myapp/controllers/
   create : myapp/controllers/home.js
   create : myapp/config/
   create : myapp/config/main.js
   create : myapp/models/
   create : myapp/models/main.js
   create : myapp/
   create : myapp/app.js
   create : myapp/
   create : myapp/router.js

Install dependencies:

$ cd myapp && npm install

#Important Settings 1) Open your config/main.js , Please configure your mongo db.(if you don't there will be error)

###File Structure

$ express-api myapp


myapp
|
|
|____controller
|      |____home.js
|      
|     
|____config
|     |
|     |____main.js
|
|____node_modules
|
|
|____models
|    |__main.js
|
|
|
|    
|____router.js 
|
|
|
|_____app.js
|
|
|
|_____package.json

Credits

Inspired by https://github.com/expressjs/generator

License

create-express-api-mvc is under MIT license - http://www.opensource.org/licenses/mit-license.php

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago