First, pull the changes from this repository by navigating to the application directory in Git Bash and entering the following command:
git pull
First, we need to update the .npmrc file to correct the Nexus registry URLs.
In Git Bash, navigate to the ~ directory:
cd ~
Open the .npmrc file:
nano .npmrc
Replace the contents of the file with the following:
registry=https://nexus3.devops.lloydsbanking.com/repository/npm-proxy/
@babel:registry=https://nexus3.devops.lloydsbanking.com/repository/npm-proxy/
strict-ssl=false
Hit Ctrl + X to exit, then Y to confirm and then press Enter to save the changes.
Note
If you think this is complicated, you don't want to go anywhere near vim.
In the terminal, navigate back to the application directory.
Before we install the dependencies, we first need to clean npm's cache:
npm cache clean --force
Then, enter the following command to install the application's dependencies:
npm i --legacy-peer-deps
There will be a lot of warnings, but hopefully all the packages should install successfully.
Finally, enter the following command to run the application:
npm run dev
Once the app compiles, hit h + enter, then o + enter to open the application in the browser.
And that's all! Happy coding :)
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh "# eventrox"