Skip to content

Latest commit

 

History

History

app

README

This package runs the React frontend of the Gram application.

Dependencies

Runs on the current stable version of node (v14.7.0).

Install dependencies with:

npm i

Running it

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.

Additional Dev Tools

Redux DevTools: https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=en

Testing

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

Updating / Fixing vulnerable dependencies

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.