Kaynağa Gözat

Updates after practicing

Matt Raible 7 yıl önce
ebeveyn
işleme
9b69287222
1 değiştirilmiş dosya ile 3 ekleme ve 14 silme
  1. 3
    14
      DEMO.md

+ 3
- 14
DEMO.md Dosyayı Görüntüle

7
 dependencies==data-jpa,data-rest,h2,web,devtools -d
7
 dependencies==data-jpa,data-rest,h2,web,devtools -d
8
 ```
8
 ```
9
 
9
 
10
-1. Run the application with `./mvnw spring-boot:run`. Create a `Beer` entity class in `src/main/java/com/example/beer`. → **boot-entity**
10
+1. Open project in IntelliJ IDEA. Create a `Beer` entity class in `src/main/java/com/example/beer`. → **boot-entity**
11
 2. Create a JPA Repository to manage the `Beer` entity (tip: `@RepositoryRestResource`). → **boot-repository**
11
 2. Create a JPA Repository to manage the `Beer` entity (tip: `@RepositoryRestResource`). → **boot-repository**
12
 3. Create a CommandLineRunner to populate the database. → **boot-command**
12
 3. Create a CommandLineRunner to populate the database. → **boot-command**
13
 4. Add default data in the `run()` method. → **boot-add**
13
 4. Add default data in the `run()` method. → **boot-add**
37
 ## Build a Good Beers UI
37
 ## Build a Good Beers UI
38
 
38
 
39
 1. Run `ionic generate page beer`. 
39
 1. Run `ionic generate page beer`. 
40
-2. Add `BeerPagePage` to the `imports` list in `app.module.ts`.
40
+2. Add `BeerPageModule` to the `imports` list in `app.module.ts`.
41
 3. Create `src/providers/beer-service.ts`. → **io-beer-service**
41
 3. Create `src/providers/beer-service.ts`. → **io-beer-service**
42
 5. Modify `beer.html` to show the list of beers. → **io-beer-list**
42
 5. Modify `beer.html` to show the list of beers. → **io-beer-list**
43
 6. Update `beer.ts` to import `BeerService` and add as a provider. Call the `getGoodBeers()` method in the `ionViewDidLoad()` lifecycle method. → **io-get-good-beers**
43
 6. Update `beer.ts` to import `BeerService` and add as a provider. Call the `getGoodBeers()` method in the `ionViewDidLoad()` lifecycle method. → **io-get-good-beers**
75
 
75
 
76
 Create `beer-modal.html` as a template for this page. → **io-beer-modal-html**
76
 Create `beer-modal.html` as a template for this page. → **io-beer-modal-html**
77
 
77
 
78
-Add `BeerModalPage` to the `declarations` and `entryComponent` lists in `beer.module.ts`.
78
+Import `BeerModalPage` in `beer.ts` and add it to the `declarations` and `entryComponent` lists in `beer.module.ts`.
79
 
79
 
80
 You'll also need to modify `beer-service.ts` to have `get()` and `save()` methods. → **io-get-save**
80
 You'll also need to modify `beer-service.ts` to have `get()` and `save()` methods. → **io-get-save**
81
 
81
 
139
 To deploy to the Android emulator, run `ionic cordova emulate android`.
139
 To deploy to the Android emulator, run `ionic cordova emulate android`.
140
 
140
 
141
 ```
141
 ```
142
-Error: No emulator images (avds) found.
143
-1. Download desired System Image by running: /Users/mraible/Library/Android/sdk/tools/android sdk
144
-2. Create an AVD by running: /Users/mraible/Library/Android/sdk/tools/android avd
145
-HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver
146
-```
147
-
148
-Run the first suggestion and download your desired system image. Then  run the second command and created an AVD with the following settings:
149
-
150
-```
151
 AVD Name: TestPhone
142
 AVD Name: TestPhone
152
 Device: Nexus 5
143
 Device: Nexus 5
153
 Target: Android 7.1.1
144
 Target: Android 7.1.1
154
 CPU/ABI: Google APIs Intel Axom (x86_64)
145
 CPU/ABI: Google APIs Intel Axom (x86_64)
155
 Skin: Skin with dynamic hardware controls
146
 Skin: Skin with dynamic hardware controls
156
 ```
147
 ```
157
-
158
-After performing these steps, you should be able to run `ionic cordova emulate android` and see your app running in the AVD.