Skip to content

Instantly share code, notes, and snippets.

@gistlyn
Last active November 15, 2020 21:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gistlyn/f3fa8c016bbd253badc61d80afe399d9 to your computer and use it in GitHub Desktop.
Save gistlyn/f3fa8c016bbd253badc61d80afe399d9 to your computer and use it in GitHub Desktop.
web gists

Available Gists

Projects

  • init {to:'.'} project Empty .NET Core 2.2 ServiceStack App
  • init-lts {to:'.'} project Empty .NET Core 2.1 LTS ServiceStack App
  • init-corefx {to:'.'} project Empty ASP.NET Core 2.1 LTS on .NET Framework
  • init-sharp-app {to:'.'} project Empty ServiceStack Sharp App

UI Starter Templates

  • bootstrap-sharp {to:'$HOST'} ui,sharp Bootstrap + Sharp Pages Starter Template

Data

  • redis {to:'$HOST'} db Use ServiceStack.Redis
  • sqlserver {to:'$HOST'} db Use OrmLite with SQL Server
  • sqlite {to:'$HOST'} db Use OrmLite with SQLite
  • postgres {to:'$HOST'} db Use OrmLite with PostgreSQL
  • mysql {to:'$HOST'} db Use OrmLite with MySql
  • oracle {to:'$HOST'} db Use OrmLite with Oracle
  • firebird {to:'$HOST'} db Use OrmLite with Firebird
  • dynamodb {to:'$HOST'} db Use AWS DynamoDB and PocoDynamo
  • mongodb {to:'$HOST'} db Use MongoDB
  • ravendb {to:'$HOST'} db Use RavenDB
  • marten {to:'$HOST'} db Use Marten NoSQL with PostgreSQL

Auth

  • auth {to:'$HOST'} auth Configure AuthFeature
  • auth-db {to:'$HOST'} auth Use OrmLite Auth Repository (requires auth)
  • auth-redis {to:'$HOST'} auth Use Redis Auth Repository (requires auth)
  • auth-memory {to:'$HOST'} auth Use Memory Auth Repository (requires auth)
  • auth-dynamodb {to:'$HOST'} auth Use DynamoDB Auth Repository (requires auth)
  • auth-mongodb {to:'$HOST'} auth Use MongoDB Auth Repository (requires auth)
  • auth-ravendb {to:'$HOST'} auth Use RavenDB Auth Repository (requires auth)
  • auth-marten {to:'$HOST'} auth Use Marten Auth Repository (requires auth)

Messaging (MQ)

  • backgroundmq {to:'$HOST'} mq Use Memory Background MQ
  • rabbitmq {to:'$HOST'} mq Use RabbitMQ
  • sqs {to:'$HOST'} mq Use AWS SQS MQ
  • servicebus {to:'$HOST'} mq Use Azure Service Bus MQ
  • redismq {to:'$HOST'} mq Use Redis MQ

Libraries

  • vue-lite-lib {to:'$HOST'} lib,vue Update vue-lite projects libraries
  • react-lite-lib {to:'$HOST'} lib,react Update react-lite projects libraries

Examples

Features

  • feature-mq {to:'$HOST'} feature,mq,sharp Simple MQ Feature to test sending Messages
  • feature-authrepo {to:'$HOST'} feature,auth,sharp List and Search Users registered in Auth Repository

Config

  • nginx {to:'/etc/nginx/sites-available/'} config Nginx reverse proxy config for .NET Core Apps
  • supervisor {to:'/etc/supervisor/conf.d/'} config Supervisor config for managed execution of .NET Core Apps
  • docker {to:'.'} config Dockerfile example for .NET Core Sharp Apps

SVG

  • svg-action {to:'svg/'} svg Material Design Action Icons
  • svg-alert {to:'svg/'} svg Material Design Alert Icons
  • svg-av {to:'svg/'} svg Material Design Audio Visual Icons
  • svg-communication {to:'svg/'} svg Material Design Communication Icons
  • svg-content {to:'svg/'} svg Material Design Content Icons
  • svg-device {to:'svg/'} svg Material Design Device Icons
  • svg-editor {to:'svg/'} svg Material Design Editor Icons
  • svg-file {to:'svg/'} svg Material Design File Icons
  • svg-hardware {to:'svg/'} svg Material Design Hardware Icons
  • svg-image {to:'svg/'} svg Material Design Image Icons
  • svg-maps {to:'svg/'} svg Material Design Maps Icons
  • svg-navigation {to:'svg/'} svg Material Design Navigation Icons
  • svg-places {to:'svg/'} svg Material Design Places Icons
  • svg-social {to:'svg/'} svg Material Design Social Icons
  • svg-toggle {to:'svg/'} svg Material Design Toggle Icons

Including your Gists

To include your gist in this directory and make it available to all web tool users please post a link to your gist with your preferred alias in the comments below. Your chosen alias and gist description will be shown in the web + output listing.

Apply Gists

Usage: 
  web +                       Show available gists
  web +<name>                 Write gist files locally, e.g:
  web + #<tag>                Search available gists
  web gist <gist-id>          Write all Gist text files to current directory

Available Modifers

The modifiers next to each gist specify where the gist files should be written to:

  • {to:'.'} - Write to current directory (default)
  • {to:'$HOST'} - Write to host project (1st folder containing either appsettings.json,Web.config,App.config,Startup.cs)
  • {to:'wwwroot/'} - Write to first sub directories named wwwroot
  • {to:'package.json'} - Write to first directory containing package.json
  • {to:'/etc/nginx/sites-available/'} - Write to absolute folder
  • {to:'$HOME/.my-app/'} - Write to $HOME in unix or %USERPROFILE% on windows
  • {to:'${EnumName}/.my-app/'} - Write to Environment.SpecialFolder.{EnumName}, e.g:
  • {to:'$UserProfile/.my-app/'} - Write to Environment.SpecialFolder.UserProfile

File Name features

Use \ to in gist file names to write files to sub directories, e.g:

  • wwwroot\js\script.js - Writes gist file to wwwroot/js/script.js

Use ? at end of filename to indicate optional file that should not be overridden, e.g:

  • wwwroot\login.html? - Only writes to wwwroot\login.html if it doesn't already exist.

Replacement rules

Any gist file name or contents with different "MyApp" text styles will be replaced with the Project Name in that style, e.g:

  • MyApp will be replaced with ProjectName
  • my-app will be replaced with project-name
  • My App will be replaced with Project Name

Adding packages

To include nuget package dependencies, create a file in your gist called _init with the list of dotnet or nuget commands:

dotnet add package ServiceStack.OrmLite.Sqlite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment