This package runs the React frontend of the Gram application.
Runs on the current stable version of node (v14.7.0).
Install dependencies with:
npm i
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Redux DevTools: https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=en
npm test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
This project uses prettier
as a formatter/linter. To run it from the terminal
(though I recommend otherwise you install a plugin for your IDE), you can use
the following commands:
npm run lint # only checks what files are different
npm run lint-fix # overwrites files
To update the Jest snapshot on UI changes run:
npm test -- -u
To check for any current vulnerable dependencies:
snyk test
Due to a bug, it seems snyk wizard
can't remediate vulnerable dependencies currently.
However, npm audit fix
works in a very similar way. Alternatively npm update
may also work,
if the npm audit
does not detect the same vulnerability as snyk.
npm audit fix
If any dependencies still fail to update (e.g due to major semver change) you'll have to manually update them.