MORE-Platform / more-studymanager-frontend

The Vue Frontend for the Studymanager
https://more-health.at
Other
4 stars 2 forks source link
adaptive-interventions digitalbiomarkers digitalhealth ecologicalmomentaryassessment ehealth individualization jitai mhealth personalization proms psychology questionnaires research researchautomation sensordata smartphone study surveys telehealth

MORE - MMB: Management & Monitoring Backend (Frontend)

The frontend`s architecture is based upon an Architectural Decision Records (ADR).

Mainly, Vue 3, vite, TS, tailwindCSS and PrimeVue are used.

Things to do to start development

npm i
npm run dev
npm run generate:api

go to http://localhost:3000

To have a consistent code style and quality, we use Eslint in combination with prettier.

Selecting backend

You can modify which backend you want to connect to by modifying the package.json file. E.g. to point to a remote backend:

Intellij, Webstorm ESLint configuration

Set the EsLint settings for Webstorm in Preferences --> Languages & Frameworks --> Javascript --> Code Quality Tools --> ESLint

Currently not working because of Intellij IDEs..., use npm run lint:fix for now

Vue Environment

Scripts

Project setup

Vue 3 + Vite + Tailwind + TypeScript + PostCSS + Vitest

Includes ESlint and Prettier for formatation and i18n for multilanguage option.

Project includes

First-party plugins needed for Tailwind UI:

The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Testing Environment with Vitest

Vitest + Vue Test Utils + Vue Test Library + jsDom

Storybook

The Version of Storybook has 33 Vunerabilites and will be fixed in a future version of storybook. Since Storybook won't be deployed and is only used for dumb component development in dev process, they can be ignored for now. The API will replace storybook development in the future.

NPM Package update Notes 31.01.2023