From c42fe11ab106cf35a8ae5c3b1e82b64fce18918c Mon Sep 17 00:00:00 2001
From: saschrad <saschrad@stud.ntnu.no>
Date: Fri, 6 May 2022 11:18:03 +0200
Subject: [PATCH] added readme

---
 README.md | 51 ++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 36 insertions(+), 15 deletions(-)

diff --git a/README.md b/README.md
index fb1f6eb..8933cae 100644
--- a/README.md
+++ b/README.md
@@ -1,29 +1,50 @@
-# frontend
+# BoCo - Frontend
+
+
+<img src="public/favicon.ico" height="100" title="hover text">
+
+## Table of contents
+1. [instalasjon](#project-setup)
+1. [Running the project](#running-the-project)
+1. [Running tests](#running-tests)
 
 ## Project setup
+
+To run the frontend node.js is required.
+- Installation links
+    - [node.js](https://nodejs.org/en/download/)
+
+Install required dependencies by running   
 ```
 npm install
 ```
 
-### Compiles and hot-reloads for development
-```
-npm run serve
-```
+The frontend cannot run by iteself and requires a backend service. The URL to this backend service needs to be provided in the enviormental variables. This can be done in these steps
 
-### Compiles and minifies for production
-```
-npm run build
-```
+- Create a file with the name ``.env`` in the root folder
+- If the backend service uses the default configuration insert into the file
+    ```
+    VUE_APP_BASEURL=http://localhost:3000/api/
+    ```
 
-### Run your unit tests
-```
-npm run test:unit
-```
 
-### Lints and fixes files
+## Running the project
+- To compile and run with hot-reloads for development
+    ```
+    npm run serve
+    ```
+
+- To compile and minifi project for prodoction
+    ```
+    npm run build
+    ```
+
+## Running tests
+To run the tests run the command:
 ```
-npm run lint
+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](https://cli.vuejs.org/config/).
-- 
GitLab