- Install a stable version of Yarn and NodeJS (use node version 4-9 with nvm).
- Run
yarn
to install dependencies. - Copy the
.env.example
file as.env
and set the variableREACT_APP_IVLE_KEY
to contain your IVLE Lapi key. - Run
yarn start
to start the server atlocalhost:80
. Admin permissions may be required for your OS to serve at port 80.
For NUS students, you can access your IVLE LAPI key here.
In package.json, change line 19: "start-js": "rm -r coverage; BROWSER=none PORT=80 react-scripts-ts start", to: "start-js": "set PORT=80 & react-scripts-ts start",
- For now, use the branch 'update-js-slang' in cadet-frontend
- Follow the instructions on js-slang to transpile your own copy
- Edit line 41 of package.json in this project to link to the directory of your js-slang and then run
yarn
:
"js-slang": "file:path/to/js-slang",
Note that this copies your files over, any future changes will not be reflected.
You may try this for a smoother experience.
actions
contains action creators, one file per reducer, combined in index.assets
contains static assets.components
contains all react components.containers
contains HOC that inject react components with Redux state.mocks
contains mock data structures for testingreducers
contains all Redux reducers and their state, combined in index.sagas
contains all Redux sagas, combined in index.slang
contains the source interpreter.styles
contains all SCSS styles.utils
contains utility modules.
We reference this guide.