package
Express & ES6 single page app generator
npm install generator-mcGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 19 packages.
2.1 MB
Includes dependencies.
2 direct · 2 outdated
^0.7.0
7.3.1
^0.22.5
10.3.0
This is a yeoman generator for making express & js applications. It's the little sister of a fully universal / isomorphic generator which you can find here: https://github.com/dazld/generator-cairn - if you're looking for server rendered react, redux etc, that would be a better place to look.
There is a full suite of watching, livereloading, compilation and related gulp tasks. The express server renders html as you would expect, and they can be found in the server/views folder.
It is a work in progress, and pull requests are welcome as long as they remain in the spirit of the generator.
Install Yeoman - npm install -g yo.
Install generator globally: npm install -g generator-mc
Check everything is working: yo --help - should see a list of generators, and mc in there too.
Make a new directory, cd into it.
yo mc - give the project a name (it uses the directory name as default).
Yeoman will perform git init and npm install for you - this takes a while, so be prepared for a short wait.
gulp - default task runs dev server, watches and builds.
USE_HTTPS=true gulp for running a https localhost server
Sockets on iOS with a self signed cert - https://blog.httpwatch.com/2013/12/12/five-tips-for-using-self-signed-ssl-certificates-with-ios/
npm install -g generator-mc