Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cheton/generator-webappengine
A Yeoman Generator for WebAppEngine. It includes Gulp, Browserify, Babelify, Stylus, Handlebars, i18next, and React.
https://github.com/cheton/generator-webappengine
Last synced: 10 days ago
JSON representation
A Yeoman Generator for WebAppEngine. It includes Gulp, Browserify, Babelify, Stylus, Handlebars, i18next, and React.
- Host: GitHub
- URL: https://github.com/cheton/generator-webappengine
- Owner: cheton
- License: mit
- Created: 2015-08-19T11:15:09.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-23T03:08:03.000Z (over 8 years ago)
- Last Synced: 2024-10-30T00:00:15.638Z (20 days ago)
- Language: JavaScript
- Homepage: http://cheton.github.io/generator-webappengine
- Size: 94.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# generator-webappengine
[![NPM](https://nodei.co/npm/generator-webappengine.png?downloads=true&stars=true)](https://www.npmjs.com/package/generator-webappengine)
A Yeoman Generator for [WebAppEngine](https://github.com/cheton/webappengine). It includes Gulp, Browserify, Babelify, Stylus, Handlebars, i18next, and React.
## Installation
Follow the steps to run the generator:
```bash
$ npm install -g yo
$ npm install -g generator-webappengine
$ yo webappengine
```Once completed, you have to install NPM packages and Bower components, and run the `gulp` command to build your project.
```bash
$ npm install
$ bower install
$ gulp
```Now you can run `node app/main.js` to launch your web app, or use webappengine to load [app.js](/generators/app/templates/app/app.js). For example:
Your [index.js](/generators/app/templates/index.js) might look like this:
```js
var path = require('path');
var webappengine = require('webappengine');webappengine({
port: 8000,
routes: [
{
type: 'server',
route: '/',
// An absolute path is recommended to use
server: path.resolve(__dirname, 'app/app')
}
]
});
```## License
Copyright (c) 2015 Cheton Wu
Licensed under the [MIT License](LICENSE).