Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idatt2106_2023_11_frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sander Olin Arild Johansen
idatt2106_2023_11_frontend
Commits
4a551f0c
Commit
4a551f0c
authored
2 years ago
by
Joakim
Browse files
Options
Downloads
Patches
Plain Diff
Created README
parent
f0cfc83d
No related branches found
No related tags found
No related merge requests found
Pipeline
#225879
passed
2 years ago
Stage: build
Stage: test
Stage: lint
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+53
-34
53 additions, 34 deletions
README.md
with
53 additions
and
34 deletions
README.md
+
53
−
34
View file @
4a551f0c
# frontend
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Run unit tests
```
npm run test:unit
```
### Lints and fixes files
```
npm run lint
```
### Run mock pipeline (build, test, lint)
```
npm run pipeline
```
### Customize configuration
See
[
Configuration Reference
](
https://cli.vuejs.org/config/
)
.
# Smart Mat Frontend README
## Table of Contents
1.
Prerequisites
2.
Installation
3.
Running the Application
4.
Running the tests
---
### 1. Prerequisites
Before starting make sure that the following tools and software are installed on your machine:
-
Node.js:
[
Download Node.js
](
https://nodejs.org/en/download
)
---
### 2. Installation
Download the source code from the repository
---
### 3. Running the Application
1.
Make sure you have installed the backend part of the application and that the server is running
2.
Open a terminal and navigate to the root folder of the project
3.
Run the following commands in order
-
`npm install`
-
`npm run serve`
4.
Open your preferred browser and go to:
`http://localhost:5000`
Thats it, you are all set to start using the application!
---
### 4. Running the tests
This project has two different test types, Unit tests with Vitest and End-To-End tests using Cypress.
**Running Unit tests:**
- Navigate to the root folder of the project.
- Run the following command: npm run test:unit
**Running E2E tests:**
- Create a user with following credentials:
- Email: test@test.com
- Password: 123456789
- Make sure the backend is running
-
Run the following command: npm cypress run
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment