From 78bd7dac7c3e655c142f4fa1f62760a97906f46c Mon Sep 17 00:00:00 2001
From: Ilya Klimenko <46647517+Sn0wy-0wl@users.noreply.github.com>
Date: Thu, 9 Jun 2022 16:23:48 +0300
Subject: [PATCH 01/10] feat: Made swagger support optional
---
Level X/Template/.template.config/template.json | 8 ++++++++
Level X/Template/Program.cs | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/Level X/Template/.template.config/template.json b/Level X/Template/.template.config/template.json
index e828d82..8e7514a 100644
--- a/Level X/Template/.template.config/template.json
+++ b/Level X/Template/.template.config/template.json
@@ -9,5 +9,13 @@
"tags": {
"type": "project",
"language": "C#"
+ },
+ "symbols": {
+ "EnableSwaggerSupport": {
+ "type": "parameter",
+ "descriptions": "Enables swagger support",
+ "datatype": "bool",
+ "defaultValue": "true"
+ }
}
}
\ No newline at end of file
diff --git a/Level X/Template/Program.cs b/Level X/Template/Program.cs
index 8264bac..5e45613 100644
--- a/Level X/Template/Program.cs
+++ b/Level X/Template/Program.cs
@@ -3,17 +3,25 @@
// Add services to the container.
builder.Services.AddControllers();
+
+@*#if(EnableSwaggerSupport)
+
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
+
builder.Services.AddSwaggerGen();
+#endif*@
+
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
+@*#if(EnableSwaggerSupport)
app.UseSwagger();
app.UseSwaggerUI();
+#endif*@
}
app.UseHttpsRedirection();
From c30a008e4a8783450ed113a296ff8facd68551b7 Mon Sep 17 00:00:00 2001
From: Ilya Klimenko <46647517+Sn0wy-0wl@users.noreply.github.com>
Date: Fri, 10 Jun 2022 16:23:26 +0300
Subject: [PATCH 02/10] feat: Made swagger support optional
---
Level X/Template/Asp.AwesomeTemplate.csproj | 3 +++
Level X/Template/Program.cs | 9 ++++++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/Level X/Template/Asp.AwesomeTemplate.csproj b/Level X/Template/Asp.AwesomeTemplate.csproj
index ef42948..4d4c002 100644
--- a/Level X/Template/Asp.AwesomeTemplate.csproj
+++ b/Level X/Template/Asp.AwesomeTemplate.csproj
@@ -7,7 +7,10 @@
+ Edit &*j;=u%25ay-%>3@81tGe^_z*C7pb9y*Ed^H3t$BIKH2o+olp#$q;)_
zfpjCb_^VFg5fU~K)nf*d*r@BCC>UZ!0&b?AGk_jTPXaSnCuW110wjHPPe^9R^;jo3
zwvzTl)C`Zl5}O2}3lec=hZ*$JnkW#7enKKc)(pM${_$9Hc=Sr_A9Biwe*Y=T?~1CK
z6eZ9uPICjy-sMGbZl$yQmpB&`ouS8v{58__t0$JP%i3R&%QR
%*1_<3D4NX
zeVTi-JGl2uP_2@0F{G({pxQOXt_d{g_CV6b?jNpfUG9;8yle-^4KHRvZs-_2siata
zt+d_T@U$&t*xaD22(fH(W1r$Mo?3dc%Tncm=C6{V9y{v&VT#^1L04vDrLM9qBoZ4@
z6DBN#m57hX7$C(=#$Y5$bJmwA$T8jKD8+6A!-IJwA{WOfs%s}yxUw^?MRZjF$n_KN
z6`_bGXcmE#5e4Ym)aQJ)xg3Pg0@k`iGuHe?f(5LtuzSq=nS^5z>vqU0EuZ&75V%Z{
zYyhRLN^)$c6Ds{f7*FBpE;n5iglx5PkHfWrj3src/App.tsx
and save to reload.
+
HYP!y_SgLmYd+~=fp7%`S*_6y*6x9w^2dShY?KKB$ zLTjjngX~QBh?$TrOuvg8*>$|pHSjd0yRZ~*bHz%fsyM#@%AFRoR%gkruCkKCy7)>s zisr#wD=6yPjwnb lw;&6nr8EIH$KZx0Q g2*=C9_0P|3!n5M>i_4G*d?}(ke5!9CjevQia}hUeLSN!M zUAR$2wtERpg!<%FRhdBGg|)Mx 78eISYJP~!vpf453hu9oO(^}zwM^L`w(QYSkJw`gE@q*bAP1^UxfZ_8?I{MwOAmc zZXYVw&$i~bAJtu5#r)hB86~52!Ilo%8XFA36#z*}<`scRG)&2})CDpUHM%pHii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bT?&P; zPillKuP%P=3^zmUA%MPCQG|Y+sM$M Date: Sat, 18 Jun 2022 15:48:58 +0300 Subject: [PATCH 09/10] feat: Added React.Ts as conditional option to template --- .../Template/.template.config/template.json | 26 +++++++++++++++++++ Level X/Template/docker-compose.yaml | 4 ++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/Level X/Template/.template.config/template.json b/Level X/Template/.template.config/template.json index f548968..8f1ddfa 100644 --- a/Level X/Template/.template.config/template.json +++ b/Level X/Template/.template.config/template.json @@ -23,6 +23,26 @@ "descriptions": "Enables swagger support", "datatype": "bool", "defaultValue": "true" + }, + "UseSpaFrontendFramework": { + "type": "parameter", + "descriptions": "Adds selected SPA framework (React/Vue)", + "datatype": "choice", + "defaultValue": "None", + "choices": [ + { + "choice": "React", + "description": "Use React.Ts created with create-react-app and configured to be better" + }, + { + "choice": "None", + "description": "Do not use any spa framework" + } + ] + }, + "UseReact": { + "type": "computed", + "value": "(UseSpaFrontendFramework == \"React\"" } }, "sources": [ @@ -33,6 +53,12 @@ "exclude": [ "Controllers/ExampleController.cs" ] + }, + { + "condition": "(!UseReact)", + "exclude": [ + "react-ui/**" + ] } ] } diff --git a/Level X/Template/docker-compose.yaml b/Level X/Template/docker-compose.yaml index a26a859..ceb95b4 100644 --- a/Level X/Template/docker-compose.yaml +++ b/Level X/Template/docker-compose.yaml @@ -15,6 +15,7 @@ services: volumes: # Development certificate volume - ~/.aspnet/https:/https:ro +//#if(UseReact) react-ui: build: context: ./react-ui @@ -27,4 +28,5 @@ services: - WATCHPACK_POLLING=true volumes: - ./react-ui:/usr/src/app/react-ui - - /usr/src/app/react-ui/node_modules \ No newline at end of file + - /usr/src/app/react-ui/node_modules +//#endif \ No newline at end of file From 32616194054b17f430d20c39dc7e2e8ca16c0e07 Mon Sep 17 00:00:00 2001 From: Ilya Klimenko <46647517+Sn0wy-0wl@users.noreply.github.com> Date: Sat, 18 Jun 2022 18:03:59 +0300 Subject: [PATCH 10/10] Update version to 0.2.0 --- Level X/Asp.AwesomeTemplates.Main.Nuget.csproj | 2 +- Level X/Template/README.md | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Level X/Asp.AwesomeTemplates.Main.Nuget.csproj b/Level X/Asp.AwesomeTemplates.Main.Nuget.csproj index 660c3ff..a6ea766 100644 --- a/Level X/Asp.AwesomeTemplates.Main.Nuget.csproj +++ b/Level X/Asp.AwesomeTemplates.Main.Nuget.csproj @@ -2,7 +2,7 @@ Template -0.1.0 +0.2.0 Asp.AwesomeTemplates.Main ASP.NET 6 awesome templates Ilya Klimenko (MadL1me) diff --git a/Level X/Template/README.md b/Level X/Template/README.md index 9718a77..d1abb08 100644 --- a/Level X/Template/README.md +++ b/Level X/Template/README.md @@ -25,13 +25,15 @@ Congrats, you setuped your dev certificates ### Run -Now, you can simply run your app with one command: +Now, you can simply run your app with one command in interactive mode: ```sh -docker compose up -d +docker compose up ``` + +Back-end Swagger docs: https://localhost:443/swagger + -Swagger route: -``` -http://localhost:433/swagger -``` \ No newline at end of file + +Front-end React-app: http://localhost:3000 + \ No newline at end of file