Skip to content
Snippets Groups Projects
Håkon Eilertsen Røskaft's avatar
Håkon Eilertsen Røskaft authored
redirect when button is clicked

See merge request !160
f1f2d069

BoCo - Frontend

Table of contents

  1. Installation
  2. Running the project
  3. Running tests

Project setup

To run the frontend node.js is required.

Install required dependencies by running

npm install

The frontend cannot run by itself and requires a backend service. The URL to this backend service needs to be provided in the environmental variables. This can be done in these steps

  • Create a file with the name .env in the root folder
  • If the backend service uses the default configuration insert this into the file
    VUE_APP_BASEURL=http://localhost:3000/api/

Running the project

  • To compile and run with hot-reloads for development

    npm run serve
  • To compile and minify project for prodoction

    npm run build

Running tests

To run the tests run the command:

npm run test:unit

This will run all the tests and provide a coverage report. Due to a bug with jest and vue there are tests and files missing in the coverage report. This is due to jest skipping files with ES6 import.

Customize configuration

See Configuration Reference.