File tree 2 files changed +24
-27
lines changed
2 files changed +24
-27
lines changed Original file line number Diff line number Diff line change @@ -4,29 +4,25 @@ Source code of the tutorial [thecodingmachine.io/building-a-single-page-applicat
4
4
5
5
If you want to try out the project just follow these steps.
6
6
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-compose exec 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 `
Original file line number Diff line number Diff line change 67
67
},
68
68
},
69
69
methods: {
70
- performLogin () {
70
+ performLogin () {
71
71
let payload = {login: this .$data .login , password: this .$data .password },
72
72
redirect = this .$route .query .redirect ;
73
+
73
74
this .$store .dispatch (' security/login' , payload)
74
75
.then (() => {
75
76
if (! this .$store .getters [' security/hasError' ]) {
You can’t perform that action at this time.
0 commit comments