- App Site: https://scode-test.appspot.com/
- Community services repos:
- Project Board: https://github.com/orgs/SCODEMeetup/projects/8
- Introduction website
- download nvm
- Install node 10
- clone the code base
- run the following command
npm i
- installs all node dependencies - to start locally run the following command
npm run dev
- navigate to localhost:3000
NOTE: All UI code is inside src/renderer
.
components
- contains the simple components the application uses (ie: button, appbar, icon, etc).
containers
- contains multiple components that can be reused between different scenes
scenes
- The main code specific to each page (ie home). This can contain containers & components
redux/middleware
- Code for changes that need to be made during routing changes (ie fetch more data from the server, etc)
redux/modules
- Code for redux store changes.
This repository does not follow the traditional approach to redux. This repository abstracts away the boilerplate of actions & reducers. Those have been replaced with two actions and paths.
setstate
- used to set a specific piece of the store (usage:setstate(value, [path-to-state])
)select
- used to grab a specific piece of the store (usage:select([path-to-state], store)
)
Paths are just arrays that traverse the store to the specific peice of state the user needs to access (grab/set).
example:
# store
{
toDo: {
list: [],
dummy: 'test'
}
}
# path variables
const pathToList = ['toDo', 'list'];
const dummyPath = ['toDo', 'dummy'];
#grab piece of the store
const grabValue = select(pathToList, store);
# set piece of store
dispatch(setstate('newValue', dummyPath));
# new store after call above
{
toDo: {
list: [],
dummy: 'newValue'
}
}
Continuous deployment is setup to push code in prod when master is updated.