Skip to content

Raspberry-Pi 3 version for offline check-in and label printing

License

Notifications You must be signed in to change notification settings

wesleypearson/alf.io-PI

 
 

Repository files navigation

alf.io-PI

Build Status

Raspberry-Pi 3 version for offline check-in

Development

Requirements

  • Java 8 SDK (min. 1.8.0_112)
  • Node LTS

Install latest npm and angular-cli

npm install npm -g
npm install @angular/cli -g

Configuration

Create an application.properties file

cp src/main/resources/application.properties.sample src/main/resources/application.properties

and edit the following lines properly adding host, user and credentials for testing

master.url=https://url-of-master
master.username=pi-agent
master.password=password

Build and start server

To build launch:

  • on OSX or Linux: ./gradlew build
  • on Windows: gradlew.bat build

To start backend server launch:

  • on OSX or Linux: ./gradlew -Dspring.profiles.active=dev :backend:bootRun
  • on Windows: gradlew.bat -Dspring.profiles.active=dev :backend:bootRun

Then point your browser to http://localhost:8080/ and login with credentials:

  • user: admin
  • password: abcd

Start frontend application:

cd frontend
npm install # only once
npm start

Then point your browser to http://localhost:4200/

Expected api from alf.io server

  • GET /admin/api/events -> List of RemoteEvent
  • GET /admin/api/check-in/$eventName/label-layout
  • GET /admin/api/check-in/$eventName/offline-identifiers?changedSince=EPOCH
  • POST /admin/api/check-in/$eventName/offline
  • POST /admin/api/check-in/event/$eventKey/ticket/$uuid?offlineUser=$username

About

Raspberry-Pi 3 version for offline check-in and label printing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 44.3%
  • Kotlin 33.7%
  • TypeScript 12.9%
  • HTML 4.9%
  • CSS 3.0%
  • Shell 1.2%