The Urlist - Frontend

Build status

The frontend for this project was build with the following libraries and frameworks:

Other useful tools

Build and run the frontend locally

Install Vue CLI globally

npm install -g @vue/cli

Install npm packages for frontend project

npm install

Serve development build

npm run serve

localhost serve

Create production build

npm run build

This creates a dist folder under frontend

Lints and fixes files

npm run lint

Running locally vs running on Azure

The code is optimised to be run in a local environment. If either the frontend or backend are run on Azure, there is one line of code that needs to be changed: In \frontend\src\services\api.service.ts change line 19 from

axios.defaults.withCredentials = false;

to

axios.defaults.withCredentials = true;

This should keep you out of CORS troubles