Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 2.33 KB

README.md

File metadata and controls

67 lines (43 loc) · 2.33 KB

Bulletproof React 🛡️ ⚛️

MIT License

A simple, scalable, and powerful architecture for building production ready React applications.

Motivation

React is an amazing tool for building feature rich applications. It has a very diverse eco-system with hundreds of libraries for literally anything you might need. Which is great, but in the other hand it can be overwhelming to be forced to make so many choices.

It is also very flexible, you can write React applications in any way you like. That flexibility comes with a cost.

There is no pre-defined architecture developers can to follow which often leads to messy, uncosistent or over-complicated codebases.

This is an attempt to present the way how I prefer to structure React applications using the best tools in the eco-system and a good project structure.

The goal of this repo is to serve as a collection of good practices when developing React applications. It is supposed to showcase most of real-world problems in a practical way.

Roadmap

  • Authentitication
  • Authorization
  • Routing
  • Forms
  • API calls
  • Client related state
  • Server related state
  • Project structure
  • TypeScript
  • ESLint, Prettier, Husky setup
  • Testing
  • Storybook
  • API Mocking
  • Appendix

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open https://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

License

MIT