Skip to content

amitwaghmaretorinit/react_template

Repository files navigation

React Template

An enterprise react template application showcasing - Global state management, a network layer, component library integration, route configuration, lazy loading



Getting Started

  • Install dependencies using yarn install

  • Start the dev server using yarn start

  • Go through the other scripts in package.json

Global state management using reduxSauce

Network requests using Axios

Styling using styled-components

Using antd as the component library

Routing using react-router

Creating and showcasing components individually and in isolation using Storybooks

  • Storybooks allows you to work on one component at a time. You can develop entire UIs without needing to start up a complex dev stack, force certain data into your database, or navigate around your application.

Bundling your application using ReactAppRewired

  • We're using and configuring webpack to bundle our React application.

    Take a look at the following files

  • Testing is done using the @testing-library/react.

Following Atomic Design Pattern

  • Atoms:

    Basic building blocks of matter, such as a button, input or a form label. They’re not useful on their own.

  • Molecules:

    Grouping atoms together, such as combining a button, input and form label to build functionality.

  • Organisms:

    Combining molecules together to form organisms that make up a distinct section of an interface (i.e. navigation bar)

  • Templates:

    Consisting mostly of groups of organisms to form a page — where clients can see a final design in place.

  • Pages:

    An ecosystem that views different template renders. We can create multiple ecosystems into a single environment — the application.

Aliasing

 "compilerOptions": {
   "baseUrl": ".",
   "paths": {
     "@ability/*":[
       "src/ability/*"
     ],
     "@assets/*": [
       "src/assets/*"
     ],
     "@constants/*": [
       "src/constants/*"
     ],
     "@components/*": [
       "src/shared/components/*"
     ],
     "@atom/*": [
       "src/shared/atom/*"
     ],
     "@molecules/*": [
       "src/shared/molecules/*"
     ],
     "@organism/*": [
       "src/shared/organism/*"
     ],
     "@constant/*": [
       "src/shared/constant/*"
     ],
     "@icons/*": [
       "src/shared/icons/*"
     ],
     "@layout/*": [
       "src/layout/*"
     ],
     "@Layout/*": [
       "src/shared/Layout/*"
     ],
     "@redux/*": [
       "src/redux/*"
     ],
     "@utils/*": [
       "src/utils/*"
     ],
     "@pages/*": [
       "src/pages/*"
     ],
     "@services/*": [
       "src/services/*"
     ],
     "@store/*": [
       "src/store/*"
     ],
     "@hooks/*": [
       "src/hooks/*"
     ]
   }
 }
}

Take a look at the following files

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published