Symfony based API for the RCP COVID-19 web app.
- PHP 7.2.9 or higher;
- Appropriate PDO PHP extension enabled for your database;
- and the usual Symfony application requirements.
-
Use the package manager composer to install dependencies.
composer install
-
Update the
.env.local
file according to your environment. -
Run migrations
bin/console doctrine:migrations:migrate
-
(OPTIONAL) Get the Symfony CLI tool to run a local web server
symfony serve
-
Generate Certificates:
openssl genrsa -out config/jwt/private.pem -aes256 4096 openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem
-
Update .env file:
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem JWT_PASSPHRASE=covid19prevRCP (used in previous step)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.