dotnet new _

Search
downloads: 250,605,495 templates: 4,173
downloads: 51,516 by: damienbod
  • icon
  • Install the template (it will download from nuget automatically): > dotnet new -i Softlion.NotionSharp.TemplateProjects Get help on parameters for this template: > dotnet new blazorblog --help -p|--page Title of a page on Notion which contains all the pages of the blog string - Required -k|--key value of the notion tokenV2 cookie string - Optional Default: __YourNotionKey__ -b|--browserId value of the notion browserId cookie Guid - Optional Default: __YourNotionBrowserId__ -us|--userId value of the notion userId cookie Guid - Optional Default: __YourNotionUserId__ Create a new website in the current folder, using this template: > dotnet new blazorblog --page "My Public Blog" --key xxXxxXXxxXxxxXXxxx...xxXxxX --browserId aabbccdd-aabb-aabb-aabb-aabbccddaabb --userId eeffeeff-eeff-eeff-eeff-eeffeeffeeff You can also use this simple command: > dotnet new blazorblog --page "My Public Blog" But if you do so, you should add the values as user secrets (remember that secrets work in debug mode only): > dotnet user-secrets init > dotnet user-secrets set "Notion:Key" "xxXxxXXxxXxxxXXxxx...xxXxxX" > dotnet user-secrets set "Notion:BrowserId" "aabbccdd-aabb-aabb-aabb-aabbccddaabb" > dotnet user-secrets set "Notion:UserId" "eeffeeff-eeff-eeff-eeff-eeffeeffeeff" > dotnet user-secrets set "Notion:CmsPageTitle" "Public blog" To uninstall this template: > dotnet new -u Softlion.NotionSharp.TemplateProject.Blog To list all installed templates and get uninstall instructions: > dotnet new --uninstall --help To build a docker image of the blazor blog and test it: right clic the project, clic Publish then choose Docker. Or use these commands: > docker build -t yourdockerhub.com/demonotionblog:1.0.0 . > docker run -p8080:5000 yourdockerhub.com/demonotionblog:1.0.0 > start http://localhost:8080/ Don't forget to set up your notion keys in appsettings.Production.json before, as user secrets are not used in Release mode. Note: the prebuilt docker image vapolia/demonotionblog:latest is made for helm and is missing the appsettings-secrets.Production.json file. To push the blog to a kubernetes cluster: > helm upgrade demonotionblog helm\notionsharpblog --install -f your-value.yaml --dry-run > start http://localhost:5080/ Check helm\notionsharpblog\values.yaml for the available values. Example of a simple your-values.yaml file suitable for minikube: appSettingsSecrets: appsettings-secrets.Production.json: |- { "Notion": { "Key": "aabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccddaabbccdd", "BrowserId": "aabbccdd-aabb-aabb-aabb-aabbccddaabb", "UserId": "eeffeeff-eeff-eeff-eeff-eeffeeffeeff", "CmsPageTitle": "My Blog" } } #For minikube only service: type: LoadBalancer port: 5080
downloads: 51,512 by: Benjamin Mayrargue
downloads: 50,311 by: 'GtkSharp Contributors'
downloads: 50,230 by: Microsoft
downloads: 49,833 by: meshmakers GmbH and Contributors
downloads: 49,275 by: Vladislav Antonyuk
downloads: 48,005 by: Chad Lee,William Sossamon
downloads: 47,579 by: Ryan Gunner
downloads: 46,981 by: Microsoft
downloads: 46,380 by: Nocco Giovanni Emanuele
downloads: 46,088 by: Microsoft
  • icon
  • The AvantiPoint Packages Templates gives you a quick start template for setting up an in house AspNetCore NuGet Api. This integrates with Azure Active Directory to allow members of your domain to quickly and easily log in and setup a Feed Auth Token. In addition to that it will handle some standard event triggers to notify users when packages and symbols are uploaded with their auth token.
downloads: 45,939 by: AvantiPoint
downloads: 44,340 by: Florian Rappl
downloads: 43,859 by: bit platform
downloads: 43,626 by: Argo Zhang(argo@163.com)
downloads: 43,181 by: Suncoast Developers Guild
  • icon
  • The API Solution Template popularized by Shady Nagy. Provides a great starting point for modern and/or DDD solutions built with .NET 6 and C# 10. Features zero tight coupling to database or data access technology. This template based on my friend Template Ardalis.CleanArchitecture.
downloads: 42,937 by: Shady Nagy
downloads: 42,890 by: bit platform
downloads: 42,652 by: peachpie, Petr Houska, Jakub Misek
downloads: 42,616 by: HQ.IO Corporation