Develop ERP Software using ASP Core and Deploy to Azure
ISBN:9782925013037
Prev Book Contents » Next Book Contents » Buy print book »
Detailed Comparision with SAP Business One »»
Special Offer, Learner Pack = 8 Books + Software
Free, 6 Books + Software
Pay only for 2
Table of Contents
This book is best read along with "Develop Azure Application" and "Develop Web ERP Software..". The reason is, deployment to Azure is drawn from the Azure book and Database schema and domain explanation is drawn from ERP Software book.
ASP Core is Microsoft's tool to take on JAVA and PHP. It is open source, free and is fully loaded. Unlike the two competitors, it includes all the frameworks required to build applications. For the vast number of ASP developers and community, it is a natural progression to choose ASP Core as the preferred tool for cloud application development and deployment.
This book is organized into 6 chapters, each chapter containing a detailed explanation of the ERP software application development code, to give you in-depth knowledge. A separate chapter is dedicated to MVC application development which is the foundation for ASP Core application development. MVC architecture pattern is the defacto standard for application development and is covered in detail.
Data handling follows a different path in ASP Core applications. You use Entity Framework to handle data and you will find detailed explanation for this technology too.
Using ASP Core middleware you can load configuration and configure the request pipeline. We ensure that you learn all these concepts in a simple and straightforward manner, without jargon.
Once you set up the foundation, you are all set to develop an ERP application and deploy to Azure.
Chapter 1: Understand ASP.Net Core Application Structure
- What is ASP.Net core? Why care about ASP.Net Core?
- ASP.Net Core applications for the Cloud
- OS Containers
- Application Containers
- Modular and Loosely Coupled in ASP.Net Core
- Simplified Hosting model of ASP.NET Core
- Create an ASP.NET Core MVC web application
- Project templates
- Project structure in ASP.Net Core Web Application
- What is removed
- What has Remained
- What is Added
- Create a Host and WebServer for ASP.Net Core Application
- Kestrel Web Server
- Role of Startup.cs class in ASP.Net Core
- Dependency Injection in ASP.Net Core with an Example
- Create the service
- Register the service with DI in the Startup.cs file
- Use the Service
- Service lifetime
- Configure the request pipeline in ASP.Net.Core
- ASP.Net Core Built-in Middleware
Chapter 2: ASP.Net Core MVC
- Building blocks of ASP.Net Core application
- Creating a Controller in ASP.Net core
- Understand ASP.Net Core MVC routing
- Implementing Conventional Routing
- Implementing Attribute Routing
- Implementing Views in ASP.Net Core Application
- Adding a view to an ASP.NET Core MVC application
- Display a Collection with View
- Passing Data from the Controller to the View
- Using ViewData object in MVC application
- Using TempData and ViewBag object in MVC application
- Using ViewModels
- Create a Service
- Service Registration
- Injection
- Using the View Model to implement Views
- Details View
- Create View
- Edit View
Chapter 3: Working with Data in ASP.NET Core Applications
- Why use an ORM?
- What is O/RM? How does O/RM handle mismatch?
- Roles of ORMS
- Why Entity Framework?
- Installing Entity Framework Core
- Compare EF Core & EF6.x
- Create the Database Context and Configuring EF Core
- Register the context with dependency injection
- Adding a Connection string in appsettings.json
- Create the database with sample data
- Creating the SqlCustomerRepository Component
- Performing CRUD operations using EF core in ASP.Net core application
- Create a controller and views using Scaffolding
- Domain model Core concepts
- Entities
- Scalar Properties
- Identity Properties
- References and Collections
- Customize the Data Model by data annotations
- Decorating models with inbuilt data annotations
Chapter 4: Create ASP.Net Web APIs in ASP.Net Core
- What are Web APIs?
- Playing around with URLs and HTTP verbs - GET, PUT, POST, DELETE
- Create Web API in ASP.NET Core
- Configuring the Web API in your web application
- Parts of Web API project
- Setting up dependencies
- Create and Register database context
- Creating a CRUD Web API
- Writing an API controller
- Return data from an API
- Update data using APIs
- Testing APIs
Chapter 5: Creating ASP.Net Core Web ERP application
- Create Domain Entities in ERP application
- Create a Database
- Load Accounts Table with Chart of Accounts
- Developing the Application by Adding Controllers and Views
- Implementing Products Controller
- Implementing Action methods for CRUD operations
- Implementing Views
- Index View
- Details View
- Create View
- Edit view
- Delete View
- Implementing Sales Order Transaction
- Create an OrdersController
- Add a constructor
- Add MVC action methods to OrdersController to fetch data from the database
- Product categories
- Products
- Customers
- Add a Index View for the Index Action
- Designing a Sales order form
- Requesting JSON Data with AJAX call
- Javascript Rendering
- Rendering Category of products
- Products
- Customers
- Add an action method to save order transaction details to the database
Chapter 6: Developing SPA using Angular 2 Application with ASP.NET Core Template Pack in VS 2015
- Choosing Between Traditional Web Apps and Single Page Apps (SPAs)
- Features of SPA applications
- ASP.Net Core and JavaScript
- Features of JavaScript
- jQuery vs Angular
- Integrate AngularJS with Visual Studio 2015
- Create ASP.NET Core Angular 2 application
- WWWroot folder
- ClientApp
- Controller Folder
- View Folder
- package.json
- appsettings.json
- How Webpack dev middleware reduces the build time
- The app.component.html
- The app.component.ts
- Create first component
- Hooking Up the Route
- Link to route
- Creating a Ledger Account Component
- Creating Model Class for Account
- Creating Database Context
- Register the Context in Startup.cs
- Create Account Web API
- Create Account Component
- Adding a Dependency
- Create Component HTML File - account.component.html
- Display the Accounts List
- Adding Navigation menu
- Build and run the Application
Chapter 7: Deploy ASP.Net Core Application to Azure
- Deploying on IIS
- Deploying on Azure
- Deploy to Azure from Visual Studio with Web Deploy