cenny26 / techecommerce-server Goto Github PK
View Code? Open in Web Editor NEWA web application about a technology e-commerce that a back-side coding with ASP.NET Core Web API.
A web application about a technology e-commerce that a back-side coding with ASP.NET Core Web API.
In the current project, I have built an architectural storage service using the benefits of object-oriented programming. It is possible to change the storage service in the project only with a configuration in the Program.cs file. I'd love to use the AzureService I've coded extensively here, as per the project's wishes, but the very high asking price for the Blob Storage Service in the Azure Portal discourages me from doing so. Therefore, until the end of the project, I will use LocalService out of necessity. Again, I have no doubt that I will use clean and meaningful naming for as many files as possible in the project. I'm hoping to use AzureService as storage in my project once I have an account in the Azure Portal at some point...
Dependencies in the Application layer must be refactored over time. In a project built on the Onion architecture, the Application layer must contain few dependencies. The dependencies must be coded under the service name in the appropriate layers and called in the handler classes in the CQRS pattern. Thus, the handler classes will be more readable, and the correct structure of our codes will be preserved in terms of architecture...
Storing Confidential Information Using Azure Key Vault:
Azure Key Vault is a service used to securely store and manage confidential information. Here is a step-by-step guide on how to use it:
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((context, config) =>
{
var builtConfig = config.Build();
var keyVaultEndpoint = builtConfig["AzureKeyVault:VaultUri"];
if (!string.IsNullOrEmpty(keyVaultEndpoint))
{
var azureServiceTokenProvider = new AzureServiceTokenProvider();
var keyVaultClient = new KeyVaultClient(
new KeyVaultClient.AuthenticationCallback(
azureServiceTokenProvider.KeyVaultTokenCallback));
config.AddAzureKeyVault(keyVaultEndpoint, keyVaultClient, new DefaultKeyVaultSecretManager());
}
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
{
"AzureKeyVault": {
"VaultUri": "https://your-key-vault-name.vault.azure.net/"
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.