Git Product home page Git Product logo

react-redux-simple-starter's Introduction

Notice

This project will no longer be updated, in favor of focusing my efforts on the Scalable React Boilerplate and Generator Scalable React. Feel free to keep using it!

React Redux Simple Starter Logo

Behind the boilerplate

The hardest part about React is getting setup. This project aims to help anyone quickly get bootstrapped with the latest versions of React, Redux, Webpack, etc. It uses Hot Module Reloading and has a few optional add-ons like React Foundation, Redux Form, etc.

It follows best practices, including the AirBnb JS & JSX style guides and uses the FTF (file-type first) organizational pattern.

Scalable / Feature First Boilerplate

If you're looking for something with a bit more features, take a look at the Scalable React Boilerplate project!

Documentation

Getting Started

To try the example application out or to use the project, follow the instructions below.

  1. Clone repo

    git clone https://github.com/RyanCCollins/react-redux-simple-starter.git

  2. Install dependencies

    npm run setup

  3. Run development server

    npm run start

    Development server should be running at http://localhost:8080/

  4. Make build

    npm run build

File Structure

  • Some files left out for brevity. Please reference the files in the React Redux Simple Starter project for information about the file structure.
.
├── README.md
├── LICENSE
├── index.html
├── package.json
├── webpack.config.js
├── app/
|   ├── fonts
|   ├── images
|   ├── src
|   |   ├── actions
|   |   ├── components
|   |   |   ├── MyComponent
|   |   |   ├── MyOtherComponent
|   |   |   ├── App.js
|   |   |   ├── Main.js
|   |   |   └── index.js
|   |   ├── containers
|   |   |   ├── MyContainer
|   |   |   └── index.js
|   |   ├── pages
|   |   ├── reducers
|   |   ├── store
|   |   ├── utils
|   |   └── index.js
|   ├── styles
|   └── tests
|   |   ├── actions
|   |   ├── components
|   |   ├── reducers
|   |   └── test_helper.js
├── .eslintignore
├── .eslintrc
├── .gitattributes
└── .gitignore

Scripts

  • npm run setup

    Installs the application's dependencies

  • npm run test

    Runs unit tests

  • npm run test:watch

    Watches for changes to run unit tests

  • npm run build

    Bundles the application

  • npm run dev

    Starts webpack development server

  • npm run lint

    Runs the linter

  • npm run deploy

    Creates the production ready files

  • npm run clean

    Removes the bundled code and the production ready files

Technologies / Libraries

Timeline / TODOS

  • Write README file
  • Setup Filetype First organization
  • Add better demonstration of included libraries (run the test application)
  • Write unit tests and setup folder structure for testing (See tests directory for examples)
  • Migrate to Feature First file organization as noted in this article and in the React Boilerplate (See here)
  • Write component tests using Jest and / or Enzyme
  • Write wiki / other documentation
  • Implement a Rails like component generator

Acknowledgements

This project is loosely based on: This boilerplate.

Thank you to @mezod for their hard work and inspiration.

react-redux-simple-starter's People

Contributors

ryanccollins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-redux-simple-starter's Issues

Error in npm start on win10

Good morning, I'm having trouble running npm start.

Always the same error occurs, already tried to run with the node, 8.0.0, 6.11.0 and now with the node that is in package.js 4.2.4. But without success in all these versions.

Error displayed at prompt:

(I.e.

PS D: \ Projects \ react redux \ react-redux-simple-starter-master> npm start

[email protected] start D: \ Projects \ react redux \ react-redux-simple-starter-master
Npm run dev

[email protected] dev D: \ Projects \ react redux \ react-redux-simple-starter-master
Npm bin / webpack-dev-server

'`Npm' 'is not recognized as an internal command
Or external, an operable program or a batch file.

Npm ERR! Windows_NT 10.0.14393
Npm ERR! C: \ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js "" run "" dev "" C: \ Program Files \ nodejs \ node.exe "
Npm ERR! Node v4.2.4
Npm ERR! Npm v3.8.8
Npm ERR! Code ELIFECYCLE
Npm ERR! [email protected] dev: `` npm bin / webpack-dev-server
Npm ERR! Exit status 1
Npm ERR!
Npm ERR! Failed at the [email protected] dev script '`npm bin` / webpack-dev-server'.
Npm ERR! Make sure you have the latest version of node.js and npm installed.
Npm ERR! If you do, this is most likely a problem with the react-redux-simple-starter package,
Npm ERR! Not with npm itself.
Npm ERR! Tell the author that this fails on your system:
Npm ERR! `Npm bin` / webpack-dev-server
Npm ERR! You can get information on how to open an issue for this project with:
Npm ERR! Npm bugs react-redux-simple-starter
Npm ERR! Or if that is not available, you can get their info via:
Npm ERR! Npm owner ls react-redux-simple-starter
Npm ERR! There is likely additional logging output above.

Npm ERR! Please include the following file with any support request:
Npm ERR! D: \ Projects \ react redux \ react-redux-simple-starter-master \ npm-debug.log

Npm ERR! Windows_NT 10.0.14393
Npm ERR! C: \ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js "" C: \ Program Files \ nodejs \ node.exe "
Npm ERR! Node v4.2.4
Npm ERR! Npm v3.8.8
Npm ERR! Code ELIFECYCLE
Npm ERR! [email protected] start: npm run dev
Npm ERR! Exit status 1
Npm ERR!
Npm ERR! Failed at the [email protected] start script 'npm run dev'.
Npm ERR! Make sure you have the latest version of node.js and npm installed.
Npm ERR! If you do, this is most likely a problem with the react-redux-simple-starter package,
Npm ERR! Not with npm itself.
Npm ERR! Tell the author that this fails on your system:
Npm ERR! Npm run dev
Npm ERR! You can get information on how to open an issue for this project with:
Npm ERR! Npm bugs react-redux-simple-starter
Npm ERR! Or if that is not available, you can get their info via:
Npm ERR! Npm owner ls react-redux-simple-starter
Npm ERR! There is likely additional logging output above.

Npm ERR! Please include the following file with any support request:
Npm ERR! D: \ Projects \ react redux \ react-redux-simple-starter-master \ npm-debug.log
PS D: \ Projects \ react redux \ react-redux-simple-starter-master>

Error in log file:

0 info it worked if it ends with ok
1 verbose cli ['C: \ Program Files \ nodejs \ node.exe',
1 verbose cli 'C: \ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js',
1 verbose cli 'start']
2 info using [email protected]
3 info using [email protected]
4 verbose run-script ['prestart', 'start', 'poststart']
5 info lifecycle [email protected]prestart: [email protected]
6 silly lifecycle [email protected]
prestart: no script for prestart, continuing
7 info lifecycle [email protected]start: [email protected]
8 verbose lifecycle [email protected]
start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]start: PATH: C: \ nvm \ v4.2.4 \ node_modules \ npm \ bin \ node-gyp-bin D: \ Projects \ react redux \ react- C: \ Windows \ system32 \ C: \ Program Files \ Netscape \ C: \ Program Files \ C: \ Program Files \ Microsoft SQL Server \ 130 \ Tools \ Binn \ C: \ Windows \ System32 \ Wbem; C: \ Windows \ System32 \ WindowsPowerShell \ v1.0 \ C: \ Program Files (x86) \ GtkSharp \ 2.12 \ bin; C: \ Program Files (x86) \ Microsoft Emulator Manager \ 1.0 \ C: \ Program Files \ Anaconda3; C: \ Program Files \ Anaconda3 \ Scripts; C: \ Program Files \ Anaconda3 \ Library \ bin; C: \ WINDOWS \ system32; C: \ WINDOWS \ System32 \ Program Files \ Git \ cmd; C: \ ProgramData \ chocolatey \ bin; C: \ Program Files \ Java \ jdk1.8.0_131 \ bin \ C: \ WINDOWS \ System32 \ WindowsPowerShell \ v1.0 \ C: \ Program Files \ nodejs; C: \ Program Files (x86) \ Microsoft VS Code \ bin; C: \ Use C: \ nvm; Rs \ Isaac and Sabrina \ AppData \ Local \ Microsoft \ WindowsApps
10 verbose lifecycle [email protected]
start: CWD: D: \ Projects \ react redux \ react-redux-simple-starter-master
11 silly lifecycle react-redux-simple-s

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.