Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alfio-event/alf.io-pi
Raspberry-Pi 3 version for offline check-in and label printing
https://github.com/alfio-event/alf.io-pi
Last synced: about 2 months ago
JSON representation
Raspberry-Pi 3 version for offline check-in and label printing
- Host: GitHub
- URL: https://github.com/alfio-event/alf.io-pi
- Owner: alfio-event
- License: gpl-3.0
- Created: 2016-11-21T16:52:42.000Z (about 8 years ago)
- Default Branch: 0.9-maintenance
- Last Pushed: 2024-05-03T14:46:31.000Z (8 months ago)
- Last Synced: 2024-05-21T04:54:00.850Z (7 months ago)
- Language: JavaScript
- Homepage: https://alf.io
- Size: 4.22 MB
- Stars: 14
- Watchers: 11
- Forks: 8
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# alf.io-PI
[![Build Status](https://travis-ci.org/alfio-event/alf.io-PI.svg?branch=master)](https://travis-ci.org/alfio-event/alf.io-PI)
Raspberry-Pi 3 version for offline check-in
## Development
### Requirements
* Java 8 SDK (min. 1.8.0_112)
* Node LTSInstall latest npm and angular-cli
```bash
npm install npm -g
npm install @angular/cli -g
```### Configuration
Create an *application.properties* file
```bash
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: abcdStart frontend application:
```bash
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