Skip to content

noi-techpark/it.bz.opendatahub.epaper.webapp

Repository files navigation

edisplay-frontend

Frontend to manage edisplay-backend. Has all CRUD operations implemented to manage Displays, Locations, Connections and Templates. Fully created with Vue.js

REUSE Compliance CI/CD

Table of Contents

Project setup for development

Clone this repository

git clone https://github.com/noi-techpark/e-ink-displays-webapp

Get all dependencies

yarn install

Set up the Backend if not already done. Follow README to setup the Backend.

And start the Frontend. It will run on localhost

yarn serve

How to send and image to a display

  1. Set up the API by following the README there
  2. Set up a Physical display by following the README of the backend
  3. Set the IP-Address of the machine where you run the API in .env file in root directory. You can copy the defaults from .env.example. Note: If you are using Vue cli 3, only variables that start with VUE_APP_ will be loaded.
VUE_APP_API_URL=http://localhost:8081
  1. Start the webapp
yarn serve
  1. Create an image with the size 640*384 that you want to send to the display
  2. Open a browser to open the webapp on localhost
  3. Login with the credentials
user:user
password:pass
  1. Click on Create
  2. Create a template by giving it a name and uploading the image you created
  3. Create a display by giving it a name and choosing the template you created before
  4. Create a location by giving it a name
  5. Create a connection between the display and the location and in the field network address put the IP-Address of the physical displat you created in step 2 like (it's important to put the protocol and the 80 port)
http://192.168.1.4:80
  1. Click on Dashboard where you should see your created display
  2. Click on send to send the image to the display or on clear to clear the screen

Compiles and minifies for production

yarn build

Licenses

The E-Display Backend is free software. It is licensed under GNU GENERAL PUBLIC LICENSE Version 3 from 29 June 2007. More info can be found here

Third party components

No third party components used for now

REUSE

This project is REUSE compliant, more information about the usage of REUSE in NOI Techpark repositories can be found here.

Since the CI for this project checks for REUSE compliance you might find it useful to use a pre-commit hook checking for REUSE compliance locally. The pre-commit-config file in the repository root is already configured to check for REUSE compliance with help of the pre-commit tool.

Install the tool by running:

pip install pre-commit

Then install the pre-commit hook via the config file by running:

pre-commit install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published