Giter Site home page Giter Site logo

wei-lee / generator-espress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thekelvinliu/generator-espress

0.0 2.0 1.0 194 KB

an opinionated yeoman generator that scaffolds a mvc express webapp completely in es6

License: MIT License

JavaScript 73.78% Shell 26.22%

generator-espress's Introduction

generator-espress

generator-espress

an opinionated yeoman generator that scaffolds a mvc express webapp completely in es6

what's included

To do

  • [] database via mongodb + mongoose
  • [] Chef cookbook
  • [] Nagios Check Scripts
  • [] Dockerfiles

getting started

install

simply run the following to install via npm:

npm i -g yo gulp-cli

Clone this repo and them runn

npm link .

generating!

once installed, simply do yo espress, and you'll be on your way to building your next project!

structure of the generated project

all of your source code goes in the src folder. anything javascript can (and should) be written in es6. the strucutre is as follows:

├── Gruntfile.js
├── LICENSE
├── README.md
├── config
│   └── dev.json
├── package.json
├── scripts
│   ├── fh-test
│   ├── fh-test-launcher.sh
│   ├── install.sh
│   └── postinstall.sh
├── sonar-project.properties
└── src
    ├── app.js
    ├── endpoints
    │   └── http
    │       ├── error.js
    │       ├── index.js
    │       └── sys.js
    └── helpers
        ├── logger.js
        └── validation.js

The generated project will use ES6 by default. To transpile the app, run

grunt babel

It will generate the code in the lib directory

tasks

  • gulp is the same as gulp serve, which not only starts your express server, but also reloads it whenever server-side code changes
  • gulp build creates your production-ready webapp by running the following tasks:
  • gulp lint will lint all javascript with eslint and rules definted in .eslint.json
  • gulp clean will remove any and all files created by any of the above tasks
  • gulp tasks will show you all of the available tasks

generator-espress's People

Contributors

thekelvinliu avatar

Watchers

James Cloos avatar Wei Li avatar

Forkers

maleck13

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.