Frontend application which allows users to enter their dependencies and view the results of their vulnerability scans.
- Change into the correct directory -
cd ./src
- Ensure that there isn't an existing node_modules by running
rm -rf node_modules
- Install the required node modules -
npm install
- Start the app -
npm start
- The app should be runnning on
localhost:3000
- Install Docker on your machine by following this guide
- Change to the root directory - e.g. webapp-frontend
- Run docker-compose to built the image and start the container
docker-compose up
- If you make changes, ensure you rebuild the image to see the changes by running:
docker-compose up --build
Eslint is a linter that can help to tidy up your cody and ensures everyone working on the project is practicing the same coding standards. It helps to make the code readable and easy for everyone to understand.
npx eslint ./src
npx eslint ./src --fix