react-webpacket
v1.0.8
Published
React-webpacket by is a JavaScript library for dealing with the frustration of configuring and setting up react, redux and webpack environment. React-webpacket automatically sets up your react, redux and webpack app environment, no need to bother with red
Downloads
25
Maintainers
Readme
React-Webpacket
React-webpacket by is a JavaScript library for dealing with the frustration of configuring and setting up react, redux and webpack environment. React-webpacket automatically sets up your react, redux and webpack app environment, no need to bother with redux configuration, webpack settings, eslint and other petty stuff. Avoid unnecessary time wasting and jump straight into doing what you love ♥ - coding. Visit webpacket.org for more information.
Installation
Use the npm package manager to install react-webpacket.
sudo npm install -g react-webpacket
or
yarn global add react-webpacket
Usage
react-webpacket [project name]
Eg. react-webpacket todo_app -> will create a folder 'todo_app' and add all
the necessary files to the folder.
follow the prompt
1. Make a selection [press Enter]
2. Enter names of your views (your App pages), separated by a space.
3. Enter names of your redux reducers (separated by a space), actions,
reducers and a store are automatically created for these reducers.
4. React-webpacket automatically installs dependencies, fix eslint and then hot reloads in the browser with your pages and redux combinereducers, actions and store.
5. Open http://localhost:8008
Test
yarn test or npm run test
Notes
if you select => react-redux-webpack-express-sequelize-passport
you must create a database and edit the setting in /server/config/config.json with your credentials.
Run npm run start or yarn start to start the client and the server.
Open http://localhost:8008
Api routes is at /api. eg
POST == http://localhost:8008/api/user
{
"email":"[email protected]",
"password":"ilovereact",
"first_name":"Desmond",
"last_name":"Toye",
"role":"1",
"phone":949455454545,
"status":"active"
}
will create the user credentials in your database.
GET == http://localhost:8008/api/user
Will return all your user details.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.