the-urlist / frontend-vue-typescript

A Vue/TypeScript frontend for https://www.theurlist.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Vue/TypeScript frontend for https://www.theurlist.com


Languages

Language:Vue 64.0%Language:TypeScript 25.0%Language:SCSS 5.1%Language:HTML 4.6%Language:JavaScript 1.0%Language:Dockerfile 0.3%