Giter Site home page Giter Site logo

devenc / generator-express Goto Github PK

View Code? Open in Web Editor NEW

This project forked from petecoop/generator-express

0.0 2.0 0.0 309 KB

An express generator for Yeoman, based on the express command line tool.

License: MIT License

JavaScript 83.82% CoffeeScript 13.38% CSS 0.62% HTML 2.18%

generator-express's Introduction

Generator express

Build Status NPM Version NPM Downloads

An Expressjs generator for Yeoman, based on the express command line tool.

Features

  • Basic or MVC style file structure
  • CoffeeScript Support
  • Gulp or Grunt build tools with file watching and livereload
  • .editorconfig for consistent coding styles within text editors
  • Support View engines:
  • Supported CSS pre-processors
    • SASS (both node-sass and ruby sass)
    • LESS
    • Stylus
  • Supported Databases (with MVC structure):
  • MongoDB
  • MySQL
  • PostgreSQL
  • RethinkDB
  • SQLite

Getting started

  • Make sure you have yo installed: npm install -g yo
  • Install the generator globally: npm install -g generator-express
  • Run: yo express and select Basic. Add --coffee if you require CoffeeScript.
  • Run: grunt or gulp to run the local server at localhost:3000, the grunt/gulp tasks include live reloading for views, css in public/css and restarting the server for changes to app.js or js in routes/

MVC apps

A generator for creating MVC style apps in express. Giving you the choice between the supported databases.

To get going:

  • Make sure you have yo installed: npm install -g yo
  • Install the generator locally: npm install generator-express
  • Run: yo express, select MVC and select your database of choice. Add --coffee if you require CoffeeScript.
  • Ensure that the selected database is running on your machine, if running elsewhere the connection string can be changed in config/config.js
  • Run: grunt or gulp to run the local server - defaults to localhost:3000 - port can be changed in config/config.js. The grunt/gulp tasks include live reloading as before.

Options

  • --coffee

    Uses CoffeeScript.

  • --skip-install

    Skips the automatic execution of bower and npm after scaffolding has finished.

Testing

Tests are written with mocha.

  • Install: npm install -g mocha
  • Run: mocha or npm test

Contributing

Contributors are welcome, please fork and send pull requests! If you have any ideas on how to make this project better then please submit an issue.

License

MIT License

generator-express's People

Contributors

petecoop avatar yaacov avatar fritz-c avatar varemenos avatar zolitch avatar atrox avatar fr3akkk avatar nmaggioni avatar knu2xs avatar vergissberlin avatar danhper avatar nategood avatar raldred avatar vinicius33 avatar cesine avatar amitaibu avatar enniodybeli avatar jariz avatar mikeerickson avatar nicokratky avatar passy avatar pavelvanecek avatar pedroparra avatar pparidans avatar sindresorhus avatar tejasmanohar avatar vwal avatar

Watchers

James Cloos avatar  avatar

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.