Skip to content

marashlyansuren/hexagonal-php-application

Repository files navigation

hexagonal-php-application

How do I get set up?

Local

Up docker compose services:

From root directory, run following command

make up

PHP application Dependencies:

Install dependencies

make composer-install

Database configuration:

Next just run migrate to apply all changes to Database

make migrate

If you made any change domain schema, run diff and again run migrate

make diff

Generate the SSL keys:

mkdir -p config/jwt
openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout

After this make sure that you have updated JWT_PASSPHRASE from .env (.env.local if exists) value by the new password that you have used for secret generation

Enjoy!

Setup Xdebug in phpstorm

Link to the document

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages