Sen descrición

Olivier Massot 09625b1ab0 switch to mysql, add db configuration and basic entities hai 11 meses
api 09625b1ab0 switch to mysql, add db configuration and basic entities hai 11 meses
app a6fdbbb43b init %!s(int64=3) %!d(string=hai) anos
docker 09625b1ab0 switch to mysql, add db configuration and basic entities hai 11 meses
.env.skeleton a6fdbbb43b init %!s(int64=3) %!d(string=hai) anos
.gitignore a6fdbbb43b init %!s(int64=3) %!d(string=hai) anos
docker-compose.yml 09625b1ab0 switch to mysql, add db configuration and basic entities hai 11 meses
readme.md 09625b1ab0 switch to mysql, add db configuration and basic entities hai 11 meses

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);