Giter Site home page Giter Site logo

shauncarland / react-redux-sass-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gigacore/react-redux-sass-starter

0.0 1.0 0.0 461 KB

Everything you need to get started with a basic React application

Home Page: https://gigacore.in/demos/react-redux-demo/

License: MIT License

HTML 5.09% JavaScript 73.73% CSS 21.18%

react-redux-sass-starter's Introduction

logos

React, Redux & Sass Starter

A simple and quick way to get you going with developing React applications with Redux and Sass.

Comes with pre-configured Webpack for bundling your application to help save time in setting up your project. Keeps CSS out of JavaScript to maintain separation of concerns. Redux takes care of State Management. If you are looking for CSS-in-JS approach, this starter pack is not for you.

Demo: https://www.gigacore.in/demos/react-redux-demo/

For a complex example with Async actions, take a look at: react-weather-forecast

Components ๐Ÿ”ฉ Styles ๐ŸŽจ Action! ๐ŸŽฌ

With all necessary tools in place, all you need to do is start creating React Components, style them and optionally use Redux for the State management. It is recommended that you use Redux if the applications you are building require interactions between multiple components or that requires pulling data from external source.

All the required code (JS + Sass) goes inside the src folder. Webpack will compile, bundle and output in the public folder, which you can upload/deploy to the root directory of your web server to publish your app!

Get started!

git clone
cd React-Redux-Sass-Starter
npm i

Start the dev server:


npm run start:dev

Build:


npm run build

Note:

  • Changes made to your CSS / JS triggers a full page auto-reload.
  • Running a build writes the bundle.js and bundle.css to the /public/dist/ directory.

Pre-configured tools and plugins

Codebase overview.

/
โ”œโ”€ public/
|  โ”œโ”€ dist/
|  |  โ”œโ”€ bundle.css           # CSS that's generated from SASS
|  |  โ”œโ”€ bundle.js            # Contains scripts of components & vendor(s).
|  โ”œโ”€ index.html              # Contains root element to mount your app.
โ””โ”€ src/
   โ”œโ”€ actions/                # Create actions here.
   |  โ”œโ”€ counterActions.js
   โ”œโ”€ components/             # Create components here
   |  โ”œโ”€ Controls.js
   |  โ”œโ”€ Counter.js
   |โ”€ containers/             # Containers bridge Components with the State.
   |  โ”œโ”€ Controls.js
   |  โ”œโ”€ Counter.js
   โ”œโ”€ constants/              # Define action types here.
   |  โ”œโ”€ ActionTypes.js
   โ”œโ”€ reducers/               # Create reducers here.
   |  โ”œโ”€ counter.js
   |  โ”œโ”€ index.js             # Combine your reducers here.
   โ”œโ”€ styles/                 # All styling goes here.
   |  โ”œโ”€ main.scss
   โ”œโ”€ App.js                  # Include your main component(s).
   โ”œโ”€ index.js                # Passes state to App. Renders markup to DOM.
   โ””โ”€ store.js                # Creates and exports store.

Learn

This starter kit assumes, you are familiar with JavaScript (ES6). If you are new to this stack, here are some resources to help you get started with:

React - Quick Start | Start Learning React | React in 8-minutes

Redux - Basics | An Introduction | React with Redux

Sass - Sass Guide

The MIT License (MIT)

MIT ยฉ 2017 Santhosh Sundar

react-redux-sass-starter's People

Contributors

gigacore avatar kasiriveni avatar

Watchers

 avatar

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.