Skip to content

chesiree-balogh/overflow

Repository files navigation

SDG Console template

This is the template app SDG uses to start off learning C# and .NET

What is does

This provides a basic console application with the following features:

  • A gitignore
  • A README
  • Tasks that allows users to push to GitHub Automatically.
  • EF Core integration
  • a basic React SPA + Web API
  • docker set up
  • Swagger documentations
  • CORS
  • Dependency Injection of DbContext
  • Scaffolding
  • React integration

How to work with Custom Templates

First, read the docs.

Now with that in mind, The project has 3 main parts:

  1. sdg-react-template.nuspec. This file contains the meta data for the package that is built, The only items that need touched are the <files> and the <version>

  2. SampleApp. This is sample project. Any changes to the template happen here.

  3. SampleApp\template.config. This contains the behavior of the package. This generally isn't touch unless you are changing the project type.

How to update something

To update, I would recommend opening just the SampleApp Folder and working in that project like it was just a normal C# app. Get things working and then test it out.

How to deploy

Install nuget and set your API key for nuget.org

  1. Delete the bin and the obj folder
  2. Bump the version number in the sdg-react-template.nuspec.
  3. run nuget pack .
  4. run nuget push SDG.templates.Web.React.X.X.X.nupkg -Source https://www.nuget.org with the correct version number

This will push it to Nuget. Nuget will index the package, and when it's done indexing (~ 1-30 minutes), it will available for install. To install on a students laptop

dotnet new --install SDG.templates.Web.React::X.X.X

To update after download, its the same command

dotnet new --install SDG.templates.Web.React::X.X.X

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published