bwHC Frontend is a web application developed using the nuxt.js framework. It is designed to run complementary with the bwHC Backend application.
- Define the directory for the installation
- Run the install script
foo@bar: ./install.sh /path/to/target/dir
...
- Follow the instructions
- 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.
- 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
...
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"
}
}
...
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
...
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
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.