-
Notifications
You must be signed in to change notification settings - Fork 24
File Structure
David Hu edited this page May 1, 2017
·
4 revisions
The current file structure for this project is as follows:
π .github
- here we keep the issue and pull request templates.
π app
- π assets - here are all the cool pictures we use in the application.
- π stylesheets
- π base - a folder for the initial CSS set up, such as the reset file, and colors
- π component - a folder for everything else CSS
- π
main.css- what we import in the main index.html
π docs
- where any useful information lives, also our landing page
π src - where our main application lives.
- π common - this is where the common components, actions, etc, lives, so we don't have to rewrite code.
- π core - the main import files, like
app.jsx, its subcomponents,root_reducer.js, etc. - π helpers - some functions to be used across the applications to help and assist.
- π modules - all the big features, divided into their own folders.
- π player - let's walk through video player page as an example.
- π subcomponents
- all the pieces that player uses to render properly.
- π
action.js- all the action constants, creators, and thunk actions used in redux - π `component.js' - the main React component for this module.
- π
index.js- the container file for this module. This file is imported into routes. - π
reducer.js- the reducer for the player component.
- π subcomponents
- π Other modules
- π player - let's walk through video player page as an example.
some git related files, such as
.gitignore,CONTRIBUTING.md
π
index.html- what Electron initially loads before React takes over.
π
main.js- Electron uses this to detect how to make windows.
π
package.json- So everyone knows what package we used.
π
template.html- In case we accidentally removeindex.html, and webpack uses this to create newindex.htmland inject the necessary JavaScript files.
π
webpack.config.js- Set up webpack configuration. Webpack is magic, just not that magic.
π
yarn.lock- So everyone has their dependencies straight.