scaffold-express-app

1.0.9 • Public • Published

scaffold-express-app

A simple express project generator

Installation

$ npm install -g scaffold-express-app
$ scaffold-express-app

OR

$ npx scaffold-express-app

NOTE: With npm@6 this will run this package with npx. If you are on an earlier version of npm you will need to install globally and run directly:

Usage

Guided Process

It couldn't be easier to create new express app. Simply type scaffold-express-app and you'll start the guided process, being asked up to 3 questions:

Question 1: ( Choose one option)

? Choose a language for the project template? 
❯ JavaScript 
  TypeScript

Question 2: ( Choose one option)

? What project template would you like to generate? 
❯ express-basic 
  express-mvc  

Question 3: ( Enter your project name)

? Enter Project name: demo-app

Folder Structure

express-basic ( option structure )
    |
    |____node_modules
    |
    |____app.js
    |
    |_____main.js
    |
    |_____README.md
    |
    |_____package.json
 
express-mvc ( option structure )
    |
    |____node_modules
    |
    |____srs
    |      |
    |      |_____main.js
    |      |
    |      |_____app.js
    |      |
    |      |_____api.js
    |      |
    |      |_____public
    |      |        |
    |      |        |_____index.html
    |      |
    |      |_____user
    |      |       |
    |      |       |_____router.js
    |      |       |
    |      |       |_____module.js
    |      |       |
    |      |       |_____model.js
    |      |
    |      |_____utils
    |              |
    |              |_____authenticate.js
    |
    |_____README.md
    |
    |_____package.json
 

Package Sidebar

Install

npm i scaffold-express-app

Weekly Downloads

1

Version

1.0.9

License

ISC

Unpacked Size

26.1 kB

Total Files

34

Last publish

Collaborators

  • sai_jeevan_balla