Git Product home page Git Product logo

react-redux-ts-router-boilerplate's Introduction

React-Redux-TypeScript boilerplate

This project was bootstrapped with Create React App.

Scalable start boilerplate for react-redux-typescript pattern

It boilerplate was created for new project quick setup. I try to put here all best practices from react world and my experience. You can easy manage project structure. Change styles for SCSS or styled-components

Instalation

  • Clone the repository
  • cd /to your local folder
  • In terminal run yarn or npm install

Packets inside

  • CRA + TS
  • react-router-dom
  • react-redux
  • redux-thunk
  • axios
  • eslint config depends on airbnb configuration

Folder logic:

 ┣ assets - icons, images
 ┣ components - shared and reusable components
 ┣ hooks - custom hooks
 ┃ ┗ useTypedSelector.ts
 ┣ layouts - page layouts
 ┣ pages - page views
 ┃ ┗ Home
 ┃ ┃ ┣ Home.tsx
 ┃ ┃ ┗ index.ts
 ┣ router - react-router
 ┃ ┗ index.tsx
 ┣ services - api services folder with axios instance
 ┃ ┗ api.ts
 ┣ store - redux store with basic reducer and typing setup
 ┃ ┣ sample
 ┃ ┃ ┣ sampleActions.ts
 ┃ ┃ ┣ sampleReducer.ts
 ┃ ┃ ┗ sampleTypes.ts
 ┃ ┗ index.ts
 ┣ styles - global styles folder
 ┃ ┣ lib - css from libraries, css reset, etc... 
 ┃ ┗ index.css
 ┣ types - global types folder
 ┣ utils - util functions
 ┃ ┣ constants - any app constants
 ┃ ┗ data - for any json or mock data
 ┣ App.test.tsx
 ┣ App.tsx
 ┣ index.tsx
 ┣ react-app-env.d.ts
 ┗ setupTests.ts

Issues

Feel free for create your suggestions in issues or with pull request

react-redux-ts-router-boilerplate's People

Contributors

master-bogdan avatar

Stargazers

 avatar  avatar  avatar  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.