Skip to content

Commit

Permalink
Update demo to Angular 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Raible committed Nov 22, 2019
1 parent 86dcd57 commit fba79f4
Show file tree
Hide file tree
Showing 116 changed files with 12,604 additions and 10,782 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ Generating CRUD applications with the Angular CLI and Schematics.
```
cd angular-crud
cd demo-cli6
cd demo
npm install
```
Note, that this also installs ``angular-crud``.
3. Switch to the folder ``src\app`` and create a sub-folder ``hotel`` with a file ``model.json``. Put the following content into this file:
3. Switch to the folder `src/app` and create a sub-folder `hotel` with a file `model.json`. Put the following content into this file:
```
```json
{
"title": "Hotel",
"entity": "hotel",
Expand Down Expand Up @@ -69,7 +69,7 @@ Generating CRUD applications with the Angular CLI and Schematics.
The generator is using a json5 parser. This means that you can use comments, omit quotation marks and use trailing commas.
4. In the same folder, run the following Angular CLI based command:
4. In your project's root directory, run the following Angular CLI based command:
```
ng g angular-crud:crud-module hotel
Expand Down Expand Up @@ -112,7 +112,7 @@ Generating CRUD applications with the Angular CLI and Schematics.
npm start
```
9. Open ``localhost:4200`` and switch to the menu item ``Hotel``. You should now see your generated form.
9. Open <http://localhost:4200> and switch to the menu item ``Hotel``. You should now see your generated form.
Please note, that you cannot save records with Ids 1 to 5 b/c they are restricted for demos.
Expand All @@ -125,7 +125,6 @@ You can fork this repo and extend the generated code using Schematics. Infos abo
## Call for Contributions
- Deleting records
- Validation
- Navigating between Records
- Lookups with dropdown fields etc.
Expand Down
4 changes: 3 additions & 1 deletion angular-crud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Generating CRUD applications with Angular, the CLI and Schematics",
"scripts": {
"build": "tsc -p tsconfig.json",
"test": "npm run build && jasmine **/*_spec.js"
"test": "npm run build && jasmine src/**/*_spec.js",
"coverage": "istanbul cover -x 'src/**/*_spec.js' jasmine src/**/*_spec.js"
},
"keywords": [
"schematics",
Expand All @@ -22,6 +23,7 @@
"@types/jasmine": "^2.6.0",
"@types/json5": "0.0.29",
"@types/node": "^8.0.31",
"istanbul": "0.4.5",
"jasmine": "^2.8.0",
"typescript": "^2.5.2"
},
Expand Down
Loading

0 comments on commit fba79f4

Please sign in to comment.