GithubHelp home page GithubHelp logo

kohlbacherlab / bwhc-frontend Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 2.0 73.34 MB

Portal UI Prototype (Frontend Application) of bwHealthCloud

License: MIT License

ui ux frontend portal prototype bwhc bwhealthcloud

bwhc-frontend's Introduction

bwHC Frontend

bwHC Frontend is a web application developed using the nuxt.js framework. It is designed to run complementary with the bwHC Backend application.


1. Installation with Install script

  • Define the directory for the installation
  • Run the install script
foo@bar: ./install.sh /path/to/target/dir
...
  • Follow the instructions

2. Manual Installation

2.1. Pre-requisites

  • node.js (version > 10.23.0)
  • npm (version > 6.14.8)
  • active internet connection for npm to access and download the necessary packages

In case your Linux distribution's repositories do not contain a high-enough version of Node.js, instructions for manual installation can be found here.


2.2. Installation

  • Unzip application package
  • Change into unpacked directory
foo@bar: unzip bwhc-frontend.zip -d bwhc-frontend
...
foo@bar: cd bwhc-frontend

Next NPM must set up the folder "node_modules" containing all JavaScript packages the application depends on:

foo@bar: npm install
...

2.3. Server configuration

By default, the Node.js server running the frontend will run on localhost and port 3000. This can be changed in package.json:

...
"config": {
    "nuxt": {
        "host": "HOST",
        "port": "PORT"
        }
    }
...

2.4. Backend Access Set-up / Web Page generation

As explained above, the data displayed in the web portal is fetched directly from the backend by the browser. This connection must therefore be configured so that the web pages can be generated accordingly from templates. In nuxt.config.js adapt the PROTOCOL, HOSTNAME, and PORT of the backend server:

...
env: {
    baseUrl: process.env.BASE_URL || 'PROTOCOL://HOSTNAME',
    port: process.env.port || ':PORT'
}
...

Then have NPM generate the application's pages with the configured connectivity settings.

foo@bar: npm run generate
...

2.5. Operation

Starting the frontend service:

foo@bar: npm start &

Stopping the frontend service (WORK IN PROGRESS): Look for the node process ID and kill it manually.

Initial Login ⚠️ Login credentials into the freshly installed system, without any users: admin/admin This allows log-in as a temp-user to create a first real user account, and becomes effectless once a user has been created in the system. The first created user MUST thus be given "Admin" rights to be able to create more user accounts.

License Information

MIT License

Copyright (c) 2022 University Hospital Tübingen, Aydın Can Polatkan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Nuxt.js, Vuetify and Font Awesome are released under the MIT-License.

bwhc-frontend's People

Contributors

aydincan avatar

Stargazers

Pascal Escher avatar

Watchers

James Cloos avatar Oliver Kohlbacher avatar  avatar Paul-Christian Volkmer avatar

Forkers

ccc-mf ukeiam

bwhc-frontend's Issues

Which version of Node.js should/could be used?

In Readme file you specify that Node.js version > 10.23.0 and NPM version > 6.14.8 should be used.

Since projects package-lock.json is in file-format version 2, I guess at least Node.js 15 is in use (compare: https://nodejs.org/en/download/releases) since file-format version 2 is in use since NPM 7 (compare: https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json#file-format)

  • Node.js 10 can generate nuxt application, but NPM 6 (shipped with Node.js 10) might have trouble with package-lock.json and is quite outdated
  • Node.js 16 (latest stable release with NPM 7) supports package-lock.json with file-format version 2 and generates nuxt application but is in maintenance with EOL September 2023.
  • Node.js >= 18 causes errors generating Nuxt application.

So, which version of Node.js should/could be used? Is it Node.js 16? Please update Readme file with proper information.

Query Form Loading

Hi Aydin,

I just pulled and tried building the current frontend project to run it locally.
After login, there is a problem when trying to access the query form via the icon in the top bar: This doesn't open the Query Form but the "Patientendirektzugriff" page, even though a check of calls with "web developer tools" shows that the various catalogs which would be bound to the form field etc are fetched.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.