|
16 | 16 | <br/><br/> |
17 | 17 | </p> |
18 | 18 |
|
19 | | -# Install with Docker Compose |
| 19 | +# Installation |
20 | 20 |
|
21 | | -### Technical requirements |
22 | | -- [docker-compose](https://docs.docker.com/compose/install/) |
23 | | - |
24 | | -### Installation |
| 21 | +### Requirements |
| 22 | +- [docker compose](https://docs.docker.com/compose/install/) |
25 | 23 |
|
26 | 24 | ```bash |
27 | 25 | # Clone repository |
28 | 26 | git clone [email protected]:acantepie/umbrella-admin-demo.git umbrella_demo |
29 | 27 | cd umbrella_demo |
30 | 28 |
|
31 | | -# Build / Up Docker |
32 | | -docker-compose up -d |
33 | | -``` |
| 29 | +# up docker |
| 30 | +docker compose up -d |
34 | 31 |
|
35 | | -Open a docker shell : |
36 | | -```bash |
37 | | -docker-compose exec symfony bash |
38 | | -``` |
| 32 | +# install php dependency |
| 33 | +docker compose exec web composer install |
39 | 34 |
|
40 | | -All commands below must be executed on *Docker Shell* : |
41 | | -```bash |
42 | | -# Install / build dependencies |
43 | | -composer install |
44 | | -yarn install |
45 | | -yarn build |
46 | | -yarn copy-ckeditor |
| 35 | +# create database |
| 36 | +docker compose exec web bin/console doctrine:database:create |
| 37 | +docker compose exec web bin/console doctrine:schema:update --force |
47 | 38 |
|
48 | | -# Prepare database |
49 | | -php bin/console doctrine:schema:create |
50 | | -php bin/console doctrine:fixtures:load --no-interaction |
| 39 | +# load fixtures |
| 40 | +docker compose exec web bin/console doctrine:load:fixtures -n |
51 | 41 | ``` |
52 | 42 |
|
53 | | -App url : http://127.0.0.1:8080/ |
54 | | - |
55 | | -# Install locally |
| 43 | +App url : http://localhost |
56 | 44 |
|
57 | | -### Technical requirements |
58 | | -- PHP 8.2 or higher |
59 | | -- PHP extensions: `json`, `mbstring`, `xml` |
60 | | -- [composer](https://getcomposer.org/) |
61 | | -- [Symfony requirements](https://symfony.com/doc/current/setup.html#technical-requirements) |
62 | | -- [Node.js](https://nodejs.org/en/download/) |
63 | | -- [yarn](https://yarnpkg.com/getting-started/install) |
| 45 | +# Build assets |
64 | 46 |
|
65 | | -### Installation |
| 47 | +### Requirements |
| 48 | +- node 20 or higher |
| 49 | +- yarn |
66 | 50 |
|
67 | 51 | ```bash |
68 | | -# Clone repository |
69 | | -git clone [email protected]:acantepie/umbrella-admin-demo.git umbrella_demo |
70 | | -cd umbrella-demo |
71 | | -``` |
72 | | - |
73 | | -You must edit the `DATABASE_URL` env var in the `.env` file to use your database credentials. |
74 | | - |
75 | | -```bash |
76 | | -# Install / build dependencies |
77 | | -composer install |
| 52 | +# install assets |
78 | 53 | yarn install |
79 | | -yarn build |
80 | | -yarn copy-ckeditor |
81 | 54 |
|
82 | | -# Prepare database |
83 | | -php bin/console doctrine:database:create |
84 | | -php bin/console doctrine:schema:create |
85 | | -php bin/console doctrine:fixtures:load --no-interaction |
86 | | -``` |
| 55 | +# build assets in prod mode |
| 56 | +yarn build |
87 | 57 |
|
88 | | -Serve: |
89 | | -```bash |
90 | | -php -S localhost:8000 -t public/ |
91 | | -``` |
92 | | -App url : http://127.0.0.1:8000/ |
| 58 | +# install ckeditor |
| 59 | +cp -R node_modules/ckeditor4 public |
| 60 | +# or yarn copy-ckeditor |
| 61 | +``` |
0 commit comments