/react-starter-kit

A React-Redux boilerplate with best practices

Primary LanguageJavaScript

Quick start

  1. Clone repo using git clone https://github.com/srthapa927/react-starter-kit.git <YOUR_PROJECT_NAME>
  2. Move to the project directory: cd <YOUR_PROJECT_NAME>.
  3. Run npm i in order to install dependencies.
  4. Now you can run npm run dev to see the example app at http://localhost:8080

Features

  • React
  • Connected React Router
  • Redux
  • Redux Persist
  • Redux Sauce
  • Redux Saga
  • Immer

Folder Structure

  -- src/
    -- actions/      -->  for redux actions
    -- assets/       -->  for static assets and styles
    -- components/   -->  for components
        -- common/   -->  for shared components
    -- reducers/     -->  for redux reducers
    -- routes/       -->  for all routes
    -- sagas/        -->  for redux sagas
    -- services/     -->  for api requests
    -- utils/        -->  for utility / helper functions
    -- views/        -->  for page specific components / container components