en:resources:app
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
en:resources:app [2023/07/13 13:42] – created initial skeleton s-schroeck | en:resources:app [2023/07/14 11:06] – First Draft of page without Git links s-schroeck | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== The Inform@Risk Smartphone App ===== | ===== The Inform@Risk Smartphone App ===== | ||
- | insert short description | + | The smartphone app of the project Inform@Risk aims to both distribute information about a variety of topics concerning current risk status, sensor values |
+ | |||
+ | This page contains instructions for setting up development environments on either Debian based Linux distributions or MacOS and only contains instructions specific to the project, i.e. the correct version of Android to compile against must be present in the operating system. Packages were installed via homebrew on Mac. | ||
+ | |||
+ | A more detailed explanation of individual software | ||
+ | |||
+ | Both components of the app stack are licensed under the [[https:// | ||
===== Smartphone App ===== | ===== Smartphone App ===== | ||
Line 9: | Line 15: | ||
link to source here | link to source here | ||
- | installation | + | Install global packages: |
+ | < | ||
+ | < | ||
+ | < | ||
+ | |||
+ | It might be necessary to manually set JAVA_HOME | ||
+ | < | ||
+ | < | ||
+ | |||
+ | In project directory: | ||
+ | < | ||
+ | |||
+ | |||
+ | Compiling and launching application: | ||
+ | < | ||
+ | |||
+ | and then __either__ of the 2 following | ||
+ | < | ||
+ | < | ||
===== Webserver ===== | ===== Webserver ===== | ||
Line 15: | Line 40: | ||
link to source code here | link to source code here | ||
- | installation and setup instructions | + | Necessary global packages (replace PHP version with the correct one for your desired Laravel Version) |
+ | |||
+ | < | ||
+ | sudo apt-get install postgresql-12 | ||
+ | sudo apt-get install apache2 libapache2-mod-php7.4 php7.4 php7.4-xml php7.4-gd php7.4-opcache php7.4-mbstring php7.4-pgsql | ||
+ | sudo apt-get install postgis #should automatically install ' | ||
+ | sudo apt-get install imagemagick | ||
+ | sudo apt-get install composer | ||
+ | </ | ||
+ | |||
+ | Database | ||
+ | < | ||
+ | |||
+ | CREATE USER informatrisk_user WITH PASSWORD ' | ||
+ | CREATE DATABASE informatrisk OWNER informatrisk_user; | ||
+ | \c informatrisk | ||
+ | CREATE EXTENSION postgis;</ | ||
+ | |||
+ | Web server setup and example config: | ||
+ | < | ||
+ | sudo openssl req -x509 -nodes -days 700 -newkey rsa:2048 -keyout / | ||
+ | / | ||
+ | </ | ||
+ | < | ||
+ | NameVirtualHost *:8070 | ||
+ | Listen 8070 | ||
+ | < | ||
+ | Serveradmin admin@admin.de | ||
+ | DocumentRoot / | ||
+ | ServerName 192.168.83.198/ | ||
+ | ServerAlias www.laravel.dev | ||
+ | |||
+ | < | ||
+ | Options Indexes FollowSymLinks MultiViews | ||
+ | AllowOverride All | ||
+ | Order allow, | ||
+ | allow from all | ||
+ | Require all granted | ||
+ | </ | ||
+ | |||
+ | SSLEngine on | ||
+ | SSLCertificateFile / | ||
+ | SSlCertificateKeyFile / | ||
+ | |||
+ | LogLevel debug | ||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | </ | ||
+ | </ | ||
+ | UBUNTU | ||
+ | < | ||
+ | sudo a2enmod ssl | ||
+ | sudo a2enmod header | ||
+ | sudo a2enmod rewrite | ||
+ | </ | ||
+ | MAC | ||
+ | You need to manuall activate the specific packages installed in step 1 by editing httpd.conf | ||
+ | Also follow the instructions | ||
+ | |||
+ | Web project setup in project directory: | ||
+ | < | ||
+ | < | ||
+ | |||
+ | Create the following folders if they do not exist yet: | ||
+ | </ | ||
+ | create public/ | ||
+ | create public/ | ||
+ | copy public/ | ||
+ | sudo chmod 777 public/ | ||
+ | < | ||
+ | |||
+ | < | ||
+ | php artisan migrate: | ||
+ | php artisan db:seed | ||
+ | php artisan passport: | ||
+ | php artisan key: | ||
+ | </ | ||
+ | Create a file named ' | ||
+ | Copy the Firebase credential file into config folder and add Firebase config to .env | ||
+ | < | ||
+ | FIREBASE_CREDENTIALS=config/ | ||
+ | FIREBASE_DATABASE_URL=https:// | ||
+ | </ | ||
===== Sensor Communication API ===== | ===== Sensor Communication API ===== | ||
- | insert download link for html based communication api | + | HTML based interactive API {{Informatrisk_API.zip|Download}} |
en/resources/app.txt · Last modified: 2023/07/25 11:59 by s-schroeck