Spacelocust / ApiPlatform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install project :

make install

Show all commands

make # or
make help

Useful commands :

> make stop # Stop all docker images
> make start # Start all docker images
> make restart # Restart all docker images
> make migration # Create migration with changes
> make migrate # Apply new migration 
> make composer # Composer install in docker container

> make docker-disable # Disable docker for php container 
> make docker-enable # Enable docker for php container
...

If you disable docker for php container, you should create a .env.local file with

MAILER_DSN=smtp://localhost:1025
DATABASE_URL="postgresql://symfony:password@localhost:5432/postgres?serverVersion=15&charset=utf8"

If make is not enabled :

# Si make n'est pas installé 
> docker compose build
> docker compose up -d
> docker compose exec -it php sh

# Le terminal du container s'ouvre :
> composer install
> bin/console lexik:jwt:generate-keypair -n --overwrite
> bin/console doctrine:database:create --if-not-exists
> bin/console doctrine:migrations:migrate -n
> bin/console hautelook:fixture:load -n

About


Languages

Language:Makefile 67.6%Language:PHP 19.4%Language:Dockerfile 13.0%