Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0f4646f

Browse files
author
Julien Neuhart
committed
improving README
1 parentdd70915 commit0f4646f

File tree

2 files changed

+24
-27
lines changed

2 files changed

+24
-27
lines changed

‎README.md‎

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,25 @@ Source code of the tutorial [thecodingmachine.io/building-a-single-page-applicat
44

55
If 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`

‎app/assets/vue/views/Login.vue‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@
6767
},
6868
},
6969
methods: {
70-
performLogin() {
70+
performLogin() {
7171
let payload= {login:this.$data.login, password:this.$data.password},
7272
redirect=this.$route.query.redirect;
73+
7374
this.$store.dispatch('security/login', payload)
7475
.then(()=> {
7576
if (!this.$store.getters['security/hasError']) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp