Note
This component is part of Repository Scanner - resc
Repository Scanner (RESC) Frontend is a fully responsive dashboard application developed using Vue.js 2 and BootstrapVue framework. It includes such screens as Analytics, Repositories, Scan Findings, Rule Analytics, and Rule Pack.
These instructions will help you to get a copy of the project up and running on your local machine for development and testing purposes.
- Install Node.js v16.17.0
- Install Vue cli using command:
npm install -g @vue/cli
- Install Vetur, ESLint and Prettier extensions to your VSCode IDE.
- Install Docker
- Ensure RESC webservice is up and running in order to visualize data. This API is running at http://localhost:30800/.
- Clone the repository and refer the following steps to run the project locally.
cd components/resc-frontend
npm install
npm run serve
- Access the application using this url: http://localhost:8080/
Note: Replace the actual values in the placeholders and
Build the RESC Frontend Docker image locally by running the following commands.
- Pull the docker image from registry:
docker pull rescabnamro/resc-frontend:latest
- Alternatively, build the docker image locally by running:
docker build -t rescabnamro/resc-frontend:latest .
- Run the RESC frontend by using the following command:
docker run -p 8080:8080 -e VITE_AUTHENTICATION_REQUIRED="false" -e VITE_RESC_WEB_SERVICE_URL="http://localhost:30800/resc" --name resc-frontend rescabnamro/resc-frontend:latest
Access the application using this url: http://localhost:8080/
To enable/disable single sign-on (SSO) set the following values in .env.development file.
Enable SSO:VITE_AUTHENTICATION_REQUIRED=true
Disable SSO:VITE_AUTHENTICATION_REQUIRED=false
Note: Ensure to restart the server by running npm run serve for the change to take effect.
Run your unit tests: npm run ut
Linting files: npm run lint
Linting and fixing files: npm run lint:autofix
Compiles and minifies for production: npm run build