Skip to content

Instantly share code, notes, and snippets.

@Aziaev
Created August 17, 2018 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aziaev/3fa6589b0ac76ae948b052721d33d7ce to your computer and use it in GitHub Desktop.
Save Aziaev/3fa6589b0ac76ae948b052721d33d7ce to your computer and use it in GitHub Desktop.
my-app
├──README.md
├──node_modules
├──package.json
├──.gitignore
├──.eslintrc
├──public
│ ├──favicon.ico
│ ├──index.html
│ └──manifest.json
├──build
└──src
├──App.jsx
├──index.js - entry point
├──registerServiceWorker.js (optional)
├──assets
│ ├──css
│ └──img
├──components (for shared components)
│ ├──[jsx files]
│ └──__tests__
├──helpers (for shared utility functions)
│ ├──(js files with functions)
│ └──__tests__
├──modules (page views)
│ ├──<module name>
│ │ ├──__tests__
│ │ ├──constants.js
│ │ ├──constants.js
│ │ ├──view.jsx (view component)
│ │ ├──styled.jsx (styled components
│ │ ├──[...<componentname>.jsx] (bunch of react stupid components)
│ │ └──container.jsx (container for store connection
│ └──index.js
└──core (directory for redux utility code such as actions, reducers, sagas and async api functions)
├──__tests__
├──async
│ └──index.js
├──actions
│ ├──[...<name>actions.js] (bunch of actions)
│ └──index.js
├──constants
│ └──index.js
├──reducers
│ └──[...<name>reducer.js] (bunch of reducers)
│ └──index.js
├──sagas
│ ├──[...<name>saga.js] (bunch of reducers. Optional)
│ └──index.js
└──store
└──index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment