A web-based application for management and use of a university library. It uses the CoBAUI framework (https://www.npmjs.com/package/cobaui) to implement an adaptive user interface.
This project was generated with Angular CLI version 7.3.3.
NodeJS is needed as a development environment. See https://nodejs.org/en/download/package-manager/ for installation instructions. For Ubuntu:
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs
After NodeJS is set up, follow these instructions:
- Clone this repository
git clone https://github.com/Ferhat67/LibSoft.git
- Enter LibSoft directory and run
npm install
to install dependencies - Run
npm start
to run application - Access
https://localhost:4200/
in your browser to use application
Alternatively, use npm build
to generate application files (html,js,css) for
productive use on a web server.
To inspect all adaptation features of the application, please use Google Chrome Mobile browser on a smartphone device. For enabling access to the Ambient Light Sensor, follow the steps below:
- Visit
chrome://flags
URL in Google Chrome Mobile - Search for the flag
Generic Sensor Extra Classes
and set it toEnabled
;
This enables access to the Ambient Light Sensor for the browser.
Once started, the application is accessible under the URL https://localhost:4200/
.
Following adaptive behavior is observable:
-
Navigation menu position is adapted based on user's handedness to allow faster reachability. This feature uses the device's Gyroscope Sensor.
-
A "dark theme" is activated in low ambient light conditions to allow better readability and reduce eye strain. This feature needs access to the device's Ambient Light Sensor and requires the application to use https.
-
A compact navigation menu is displayed to more experienced users, while new users are shown a more detailed menu. The users experience is measured by the usage time in minutes. Users with a usage time below 5 minutes are considered new.
There are two user roles in LibSoft: Students and Staff Members.
- Student: Max Mustermann
- Username: mmuster
- Password: student123
- Staff Member: John Doe
- Username: johndoe
- Password: staff123