AngularJS CRUD Operations with WebAPI, EF and Bootstrap

  • Keywords : insert update delete view using angularjs, entity framework and web api, add edit delete using angulajs and entity framework, angularjs crud operations using webapi and entity framework

    In previous article, you have learned about AngularJS Form Validation with Bootstrap.

  • This article will demonstrate, how to create an HTML5 app with CRUD (Create, Read, Update, Delete) Operations using AngularJS, WebAPI, Entity Framework code first and Bootstrap.
  • Suppose you have following data model and DataContext classes in EF.
  • Now migrate your data model class into SQL Server database by using EF code first database migration.
  • For more help refer this link Understanding Entity Framework Code First Migrations

    I hope you will enjoy the article while working with AngularJS and ASP.NET WebAPI.

In previous article, you have learned about AngularJS Form Validation with Bootstrap. This article will demonstrate, how to create an HTML5 app with CRUD (Create, Read, Update, Delete) Operations using AngularJS, WebAPI, Entity Framework code first and Bootstrap.
Continue reading “AngularJS CRUD Operations with WebAPI, EF and Bootstrap”

Learning Angular 2 for newbie – Part 2

  • Component: It will have binding logic in order to bind UI(html) with the Model(Business)

    Module: It is nothing but logical grouping of component.

  • Now under the Component folder created create an new”CustomerComponent.ts” we need to import two things the Angular 2 core and our Customer model.
  • Following are the lines of code

    The first line imports the “Customer” class from the Model folder into our “CustomerComponent.ts”.

  • Followed by that create a Module folder as said earlier Module is logical grouping of all Components.In Module folder create “TypeScript” file with name “MainModuleLibrary.ts” which will have all necessary components required loading in it.
  • Within this “Startup.ts” file we will have name of the module which will be loading first is the snapshot of the Startup.ts file created within Startup folder as shown in the image down below.

Learning Angular 2 for newbie – Part 2 In this article before we start with the Angular2 project first we will understand Angular2 component and module architecture thereafter we create simple app
Continue reading “Learning Angular 2 for newbie – Part 2”

Modern 3-tier application (AngularJS – Azure Logic Apps – Azure DocumentDB) – My wordpress blogs. . .

  • I tried implementing a modern 3-tier application architecture using AngularJS (presentation layer), Azure Logic Apps (business logic layer) and Azure DocumentDB (Data Layer).
  • Azure Logic Apps can be exposed as HTTP endpoints for doing CRUD operations so any front end application or any application for that matter can call the end points and trigger the business logic defined within the logic app.
  • I created 4 Logic Apps with POST, PUT, GET and DELETE verbs with HTTP Request trigger so the end points can be called for the appropriate operations.
  • Here are my 4 Logic Apps:

    GET Employee Logic App: Adding the Relative Path on the GET action adds the path and the path variable to the Logic App HTTP Trigger End Point.

  • Azure Logic Apps are very handy to implement the business logic and can be exposed as HTTP end points so any applications can consume them.

Definition of Three-tier architecture: Three-tier architecture is a client–server software architecture pattern in which the user interface (presentation), functional process logic (“business rules”), computer data storage and data access are developed and maintained as independent modules, most often on separate platforms.
Continue reading “Modern 3-tier application (AngularJS – Azure Logic Apps – Azure DocumentDB) – My wordpress blogs. . .”

computer solutions: JSON Web Token Tutorial: An Example in Laravel and AngularJS

  • It comprises a compact and URL-safe JSON object, which is cryptographically signed to verify its authenticity, and which can also be encrypted if the payload contains sensitive information.Because of it’s compact structure, JWT is usually used in HTTPheaders or URL query parameters.A JWT is represented as a sequence of base64url encoded values that are separated by period characters.JSON Web Token example:The header contains the metadata for the token and it minimally contains the type of signature and the encryption algorithm.
  • This JWT Header declares that the encoded object is a JSON Web Token, and that it is signed using the HMAC SHA-256 algorithm.Once this is base64 encoded, we have the first part of our JWT.In the context of JWT, a claim can be defined as a statement about an entity (typically, the user), as well as additional meta data about the token itself.
  • However, if we want to add an additional layer of protection, we can encrypt the JWT payload itself using the JSON Web Encryption (JWE) specification.Of course, if we want to avoid the additional overhead of using JWE, another option is to simply keep sensitive information in our database, and use our token for additional API calls to the server whenever we need to access sensitive data.Before we can see all the benefits of using token authentication, we have to look at the way authentication has been done in the past.Because the HTTP protocol is stateless, there needs to be a mechanism for storing user information and a way to authenticate the user on every subsequent request after login.
  • We can easily use the same token for fetching a secure resource from a domain other than the one we are logged in to.A browser or mobile client makes a request to the authentication server containing user login information.
  • The only thing we have to do is calculate the HMAC SHA-256 to validate the token and parse its content.In this tutorial I am going to demonstrate how to implement the basic authentication using JSON Web Tokens in two popular web technologies: Laravel 5 for the backend code and AngularJS for the frontend Single Page Application (SPA) example.

Continue reading “computer solutions: JSON Web Token Tutorial: An Example in Laravel and AngularJS”

Modern 3-tier application (AngularJS – Azure Logic Apps – Azure DocumentDB) – My wordpress blogs. . .

  • I tried implementing a modern 3-tier application architecture using AngularJS (presentation layer), Azure Logic Apps (business logic layer) and Azure DocumentDB (Data Layer).
  • Azure Logic Apps can be exposed as HTTP endpoints for doing CRUD operations so any front end application or any application for that matter can call the end points and trigger the business logic defined within the logic app.
  • I created 4 Logic Apps with POST, PUT, GET and DELETE verbs with HTTP Request trigger so the end points can be called for the appropriate operations.
  • Here are my 4 Logic Apps:

    GET Employee Logic App: Adding the Relative Path on the GET action adds the path and the path variable to the Logic App HTTP Trigger End Point.

  • Azure Logic Apps are very handy to implement the business logic and can be exposed as HTTP end points so any applications can consume them.

  Definition of Three-tier architecture: Three-tier architecture is a client–server software architecture pattern in which the user interface (presentation), functional process logic (“business rules”), computer data storage and data access are developed and maintained as independent modules, most often on separate platforms. I tried implementing a modern 3-tier application architecture using AngularJS (presentation layer), Azure…
Continue reading “Modern 3-tier application (AngularJS – Azure Logic Apps – Azure DocumentDB) – My wordpress blogs. . .”