A starter/demo application created with the Quasar CLI and UI Framework. It provides an introduction to web development and shows what MIDATA is and how to set up an application on the MIDATA test server. It also includes a small MIDATA application that showcases the OAuth 2.0 authentication process and implements basic functionality of the npm package JSonFhir.
This starter/demo application is aimed at students and interested parties who are planning to develop a web application with MIDATA. It should give a first insight into the subjects.
Node and npm have to be installed on your machine. The nodejs package includes both node and npm executables.
-
Go to the official Node.js website and download the installer. Also, be sure to have
git
available in your PATH,npm
might need it (You can find git here). -
You can install nodejs and npm with apt install, using the following commands.
sudo apt install nodejs
sudo apt install npm
- You can find more information about the installation on the official Node.js website and the official NPM website.
If the installation was successful, you should be able to run the following command.
node --version
v14.17.5
npm --version
7.24.2
If you need to update npm
, you can update using npm
.
npm install npm -g
To download the repo from github, use git clone https://github.com/i4mi/midata-quasar-starter-app.git
in your terminal.
Then change the directory with cd midata-quasar-starter-app
and install the dependencies.
npm i
Make sure that port 8080 isn't already in use. You need to be running the webapp on http://localhost:8080, otherwise the MIDATA demo won't work (due to OAuth2 redirect url mismatch).
npx quasar dev
npm run lint
npx quasar build