sails wallet
- use --recursive flag when cloning the rep
- npm i
- npm run electron-dev (or npm run electron-dev-browser)
sails - main folder
- bc_node - blockchain part written in golang
- public - static documents
- css - folder for css
- img - images
- js - simple js and json files
- setups - files thar are used for diferent kind of setups ( routers, env ...)
- src
- actions - folder reserved for redux actions
- components - folder for react components
- libs - additional libs and hellpers that are used in modules
- modules - folder for components logic
- reducers - folder reserved for redux reducers
- store - folder reserved for redux store wich contains only one file - store.js
- bin - folder for gosafex executable
- if its possible use one component per file
- Use PascalCase for component classes and camelCase for component instances and function names
- Use the filename as the component name
- every component that is used in more than one place should be in src/componets/shared folder
- every page should have folder inside src/components
- module files have extension .module.js and its module per page (ex. Home components should have home.module.js module that have functions for each component inside src/components/home folder)
- tests have .test.js extension
- actions for redux should have action.js extension
- reducers should have reducer.js extension
- reducers and actions shoud be broken down on state propery level (ex. for wallet property of the state there will be wallet.reducer.js and wallet.action.js that will have all logic for manipulation of the wallet propery inside the state)
- root.reducer.js combines all reducer
- there should be only one redux store