This repo has been moved to https://github.com/electrode-io/electrode#yeoman-generator
Generate Electrode
IsomorphicUniversal React App with NodeJS backend.
First, install Yeoman, gulp, and generator-electrode using npm (we assume you have pre-installed node.js (> 4.2.x required)).
$ npm install -g yo gulp generator-electrodeNote: You may need add
sudoto the command.
Then generate your new project:
$ mkdir your-project-name
$ cd your-project-name
$ yo electrodeNote: If the app is not properly generated at the correct destination, make sure you do not have a .yo-rc.json file hidden in your CWD.
Once the application is generated and npm install is completed, you are ready to try it out.
$ npm startWait for webpack to be ready and navigate to http://localhost:3000 with your browser.
You can run gulp to see the list of tasks available.
Some common ones:
gulp dev- start in webpack-dev-server development modegulp hot- start in webpack-dev-server hot modegulp build- build productiondistfilesgulp server-prod- start server in production modegulp check- run unit tests with coverage
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
Built with ❤️ by Team Electrode @WalmartLabs.
Apache-2.0 © WalmartLabs