- console-cs {to:'.'}
project,C#
C# .NET 6 Console App - console-fs {to:'.'}
project,F#
F# .NET 6 Console App - console-vb {to:'.'}
project,VB
VB .NET 6 Console App - console-ss {to:'.'}
project,S#
#Script Console App - console-lisp {to:'.'}
project,Lisp
#Script Lisp Console App - init {to:'.'}
project,C#
Empty .NET 6 ServiceStack App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Autogenerated .env file | |
HOST_DOMAIN=web.web-templates.io | |
[email protected] | |
APP_NAME=web | |
IMAGE_REPO=netcoretemplates/web | |
RELEASE_VERSION=latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
permissions: | |
packages: write | |
contents: write | |
on: | |
# Triggered on new GitHub Release | |
release: | |
types: [published] | |
# Triggered on every successful Build action | |
workflow_run: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
nginx-proxy: | |
image: nginxproxy/nginx-proxy | |
container_name: nginx-proxy | |
restart: always | |
ports: | |
- "80:80" | |
- "443:443" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Create an OAuth2 App at: https://discord.com/developers/applications | |
/// The Apps Callback URL should match the CallbackUrl here. | |
/// Discord OAuth2 info: https://discord.com/developers/docs/topics/oauth2 | |
/// Discord OAuth2 Scopes from: https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes | |
/// email: Basic info, plus will return email info from /users/@me API, this is the minimum required for ServiceStack | |
/// integration. | |
/// | |
/// Checking of email verification is enforced due to Discord not requiring verified emails. | |
/// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
wget https://download.visualstudio.microsoft.com/download/pr/8468e541-a99a-4191-8470-654fa0747a9a/cb32548d2fd3d60ef3fe8fc80cd735ef/dotnet-sdk-5.0.302-linux-x64.tar.gz | |
wget https://download.visualstudio.microsoft.com/download/pr/50687c84-e120-4410-bd4a-b1e0869d03f4/6038576259f95ef61d4d103ee3967130/dotnet-runtime-5.0.8-linux-x64.tar.gz | |
mkdir -p /home/ec2-user/dotnet && tar zxf dotnet-runtime-5.0.8-linux-x64.tar.gz -C /home/ec2-user/dotnet | |
export DOTNET_ROOT=/home/ec2-user/dotnet | |
export PATH=$PATH:/home/ec2-user/dotnet | |
export DOTNET_CLI_HOME=/home/ec2-user/dotnet | |
export HOME=/home/ec2-user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Route("/customers")] | |
public class QueryCustomers : QueryDb<Customer> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Connect your database | |
container.AddSingleton<IDbConnectionFactory>(c => | |
new OrmLiteConnectionFactory(MapProjectPath("~/northwind.sqlite"), SqliteDialect.Provider)); | |
// Add the AutoQuery Plugin | |
Plugins.Add(new AutoQueryFeature { MaxLimit = 100 }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Connect your database | |
container.AddSingleton<IDbConnectionFactory>(c => | |
new OrmLiteConnectionFactory(MapProjectPath("~/northwind.sqlite"), SqliteDialect.Provider)); | |
// Add the AutoQuery Plugin | |
Plugins.Add(new AutoQueryFeature { MaxLimit = 100 }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Connect your database | |
container.AddSingleton<IDbConnectionFactory>(c => | |
new OrmLiteConnectionFactory(MapProjectPath("~/northwind.sqlite"), SqliteDialect.Provider)); | |
// Configure AutoQuery to Generate CRUD services | |
Plugins.Add(new AutoQueryFeature { | |
MaxLimit = 1000, | |
GenerateCrudServices = new GenerateCrudServices { | |
AutoRegister = true | |
} |
NewerOlder