Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gssi/apriporta
https://github.com/gssi/apriporta
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/gssi/apriporta
- Owner: gssi
- Created: 2024-08-10T09:53:18.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T13:51:10.000Z (6 months ago)
- Last Synced: 2024-08-15T10:42:10.890Z (6 months ago)
- Language: TypeScript
- Size: 90.3 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
sudo apt install default-jdk
sudo apt install maven
sudo apt install mariadb-serverrefer to this guide: https://www.digitalocean.com/community/tutorials/how-to-install-mariadb-on-ubuntu-20-04
We need 2 services running on the rpi.
# Doorcontroller service
Compose one as /etc/systemd/system/doorcontroller.service
[Unit]
Description=Run the best script ever[Service]
Type=forking
WorkingDirectory=/home/administrator/apriporta/doorcontroller
ExecStart=tmux new-session -d -s "myTempSession" sudo mvn exec:java[Install]
WantedBy=multi-user.targetthen enable it: sudo systemctl enable doorcontroller.service
# Shell script for executing webserver: /home/administrator/myservices.sh
#!/bin/bash
cd /home/administrator/apriporta/acs
sudo ./mvnw
# ACS service
create service at: /lib/systemd/system/acs.service[Unit]
Description=My Sample Service
After=multi-user.target[Service]
Type=idle
ExecStart=sh /home/administrator/myservices.sh[Install]
WantedBy=multi-user.targetthen enable it: sudo systemctl enable acs.service
create database ACS from commandline.
import structure and data with script: https://github.com/gssi/apriporta/blob/main/acs/acs.sql
change root password and jdbc connector URL.
# reboot the device
The ACS web system is accessible at HTTP://ip-addr:8080