You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/dotnet-templates/general/development-environment.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Development Environment"
3
3
description: "Setting up the Development Environment for the Genocs .NET Templates"
4
-
lead: "Let's get started with setting up the Development Environment for Genocs .NET Templates!"
4
+
lead: "Let's get started with setting up the Development Environment"
5
5
date: 2023-05-13T15:51:03+02:00
6
6
lastmod: 2024-08-21 14:50:50+02:00
7
7
draft: false
@@ -16,7 +16,7 @@ toc: true
16
16
---
17
17
Genocs Library's **.NET Templates** needs you to have the following *applications/tools* available on your machine.
18
18
19
-
Please Note that this project is being built on a Windows 11 Machine using Visual Studio Code IDE.
19
+
Please Note that this project is being built on a Windows11 Machine using Visual Studio Code IDE.
20
20
21
21
## .NET SDK
22
22
@@ -51,10 +51,7 @@ Genocs Library's .NET Microservice Template gives you the freedom to choose betw
51
51
52
52
{{< alert text="Make sure that you have at least one of these servers installed, along with a Database Management tool like Azure Data Studio / PostgreSQL pgAdmin / MySQL Workbench " />}}
53
53
54
-
### PostgreSQL
55
54
56
-
Probably the best Open Source Database Server with lots of Enterprise level features.
57
-
- Download postgresql Installer - [Get from postgresql.org](https://www.postgresql.org/download/)
58
55
59
56
### MSSQL
60
57
@@ -73,6 +70,11 @@ There are high chances that you already have this installed on your machine. Thi
title: "How to use NSwag with Genocs Microservice Template"
3
+
description: "Using NSwag with Genocs Microservice Template"
4
+
lead: "Let's get started with using NSwag with Genocs Microservice Template"
5
+
date: 2024-10-07T16:14:00+02:00
6
+
lastmod: 2024-10-07T16:14:00+02:00
7
+
draft: false
8
+
images: []
9
+
menu:
10
+
dotnet-templates:
11
+
identifier: "nswag"
12
+
name: "NSwag"
13
+
parent: "tutorials"
14
+
weight: 12
15
+
toc: true
16
+
---
17
+
18
+
Genocs Library's Blazor Template leverege the NSwag capabilities. This means that you can easily generate API Clients ease. This tutorial will guide you through the process of using NSwag with Genocs Library's Web API.
19
+
20
+
21
+
## Prerequisites
22
+
23
+
The template contains a script that will automatically generate the necessary files for you. However, you need to have the following components installed on your machine:
24
+
25
+
```ps
26
+
# Install the NSwag Build *Mandatory*
27
+
dotnet tool install -g NSwag.MSBuild
28
+
29
+
# Install the NSwag CLI *Optional*
30
+
dotnet tool install -g NSwag.Console
31
+
32
+
# Install the NSwag Code Generation *Optional*
33
+
dotnet tool install -g NSwag.CodeGeneration
34
+
```
35
+
36
+
37
+
Into the `scripts` folder you will find `nswag-regen.ps1`. This script will generate the necessary files for you. You can run the script by executing the following command:
38
+
39
+
Before run be shure the API is running, you can run the API by executing the following command:
40
+
41
+
```ps
42
+
# Run your API locally
43
+
dotnet run --project .\src\Genocs.MicroserviceTemplate.Api\Genocs.MicroserviceTemplate.Api.csproj
44
+
```
45
+
46
+
then run the script:
47
+
```ps
48
+
.\scripts\nswag-regen.ps1
49
+
```
50
+
51
+
The script will generate the necessary `src\Infrastructure\ApiClient\GNXApi.cs` file for you..
2.[Visual Studio Code](https://code.visualstudio.com/) or [Visual Studio 2019](https://visualstudio.microsoft.com/downloads/)
26
-
3.[MySQL Server](https://dev.mysql.com/downloads/mysql/) or [MSSQL Server](https://www.microsoft.com/en-us/sql-server/sql-server-downloads) or [PostgreSQL Server](https://www.postgresql.org/download/) or [Oracle Server](https://www.oracle.com/database/technologies/)
@@ -62,7 +68,7 @@ Note that currently, Genocs Microservice Template supports the following major D
62
68
4. PostgreSQL
63
69
5. SQLite
64
70
65
-
Download links to setup the supported Database providers are mentioned here - https://genocs-blog.netlify.app/dotnet-templates/general/development-environment/
71
+
Here you can find everything to setup the supported Database providers - [Setup Databases](https://genocs-blog.netlify.app/dotnet-templates/general/development-environment/)
66
72
67
73
To maintain scalability, the database migrations of each of these DB Providers are kept in separate class library projects namely
68
74
1. Migrators/Migrators.MSSQL
@@ -74,6 +80,7 @@ To maintain scalability, the database migrations of each of these DB Providers a
74
80
Out of the box, the default migrations are already generated and is made available for you. This means you wouldn't even have to run a `update-database` to get started. The Application startup already handles it for you.
75
81
76
82
As of now, Genocs Library's Microservice Template consists of the following EF Core DB Context classes:
83
+
77
84
1. **ApplicationDbContext** - This is where you would ideally reference your new entities. By default, Catalog entities are referenced here.
78
85
2. **TenantDbContext** - Related to Finbuckle's Multitenancy setup of Stores.
79
86
@@ -91,16 +98,69 @@ Below are some sample configurations for MySQL Provider. The above is applicable
That's almost it. Once the process is completed you would be able see new Migration cs files that represent your new additions / modifications at the table level added to the respective Migrator project.
247
+
That's almost it.
248
+
249
+
Once the process is completed you would be able see new Migration cs files that represent your new `additions/modifications` at the table level added to the respective Migrator project.
157
250
158
251
You do not have to do anything extra to apply the migrations to your database. The application does it for you during the startup.
Copy file name to clipboardExpand all lines: content/en/introduction/exploring-docs/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,4 +17,4 @@ toc: true
17
17
18
18
<b>Genocs Library</b> sports a pretty much straight forward documentation website that is frequently updated and also accepts new documentations/corrections from the community!
Copy file name to clipboardExpand all lines: content/en/library/messaging/index.md
+54Lines changed: 54 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,3 +14,57 @@ menu:
14
14
weight: 7
15
15
toc: true
16
16
---
17
+
18
+
19
+
This code snippet is used to send an email using SendGrid. The code snippet is written in C# and uses the SendGrid NuGet package. The code snippet is used to send an email to multiple recipients. The code snippet is written in C# and uses the SendGrid NuGet package. The code snippet is used to send an email to multiple recipients.
0 commit comments