@@ -4,29 +4,25 @@ Source code of the tutorial [thecodingmachine.io/building-a-single-page-applicat
44
55If you want to try out the project just follow these steps.
66
7- ###Start containers / project
8- ` docker-compose up `
9-
10- ###Enter in your app container
11- ` docker-compose exec app /bin/bash `
12-
13- ###Install vendor
14- ` composer install `
15-
16- ###Install node modules
17- ` npm install `
18-
19- ###Generate manifest
20- ` yarn dev `
21-
22- ###Generate database
23- ` php bin/console doctrine:migration:migrate `
24-
25- ###Load fixtures
26- ` php bin/console doctrine:fixtures:load `
27-
28- ###Access
29- App: app.localhost (login: foo / pass: bar)
30-
31- phpMyAdmin: phpadmin.app.localhost
32-
7+ ``` bash
8+ $ docker-compose up -d
9+ $ docker-composeexec app bash# executing bash inside app service
10+ $ composer install
11+ $ yarn install
12+ $ yarn dev
13+ $ php bin/console doctrine:migration:migrate
14+ $ php bin/console doctrine:fixtures:load
15+ ```
16+
17+ On MacOS, also update your` /etc/hosts ` file with:
18+
19+ ```
20+ 127.0.0.1 app.localhost
21+ 127.0.0.1 phpmyadmin.app.localhost
22+ ```
23+
24+ You may now go to[ http://app.localhost/ ] ( http://app.localhost/ ) and
25+ login using the following credentials:
26+
27+ Login:` foo `
28+ Password:` bar `