vives-dust / frontend-old

DUST Public Frontend
https://dust.devbitapp.be
0 stars 0 forks source link

Ontwikkelen van een web-applicatie voor het DUST sensor platform.

The front-end of the dust project. This project was made to give an overview and show all dust devices that are planted in the ground. This front-end also gives a summary of the sensors that are connected to a device. And can display all values for each sensor if wished.

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension 1) Run Extensions: Show Built-in Extensions from VSCode's command palette 2) Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

Staging server

The staging server for this project can be found here.

Netlify Status

Run this project

How to run is described here, don't forget to acually use this front-end that the back-end coming with this project is required and needs to be running on the host machine.

Project Setup

Docker-compose

Docker and docker-compose files are available in the directory. Just execute the following for the development version and the front-end will be online on port 8090

docker-compose -f docker-compose.dev.yaml up --build

For the distribution

docker-compose up

npm

To build the project using npm first execute the following:

npm install

then for development:

npm run serve

To build the project:

npm run build

Collor pallet

The Color pallet was chosen with: Adobe color-wheel

Libraries

Vue3

Using chart.js for the sensor charts.

Helper for charts.js

Tests in vue using jest with typescript

unit-tests-in-jest

Made by

Felix Falk as his bachelor thesis.