Skip to content

Commit 542be11

Browse files
committed
first commit
1 parent f51c13f commit 542be11

24 files changed

+631
-501
lines changed

README.md

Lines changed: 55 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,68 @@
1-
# Angular14CrudExample
1+
# Angular 14 example project: CRUD with Rest API
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.2.
3+
Build an Angular 14 CRUD App example to consume Rest APIs, display, modify & search data.
44

5-
## Development server
5+
Tutorial Application in that:
6+
- Each Tutorial has id, title, description, published status.
7+
- We can create, retrieve, update, delete Tutorials.
8+
- There is a Search bar for finding Tutorials by title.
69

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
10+
![angular-14-crud-example](angular-14-crud-example.png)
811

9-
## Code scaffolding
12+
Run `ng serve --port 8081` for a dev server. Navigate to `http://localhost:8081/`. The app will automatically reload if you change any of the source files.
1013

11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
14+
For instruction, please visit:
15+
> [Angular example: CRUD Application with Rest API](https://www.bezkoder.com/angular-14-crud-example/)
1216
13-
## Build
17+
More Practice:
18+
> [Angular Pagination example | ngx-pagination](https://www.bezkoder.com/angular-13-pagination-ngx/)
1419
15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
20+
> [Angular JWT Authentication & Authorization with Web API](https://www.bezkoder.com/angular-13-jwt-auth/)
1621
17-
## Running unit tests
22+
> [Angular File upload example with Progress bar](https://www.bezkoder.com/angular-13-file-upload/)
1823
19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
24+
> [Angular Multiple Files upload example with Progress Bar](https://www.bezkoder.com/angular-13-multiple-file-upload/)
2025
21-
## Running end-to-end tests
26+
> [Angular Form Validation example (Reactive Forms)](https://www.bezkoder.com/angular-13-form-validation/)
2227
23-
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
28+
Fullstack with Node:
2429

25-
## Further help
30+
> [Angular + Node Express + MySQL example](https://www.bezkoder.com/angular-13-node-js-express-mysql/)
2631
27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
32+
> [Angular + Node Express + PostgreSQL example](https://www.bezkoder.com/angular-13-node-js-express-postgresql/)
33+
34+
> [Angular + Node Express + MongoDB example](https://www.bezkoder.com/mean-stack-crud-example-angular-13/)
35+
36+
> [Angular + Node Express: File upload example](https://www.bezkoder.com/angular-13-node-express-file-upload/)
37+
38+
Fullstack with Spring Boot:
39+
40+
> [Angular + Spring Boot + H2 Embedded Database example](https://www.bezkoder.com/spring-boot-angular-13-crud/)
41+
42+
> [Angular + Spring Boot + MySQL example](https://www.bezkoder.com/spring-boot-angular-13-mysql/)
43+
44+
> [Angular + Spring Boot + PostgreSQL example](https://www.bezkoder.com/spring-boot-angular-13-postgresql/)
45+
46+
> [Angular + Spring Boot + MongoDB example](https://www.bezkoder.com/angular-13-spring-boot-mongodb/)
47+
48+
> [Angular + Spring Boot: File upload example](https://www.bezkoder.com/angular-13-spring-boot-file-upload/)
49+
50+
Fullstack with Django:
51+
> [Angular + Django example](https://bezkoder.com/django-angular-13-crud-rest-framework/)
52+
53+
Security:
54+
> [Angular + Spring Boot: JWT Authentication and Authorization example](https://www.bezkoder.com/angular-12-spring-boot-jwt-auth/)
55+
56+
> [Angular + Node.js Express: JWT Authentication and Authorization example](https://www.bezkoder.com/node-js-angular-12-jwt-auth/)
57+
58+
Serverless with Firebase:
59+
> [Angular Firebase CRUD with Realtime DataBase | AngularFireDatabase](https://www.bezkoder.com/angular-13-firebase-crud/)
60+
61+
> [Angular Firestore CRUD example with AngularFireStore](https://www.bezkoder.com/angular-13-firestore-crud-angularfirestore/)
62+
63+
> [Angular Firebase Storage: File Upload/Display/Delete example](https://www.bezkoder.com/angular-13-firebase-storage/)
64+
65+
Integration (run back-end & front-end on same server/port)
66+
> [How to integrate Angular with Node Restful Services](https://bezkoder.com/integrate-angular-12-node-js/)
67+
68+
> [How to Integrate Angular with Spring Boot Rest API](https://bezkoder.com/integrate-angular-12-spring-boot/)

angular-14-crud-example.png

23.7 KB
Loading

package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@angular/platform-browser": "^14.0.0",
1919
"@angular/platform-browser-dynamic": "^14.0.0",
2020
"@angular/router": "^14.0.0",
21+
"bootstrap": "^4.6.1",
2122
"rxjs": "~7.5.0",
2223
"tslib": "^2.3.0",
2324
"zone.js": "~0.11.4"

src/app/app-routing.module.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
3+
import { TutorialsListComponent } from './components/tutorials-list/tutorials-list.component';
4+
import { TutorialDetailsComponent } from './components/tutorial-details/tutorial-details.component';
5+
import { AddTutorialComponent } from './components/add-tutorial/add-tutorial.component';
36

4-
const routes: Routes = [];
7+
const routes: Routes = [
8+
{ path: '', redirectTo: 'tutorials', pathMatch: 'full' },
9+
{ path: 'tutorials', component: TutorialsListComponent },
10+
{ path: 'tutorials/:id', component: TutorialDetailsComponent },
11+
{ path: 'add', component: AddTutorialComponent }
12+
];
513

614
@NgModule({
715
imports: [RouterModule.forRoot(routes)],
816
exports: [RouterModule]
917
})
10-
export class AppRoutingModule { }
18+
export class AppRoutingModule { }

0 commit comments

Comments
 (0)