Skip to content

Commit

Permalink
Merge pull request #5 from koeeenig/feat-api-routes
Browse files Browse the repository at this point in the history
✨ Adds Build in Markdown Support and API Routes
  • Loading branch information
koeeenig authored Dec 13, 2023
2 parents 10c0855 + 7a49d97 commit 0d38d40
Show file tree
Hide file tree
Showing 129 changed files with 1,997 additions and 794 deletions.
25 changes: 16 additions & 9 deletions BlazeKit.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ VisualStudioVersion = 17.7.34009.444
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit", "src\BlazeKit\BlazeKit.csproj", "{93775A2B-DB61-4195-9A38-D0C6BEF80267}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Reactive", "src\BlazeKit.Reactive\BlazeKit.Reactive.csproj", "{1C08F700-1DC7-4B33-842E-2AFD3BA76B38}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Deployment.Vercel", "src\BlazeKit.Deployment.Vercel\BlazeKit.Deployment.Vercel.csproj", "{CB3D0D42-28F1-4AFA-8BC9-37A1523A4583}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Abstraction", "src\BlazeKit.Abstraction\BlazeKit.Abstraction.csproj", "{DD6DE816-D517-47D6-9EDB-3A30E0213BEC}"
Expand All @@ -23,26 +21,24 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.CLI", "src\BlazeKi
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Deployment", "Deployment", "{B5C21DC5-2745-4530-A317-F4CD52DBE22E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Reactive.Tests", "tests\BlazeKit.Reactive.Tests\BlazeKit.Reactive.Tests.csproj", "{4D98C97D-CFCC-4473-BFD8-B28DA3199EF6}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Reactivity.Tests", "tests\BlazeKit.Reactivity.Tests\BlazeKit.Reactivity.Tests.csproj", "{4D98C97D-CFCC-4473-BFD8-B28DA3199EF6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "_build", "build\_build.csproj", "{6B6EFC67-31B4-4D2E-98D5-1A731AF98B0B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazeKit.Reactivity", "src\BlazeKit.Reactivity\BlazeKit.Reactivity.csproj", "{3CD31A61-9A86-4D79-A7A6-B6A4AD0BF7D8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazeKit.Routing.TestApp", "tests\BlazeKit.Routing.TestApp\BlazeKit.Routing.TestApp.csproj", "{196C36B5-D580-4C2D-BDFF-AFD530255F2E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6B6EFC67-31B4-4D2E-98D5-1A731AF98B0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B6EFC67-31B4-4D2E-98D5-1A731AF98B0B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{93775A2B-DB61-4195-9A38-D0C6BEF80267}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{93775A2B-DB61-4195-9A38-D0C6BEF80267}.Debug|Any CPU.Build.0 = Debug|Any CPU
{93775A2B-DB61-4195-9A38-D0C6BEF80267}.Release|Any CPU.ActiveCfg = Release|Any CPU
{93775A2B-DB61-4195-9A38-D0C6BEF80267}.Release|Any CPU.Build.0 = Release|Any CPU
{1C08F700-1DC7-4B33-842E-2AFD3BA76B38}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1C08F700-1DC7-4B33-842E-2AFD3BA76B38}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1C08F700-1DC7-4B33-842E-2AFD3BA76B38}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1C08F700-1DC7-4B33-842E-2AFD3BA76B38}.Release|Any CPU.Build.0 = Release|Any CPU
{CB3D0D42-28F1-4AFA-8BC9-37A1523A4583}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CB3D0D42-28F1-4AFA-8BC9-37A1523A4583}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CB3D0D42-28F1-4AFA-8BC9-37A1523A4583}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -71,6 +67,16 @@ Global
{4D98C97D-CFCC-4473-BFD8-B28DA3199EF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4D98C97D-CFCC-4473-BFD8-B28DA3199EF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D98C97D-CFCC-4473-BFD8-B28DA3199EF6}.Release|Any CPU.Build.0 = Release|Any CPU
{6B6EFC67-31B4-4D2E-98D5-1A731AF98B0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B6EFC67-31B4-4D2E-98D5-1A731AF98B0B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3CD31A61-9A86-4D79-A7A6-B6A4AD0BF7D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3CD31A61-9A86-4D79-A7A6-B6A4AD0BF7D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3CD31A61-9A86-4D79-A7A6-B6A4AD0BF7D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3CD31A61-9A86-4D79-A7A6-B6A4AD0BF7D8}.Release|Any CPU.Build.0 = Release|Any CPU
{196C36B5-D580-4C2D-BDFF-AFD530255F2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{196C36B5-D580-4C2D-BDFF-AFD530255F2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{196C36B5-D580-4C2D-BDFF-AFD530255F2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{196C36B5-D580-4C2D-BDFF-AFD530255F2E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -79,6 +85,7 @@ Global
{CB3D0D42-28F1-4AFA-8BC9-37A1523A4583} = {B5C21DC5-2745-4530-A317-F4CD52DBE22E}
{D466841A-00F1-4E37-BEB3-F7DEAF7EABB1} = {952B525D-297C-4F66-85E2-967C9982771F}
{4D98C97D-CFCC-4473-BFD8-B28DA3199EF6} = {952B525D-297C-4F66-85E2-967C9982771F}
{196C36B5-D580-4C2D-BDFF-AFD530255F2E} = {952B525D-297C-4F66-85E2-967C9982771F}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8F0560BE-EE70-4DE3-8ACA-590A2B56C96A}
Expand Down
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,35 @@ BlazeKit aims to provide Meta-framework-like Features for Blazor which has been
- 🪄 Auto-Generated Route Parameters

Some more infos can be found at [blazekit.dev](https://blazekit.dev) but keep in mind BlazeKit is work in progress.

# 🚀 Getting Started
Before creating your first BlazeKit project, you should ensure that your local machine has:
- .NET 8 - you can find the download [here](https://dotnet.microsoft.com/en-us/download)

That's it 👍

## ✨ Create an app using the CLI
After you have installed the required dependencies, the easiest way to get a project up an running is by using the BlazeKit CLI.
```ps
# Install the BlazeKit CLI
dotnet tool install --global BlazeKit.CLI --version 0.1.0-alpha.2
```
Now simply create your first BlazeKit project by running the following command
```ps
bkit new NextUnicorn
```
You will be prompted to choose one of the Blazor Hosting Models such as **Blazor WebAssembly** or **Blazor Server**.
Afterwards a BlazeKit app will be created with the choosen hosting model.
Next **_cd_** into your project folder and start .NET's local development server using the **_dotnet watch_** command
```ps
cd NextUnicorn
dotnet watch
```
And here it is, your first BalzeKit project 🎉

## 🔄️ Updating the BlazeKit CLI
The easiest way to update the BlazeKit CLI is to simply uninstall and reinstall it.
```ps
dotnet tool uninstall -g BlazeKit.CLI
dotnet tool install -g BlazeKit.CLI --version 0.1.0-alpha.2
```
4 changes: 2 additions & 2 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Build : NukeBuild
var projectsToBuild =
new List<Nuke.Common.ProjectModel.Project>() {
Solution.GetProject("BlazeKit"),
Solution.GetProject("BlazeKit.Reactive"),
Solution.GetProject("BlazeKit.Reactivity"),
Solution.GetProject("BlazeKit.CLI")
// Solution.GetProject("BlazeKit.Deployment.Vercel")
};
Expand Down Expand Up @@ -108,7 +108,7 @@ class Build : NukeBuild
var projectsToPack =
new List<Nuke.Common.ProjectModel.Project>() {
Solution.GetProject("BlazeKit"),
Solution.GetProject("BlazeKit.Reactive"),
Solution.GetProject("BlazeKit.Reactivity"),
Solution.GetProject("BlazeKit.CLI")
// Solution.GetProject("BlazeKit.Deployment.Vercel")
};
Expand Down
6 changes: 6 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"rollForward": "latestMinor"
}
}
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
yum -y install wget tar gzip libicu
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --version latest
1 change: 1 addition & 0 deletions src/BlazeKit.Abstraction/BlazeKit.Abstraction.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>

</Project>
12 changes: 12 additions & 0 deletions src/BlazeKit.Abstraction/IDeleteRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace BlazeKit.Abstraction;
/// <summary>
/// Interface for Delete Request
/// </summary>
public interface IDeleteRequest
{
Delegate Delete();
}


9 changes: 9 additions & 0 deletions src/BlazeKit.Abstraction/IGetRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;

namespace BlazeKit.Abstraction;
public interface IGetRequest
{
Delegate Get();
}


12 changes: 12 additions & 0 deletions src/BlazeKit.Abstraction/IPatchRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace BlazeKit.Abstraction;
/// <summary>
/// Interface for Patch Request
/// </summary>
public interface IPatchRequest
{
Delegate Patch();
}


10 changes: 10 additions & 0 deletions src/BlazeKit.Abstraction/IPostRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;

namespace BlazeKit.Abstraction;
/// <summary>
/// Interface for Post Request
/// </summary>
public interface IPostRequest
{
Delegate Post();
}
12 changes: 12 additions & 0 deletions src/BlazeKit.Abstraction/IPutRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace BlazeKit.Abstraction;
/// <summary>
/// Interface for Put Request
/// </summary>
public interface IPutRequest
{
Delegate Put();
}


4 changes: 1 addition & 3 deletions src/BlazeKit.CLI/BlazeKit.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackAsTool>true</PackAsTool>
<ToolCommandName>bkit</ToolCommandName>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="Commands\New\Assets\TPL_NEW_PROJECT.zip" />
<EmbeddedResource Include="Commands\New\Assets\TPL_NEW_PROJECT_SERVER.zip" />
<None Include="../../README.md" Pack="true" PackagePath="\"></None>
<None Include="../../LICENSE" Pack="true" PackagePath="\"></None>
<Content Include="icon.png" PackagePath="."></Content>
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 0d38d40

Please sign in to comment.