Skip to content

davinez/general-web-tools-ai-tutorial

Repository files navigation

general-web-tools-ai-tutorials

CoreApp

Database

  • Migrations

Run the following commands to create the database schema:

dotnet ef migrations add InitialCreate
dotnet ef database update
# Create a new migration	
Add-Migration [MigrationName]

# Remove the latest migration	
Remove-Migration

# Update the database to the latest migration	
Update-Database

# Update the database to a specific migration	
Update-Database -Migration [MigrationName]

# List all available migrations	
Get-Migrations

# Generate SQL script for all migrations	
Script-Migration

# Drop the database	
Drop-Database

Linux

sudo apt update && sudo apt upgrade -y

Troubleshoot

  • With docker if running a UI app like Rancher Desktop:

If you get below error when running "docker" command:

error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.49/containers/json": open //./pipe/docker_engine: The system cannot find the file specified.
Please run below script in “Terminal (Admin)” to grant yourself access to “docker_engine” socket:
$account=whoami
$npipe = "\\.\pipe\docker_engine"
$dInfo = New-Object "System.IO.DirectoryInfo" -ArgumentList $npipe
$dSec = $dInfo.GetAccessControl()
$fullControl =[System.Security.AccessControl.FileSystemRights]::FullControl
$allow =[System.Security.AccessControl.AccessControlType]::Allow
$rule = New-Object "System.Security.AccessControl.FileSystemAccessRule" -ArgumentList $account,$fullControl,$allow
$dSec.AddAccessRule($rule)
$dInfo.SetAccessControl($dSec)

AI

  • For open web ui and other AI services / tools, run:
docker compose -f docker-compose.ai.yml up

Pending / Plan

  • Logic in Angular and Blazor App

  • Bookarks: -- Upload processed bookmark file to blob -- Handle processing message status -- SignalR to angular client to .net api and status of processing bookmark

  • Playground:

Implementations Backend

Implement Service Bus Implement Azure Event Hubs / RabbitMQ Implement Storage Implement Redis Implement CosmosDB Implement api dedicated to scrap in python Implement transactions DB Implement GraphQL Implements unit tests and integrations tests (Nunit or Xunit)

Use Local Emulators

Service Bus Event Hubs / RabbitMQ Azurite Redis CosmosDB Docker - Implemented SQL Server - Implemented

Reference

Used in this APP

-- Reference https://github.com/bitwarden

https://github.com/Kareadita/Kavita/tree/develop/UI/Web/src/app

https://medium.com/@ms111mithun/mastering-message-queues-leveraging-rabbitmq-locally-and-azure-service-bus-in-production-for-net-277236f25609

https://github.com/dotnet/eShop/tree/main

https://github.com/NimblePros/eShopOnWeb

Demos Databases

Real World App Frameworks General

https://codebase.show/projects/realworld?category=backend

.NET

Angular

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published