Sem descrição

Olivier Massot e8f07dee8c upgrade symfony to 7.2 há 10 meses atrás
api e8f07dee8c upgrade symfony to 7.2 há 10 meses atrás
app a6fdbbb43b init há 3 anos atrás
docker 09625b1ab0 switch to mysql, add db configuration and basic entities há 10 meses atrás
.env.skeleton a6fdbbb43b init há 3 anos atrás
.gitignore a6fdbbb43b init há 3 anos atrás
docker-compose.yml 09625b1ab0 switch to mysql, add db configuration and basic entities há 10 meses atrás
readme.md 09625b1ab0 switch to mysql, add db configuration and basic entities há 10 meses atrás

readme.md

Model: Symfony+Nuxt+Caddy

Install

Add those lines to your hosts file:

127.0.0.1 local.api.<domain>.fr
127.0.0.1 local.app.<domain>.fr

Run from the project directory:

docker-compose build

Copy the .env file, and edit it if needed:

cp .env.skeleton .env

Edit the following files to update the directives whith you domain name

  • docker/api/vhost.conf
  • docker/caddy/Caddyfile
  • api/.env

Run

Run from the project directory:

docker-compose up

Install the API server :

docker exec -it api bash
composer install --with-all-dependencies
bin/console doctrine:database:create
bin/console doctrine:schema:update --force

Start the nuxt server:

docker exec -it app bash
yarn install
yarn dev

Add Fixtures

INSERT INTO `snc_demo`.`author` (`name`)
VALUES ('Georges Brassens');

INSERT INTO `snc_demo`.`song` (`title`, `author_id`)
VALUES
    ('Heureux qui comme Ulysse', 1),
    ('Les passantes', 1),
    ("Dans l'eau de la claire fontaine", 1);