Matt Raible пре 7 година
родитељ
комит
9b69287222
1 измењених фајлова са 3 додато и 14 уклоњено
  1. 3
    14
      DEMO.md

+ 3
- 14
DEMO.md Прегледај датотеку

@@ -7,7 +7,7 @@ http https://start.spring.io/starter.zip \
7 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 11
 2. Create a JPA Repository to manage the `Beer` entity (tip: `@RepositoryRestResource`). → **boot-repository**
12 12
 3. Create a CommandLineRunner to populate the database. → **boot-command**
13 13
 4. Add default data in the `run()` method. → **boot-add**
@@ -37,7 +37,7 @@ Git Commit
37 37
 ## Build a Good Beers UI
38 38
 
39 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 41
 3. Create `src/providers/beer-service.ts`. → **io-beer-service**
42 42
 5. Modify `beer.html` to show the list of beers. → **io-beer-list**
43 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,7 +75,7 @@ This won't compile because `BeerModalPage` doesn't exist. Create `beer-modal.ts`
75 75
 
76 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 80
 You'll also need to modify `beer-service.ts` to have `get()` and `save()` methods. → **io-get-save**
81 81
 
@@ -139,20 +139,9 @@ Select your phone as the target in Xcode and click the play button to run your a
139 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 142
 AVD Name: TestPhone
152 143
 Device: Nexus 5
153 144
 Target: Android 7.1.1
154 145
 CPU/ABI: Google APIs Intel Axom (x86_64)
155 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.