.NET Boxed

Dotnet Boxed

.NET Boxed is a set of project templates with batteries included, providing the minimum amount of code required to get you going faster. Right now it includes API and GraphQL project templates.

ASP.NET Core API Boxed

The default ASP.NET Core API Boxed options will give you an API with Swagger, ASP.NET Core versioning, HTTPS and much more enabled right out of the box. You can totally turn any of that off if you want to, the point is that it's up to you.

ASP.NET Core API Boxed Preview

ASP.NET Core GraphQL Boxed

If you haven't read about or learned GraphQL yet, I really suggest you go and follow their short online tutorial. It's got some distinct advantages over standard REST'ful API's (and some disadvantages but in my opinion the advantages carry more weight).

Once you've done that, the next thing I suggest you do is to create a project from the ASP.NET Core GraphQL Boxed project template. It implements the GraphQL specification using GraphQL.NET and a few other NuGet packages. It also comes with a really cool GraphQL playground, so you can practice writing queries, mutations and subscriptions.

ASP.NET Core GraphQL Boxed Preview

This is the only GraphQL project template that I'm aware of at the time of writing and it's pretty fully featured with sample queries, mutations and subscriptions.

ASP.NET Core Boilerplate

.NET Boxed used to be called ASP.NET Core Boilerplate. That name was kind of forgettable and there was another great project that had a very similar name. I put off renaming for a long time because it was too much work but I finally relented and got it done.

In the end I think it was for the best. The new .NET Boxed branding and logo are much better and I've opened it up to .NET project templates in general, instead of just ASP.NET Core project templates.

Thanks to Jon Galloway and Jason Follas for helping to work out the branding.

How can I get it?

  1. Install the latest .NET Core SDK.
  2. Run dotnet new --install "Boxed.Templates::*" to install the project template.
  3. Run dotnet new api --help to see how to select the feature of the project.
  4. Run dotnet new api --name "MyTemplate" along with any other custom options to create a project from the template.

Boxed Updates

There are new features and improvements planned on the GitHub projects tab. ASP.NET Core 2.1 is coming out soon, so look out for updates which you can see in the GitHub releases tab when they go live.

Web Mentions

What's this?

0 Replies

GitHub Comments

RehanSaeed

WBClark WBClark commented on 2018-06-12 22:17:07

This is fun and I'm excited to see it all, but I'm still working on .net 4 applications and see that NWebsec just updated so that hashes can be used in CSP now. Are you dropping support for the boilerplate where it isn't a part of Boxed? Has it been updated to use the new NWebsec?

RehanSaeed

Muhammad Rehan Saeed Muhammad Rehan Saeed commented on 2018-06-13 09:31:06

This is fun and I'm excited to see it all, but I'm still working on .net 4 applications and see that NWebsec just updated so that hashes can be used in CSP now. Are you dropping support for the boilerplate where it isn't a part of Boxed? Has it been updated to use the new NWebsec?

The MVC 5 project template is still available as a Boilerplate Visual Studio extension. I'm not going to take that down any time soon as people still use it. That said, I haven't made updates to it in some time.

Right now, with .NET Boxed, I have a fully featured API and GraphQL project template that I intend to improve in the near term. I intend to make another website template but choosing a web framework is a hard choice but I'll probably end up picking Blazor.

RehanSaeed

WBClark WBClark commented on 2018-06-13 18:14:38

We fully intend to migrate to Core and the boilerplate has had a big part in our meeting our security targets while learning .net and the galaxy of other things associated with it. We are currently finalizing a site that will sit on a public server and I would like to use hashes for CSP for that project, but long term I can see us struggling without something like the MVC boilerplate to help. Thank you for your excellent work in that.

RehanSaeed

Muhammad Rehan Saeed Muhammad Rehan Saeed commented on 2018-06-24 13:23:57

We fully intend to migrate to Core and the boilerplate has had a big part in our meeting our security targets while learning .net and the galaxy of other things associated with it. We are currently finalizing a site that will sit on a public server and I would like to use hashes for CSP for that project, but long term I can see us struggling without something like the MVC boilerplate to help. Thank you for your excellent work in that.

Good to hear that my code has been of some help.