- Install a stable version of Yarn and NodeJS (use node version 4-9 with nvm).
- Run
yarnto install dependencies. - Copy the
.env.examplefile as.envand set the variableREACT_APP_IVLE_KEYto contain your IVLE Lapi key. - Run
yarn startto 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.
actionscontains action creators, one file per reducer, combined in index.assetscontains static assets.componentscontains all react components.containerscontains HOC that inject react components with Redux state.mockscontains mock data structures for testingreducerscontains all Redux reducers and their state, combined in index.sagascontains all Redux sagas, combined in index.slangcontains the source interpreter.stylescontains all SCSS styles.utilscontains utility modules.
We reference this guide.