Go to file
2023-04-19 23:38:43 +02:00
.vscode initial commit for rvr-nextgen 2023-04-08 00:45:40 +02:00
cache initial commit for rvr-nextgen 2023-04-08 00:45:40 +02:00
database add db table for audit log 2023-04-18 23:37:55 +02:00
docker initial commit for rvr-nextgen 2023-04-08 00:45:40 +02:00
mail initial commit for rvr-nextgen 2023-04-08 00:45:40 +02:00
public adapt to soko-web 0.4 2023-04-16 20:54:29 +02:00
scripts replace constants in app.php instead of main.php 2023-04-08 03:16:28 +02:00
src add class AuditLogger 2023-04-18 23:37:55 +02:00
tests add empty tests folder 2023-04-08 01:58:55 +02:00
views add view for error 500 2023-04-18 23:26:42 +02:00
.env.example RVRNEXT-2 add new environment variables for jwt rsa keys 2023-04-08 19:20:47 +02:00
.gitattributes initial commit for rvr-nextgen 2023-04-08 00:45:40 +02:00
.gitignore RVRNEXT-2 ignore *.pem files 2023-04-08 19:20:47 +02:00
app.php add auditLogger instance to app container 2023-04-18 23:37:55 +02:00
composer.json update soko-web version 2023-04-19 23:38:43 +02:00
composer.lock update soko-web version 2023-04-19 23:38:43 +02:00
docker-compose.yml add adminer to docker compose stack 2023-04-16 14:21:19 +02:00
Jenkinsfile initial commit for rvr-nextgen 2023-04-08 00:45:40 +02:00
LICENSE.md initial commit for rvr-nextgen 2023-04-08 00:45:40 +02:00
phpstan.neon initial commit for rvr-nextgen 2023-04-08 00:45:40 +02:00
README.md initial commit for rvr-nextgen 2023-04-08 00:45:40 +02:00
rvr restrict oauth access 2023-04-12 00:10:14 +02:00
USED_SOFTWARE initial commit for rvr-nextgen 2023-04-08 00:45:40 +02:00
web.php add error view 500 to app config 2023-04-18 23:29:04 +02:00

RVR

Build Status

This is the RVR Application project. This is a game about guessing where you are based on a street view panorama - inspired by existing applications.

Installation

Clone the Git repository

The first step is obviously cloning the repository to your machine:

git clone https://git.esoko.eu/esoko/rvr-nextgen.git

All the commands listed here should be executed from the repository root.

The easiest way to build up a fully working application with web server and database is to use Docker Compose with the included docker-compose.yml.

All you have to do is executing the following command:

docker compose up -d

Attach shell to the container of rvr-nextgen-app:

docker exec -it rvr-nextgen-app bash

All of the following commands should be executed there.

Manual setup (alternative)

If you don't use the Docker stack you need to install your environment manually. Check docker-compose.yml and docker/Dockerfile to see the system requirements.

Initialize project

This command installes all of the Composer requirements and creates a copy of the example .env file.

composer create-project

Set environment variables

The .env file contains several environment variables that are needed by the application to work properly. These should be configured for your environment.

One very important variable is DEV. This indicates that the application operates in development (staging) and not in production mode.

Hint: If you install the application in the Docker stack for development (staging) environment, only the variables for external dependencies (API keys, map attribution, etc.) should be adapted. All other variables (for DB connection, static root, mailing, multiplayer, etc.) are fine with the default value.

(Production only) Create cron job

To maintain database (delete inactive users, old sessions etc.), the command db:maintain should be regularly executed. It is recommended to create a cron job that runs every hour:

0 * * * * /path/to/your/installation/rvr db:maintain >>/var/log/cron-rvr.log 2>&1

Finalize installation

After you followed the above steps, execute the following command:

scripts/install.sh

And you are done! The application is ready to use and develop. In development mode an administrative user is also created by the installation script, email is rvr@rvr.dev, password is 123456. In production mode you should create the first administrative user with the following command:

./rvr user:add EMAIL PASSWORD admin

If you installed it in the Docker stack, you can reach it on http://localhost. The mails that are sent by the application can be found on http://localhost:8080/. If needed, the database server can be directly reached on localhost:3306.


License: GNU AGPL 3.0. Full license text can be found in file LICENSE.