- php 7.2.0 or higher
- docker
- composer
- Navigate to the project's root directory.
- Run
composer install
- In the
.env
-file, adjust DATABASE_URL to:
DATABASE_URL=mysql://root:[email protected]:3306/keshbek
- Navigate to the project's root directory.
- run
mkdir config/jwt
. - Run
openssl genrsa -out config/jwt/private.pem -aes256 4096
. Here, you will be asked for a pass phrase two times. Both times, copy and paste the value of theJWT_PASSPHRASE
-setting in your.env
-file (f.ex. 64e0b28d693886fc0c3ce975d6c2fb26). - Run
openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem
. Here you also need to enter theJWT_PASSPHRASE
-setting when asked.
- Navigate to the project's root directory.
- Run
docker-compose up -d
to start the database in a docker container. - Open
localhost:8001
in your browser to open phpMyAdmin and create the databasekeshbek
. - Back in the terminal, run
php bin/console doctrine:migrations:migrate
and entery
when asked. - Run
php -S 127.0.0.1:8000 -t public
to run the symfony server - Now you can open the symfony projekt on
localhost:8000
For development you can create an user with postman (or other tools).
POST Request to http://localhost:8000/register with form-data
_username
_email
_password
_firstname
_lastname
When someone implements changes to database structure (f.ex. to the 'transaction'-table), the tables should be emptied before running new migrations to prevent errors, which could eventuelly lead to recreating the database.