How to deploy react app to GitHub pages

Github-pages is very practical to host static websites, not only Jekyll based websites, but also Angular, React based static websites etc.

You don’t need to purchase a space for the websites hosting. It’s totally free! All you need is just a GitHub account. :)

More …

How to transform web config or app config by environment in visual studio

In software development, there are at least several environments to manage: development (DEV), staging (STAG or PRE), and production (PRD).

There will be integration (INT), user acceptance testing (UAT) in a more complete environment configuration.

It could be frustrating when managing all those environments because a small error in the deployment could generate an incident, or disaster!

Fortunately there is a cool tool to facilitate the environment management and software deployment in visual studio.

More …

REST API Design - What is OpenAPI-compliant API?

The OpenAPI Initiative (OAI) was created in order to standardize the API design.The OpenAPI Specification (OAS) was originally based on the Swagger Specification, donated by SmartBear Software.

The OpenAPI is programming language agnostic.

You can see the OpenAPI Specification change history here


More …

How to do Code-First approach with Entity Framework Core and SQL LocalDB

If you have used Entity Framework, you have probably known that there are 3 possible approaches to work with the database:

  • Database First

Database First is the most common practice when working an existing database.

In this case, an .EDMX (Entity Data Model XML) file will be generated when you map the database in your project. And it contains all the data models.

  • Model First

With Model First approach, you start by creating .EDMX file with models in the designer, then you generate the database from the .EDMX file.

  • Code First

With Code First approach, you create the data models firstly, and then generate or update the database with incremental migrations.

You have refined control on the details of data models, like the column constraints(max/min length), relationships etc.

And with the migration history, you can easily move forward or rollback your database version while ensuring the data model consistency.

More …