This the backend API for the Scanner app.
It's built using PHP and Symfony Flex.
- Install PHP 7
- Install Composer
- Clone the source code
- Install the dependencies with
composer install --no-dev --optimize-autoloader
- Copy the
.env
file to a.env.local
file. - Edit the configuration in your
.env.local
file:
SetAPP_ENV
toprod
, changeAPP_SECRET
to a random string, input yourDATABASE_URL
and enter a customPUSH_KEY
. - Setup your web server.
See this guide for more details on how to setup Apache (easiest) or Nginx (fastest).
For more information about the deployment of a Symfony application look at this guide.
After a successful setup you should be able to open the plain URL
in your web browser and see the message Hey
.
To test your local changes, you have to install Composer.
Then download all required libraries by running composer install
.
Run a small integrated web server with the command php bin/console server:run
.
Now you can access the page on your PC.