ServiceStack has its strong foundations as a Web and MQ Services framework whose easy and versatile HTML support makes it the ideal services framework to create Backend Systems and Web APIs, Websites, Single Page Apps, Windows Services, Self-Hosting Console Apps and Rich OSX and Winforms Desktop Apps.
All ServiceStack Project Templates can be found and installed using the x new .NET Core tool that can be installed with:
dotnet tool install --global x
Or if you had a previous version installed, update with:
dotnet tool update -g x
x new to view the list of available project templates:
|.NET Core C# Templates|
|web||.NET 6 Empty Website|
|empty||.NET 6 Empty Single Project Website|
|web-tailwind||.NET 6 Empty Website + Tailwind|
|aws-lambda||.NET 6 Website configured for AWS Lambda Containers|
|blazor-tailwind||.NET 6 Blazor WASM + Tailwind Web App|
|blazor-server||.NET 6 Blazor Server + Tailwind Web App|
|blazor-wasm||.NET 6 Blazor WASM + Bootstrap Web App|
|angular-spa||.NET 6 Angular 9 CLI Bootstrap App|
|aurelia-spa||.NET 6 Aurelia CLI Bootstrap App|
|grpc||.NET 6 gRPC Services|
|mvc-tailwind||.NET 6 MVC EF and Identity Auth Website + Tailwind|
|mvc||.NET 6 MVC Website|
|mvcauth||.NET 6 MVC Website integrated with ServiceStack Auth|
|mvcidentity||.NET 6 MVC Website integrated with ServiceStack using MVC Identity Auth|
|mvcidentityserver||.NET 6 MVC Website integrated with ServiceStack using IdentityServer4 Auth|
|nextjs||.NET 6 Jamstack Next.js SSG React App|
|parcel||.NET 6 Parcel TypeScript App|
|razor-tailwind||.NET 6 Razor Pages + Tailwind Website|
|razor-pages||.NET 6 Razor Pages + Bootstrap Website|
|razor||.NET 6 Website with ServiceStack.Razor|
|react-lite||.NET 6 simple + lite (npm-free) React SPA using TypeScript|
|react-spa||.NET 6 React Create App CLI Bootstrap App|
|selfhost||.NET 6 self-hosting Console App|
|script||.NET 6 #Script Pages Bootstrap Website|
|svelte-spa||.NET 6 Svelte v3 Rollup Bootstrap App|
|vue-mjs||.NET 6 Simple, modern Vue 3 App using JS modules|
|vue-vite||.NET 6 Jamstack Vue Vite Tailwind App|
|vue-ssg||.NET 6 Jamstack Vue SSG App|
|vue-lite||.NET 6 simple + lite (npm-free) Vue SPA using TypeScript|
|vue-nuxt||.NET 6 Nuxt.js SPA App with Bootstrap|
|vue-spa||.NET 6 Vue CLI Bootstrap App|
|vuetify-nuxt||.NET 6 Nuxt.js SPA App with Material Vuetify|
|vuetify-spa||.NET 6 Vue CLI App with Material Vuetify|
|worker-rabbitmq||.NET 6 Rabbit MQ Worker Service|
|worker-redismq||.NET 6 Redis MQ Worker Service|
|worker-servicebus||.NET 6 Azure Service Bus MQ Worker Service|
|worker-sqs||.NET 6 AWS SQS MQ Worker Service|
|ASP.NET Core Framework Templates|
|web-corefx||.NET Framework ASP.NET Core Website|
|empty-corefx||.NET Framework ASP.NET Core Single Project Website|
|vue-lite-corefx||.NET Framework ASP.NET Core lite (npm-free) Vue SPA using TypeScript|
|react-lite-corefx||.NET Framework ASP.NET Core lite (npm-free) React SPA using TypeScript|
|script-corefx||.NET Framework ASP.NET Core #Script Pages Bootstrap Website|
|razor-corefx||.NET Framework ASP.NET Core Website with ServiceStack.Razor|
|mvc-corefx||.NET Framework ASP.NET Core MVC Website|
|selfhost-corefx||.NET Framework ASP.NET Core self-hosting Console App|
|.NET Framework C# Templates|
|angular-lite-spa-netfx||.NET Framework Angular 4 Material Design Lite Webpack App|
|angular-spa-netfx||.NET Framework Angular Bootstrap cli.angular.io App|
|aurelia-spa-netfx||.NET Framework Aurelia Bootstrap Webpack App|
|mvc-netfx||.NET Framework MVC Website|
|razor-netfx||.NET Framework Website with ServiceStack.Razor|
|react-desktop-apps-netfx||.NET Framework React Desktop Apps|
|react-spa-netfx||.NET Framework React Bootstrap Webpack App|
|selfhost-netfx||.NET Framework self-hosting HttpListener Console App|
|script-netfx||.NET Framework #Script Pages Bootstrap WebApp|
|vue-nuxt-netfx||.NET Framework Vue Nuxt.js SPA Web App|
|vue-spa-netfx||.NET Framework Vue Bootstrap Webpack App|
|vuetify-nuxt-netfx||.NET Framework Vuetify Material Nuxt.js SPA Web App|
|vuetify-spa-netfx||.NET Framework Vuetify Material Webpack App|
|web-netfx||.NET Framework Empty Website|
|winservice-netfx||.NET Framework Windows Service|
$ x new `<template>` `<name>`
For example to create a new Vue Single Page App, run:
x new vue-spa ProjectName
Alternatively you can write new project files directly into an empty repository using the Directory Name as the ProjectName:
$ git clone https://github.com/<User>/<ProjectName>.git $ cd <ProjectName> $ x new vue-spa
Or download a customized project template from our Getting Started Page:
ServiceStack is available in a number of popular starting configurations below:
It's quickly becoming the preferred architecture for modern web apps with benefits extending beyond performance to improved:
- Security from a reduced attack surface from hosting read-only static resources and requiring fewer App Servers
- Scale with non-essential load removed from App Servers to CDN's architecture capable of incredible scale & load capacity
- Maintainability resulting from reduced hosting complexity and the clean decoupling of UI and server logic
- Portability with your static UI assets being easily capable from being deployed and generically hosted from any CDN or web server
Ultimately, it's hosting your App's pre-rendered static UI assets on Content Delivery Network (CDN) edge caches close to users locations that's primarily responsible for its lightning performance.
Download new C# Jamstack Project Template
An updated list of available Jamstack project templates is also at https://jamstacks.net (built with Razor SSG)
The Blazor WebAssembly (WASM) template offers a pure end-to-end integrated C# solution to building a high performance web application with Blazor and ServiceStack. Due to the integrated dev model we've been able to achieve in Blazor it's become our preferred technology to use to develop Line of Business Apps since it's the only C# Razor solution adopting our preferred API First Development model with Web UIs reusing the same well-defined APIs as Mobile and Desktop Apps.
The razor-ssg ServiceStack template leverages the power of .NET Razor to provide seamless static site generation (SSG) capabilities. It's perfect for building content-rich applications like product websites, blogs, portfolios, and more.
This template streamlines the development process while offering versatility in customizing and extending your project. With GitHub Codespaces integration, you can develop, test, and manage your application all within your browser, eliminating the need for a dedicated development environment and expediting your workflow.
For those preferring working with React, there's a clear choice in Nextjs.org - currently the flagship & most popular Jamstack framework backed by the folks over at Vercel, where it enjoys deep engineering talent committed to maintaining and continually improving it, so you can be confident in the longevity of the technology and the React framework maintained by Meta (Facebook).
Vite is being built for speed in the modern era and takes advantage of modern browser features like native ES modules support to remove bundling entirely during development and adopts performance leading technologies like esbuild to pre-bundle dependencies and transpile TypeScript which is able to do 20-30x faster than TypeScript's own
Ultimately its architectural choices allows Vite to deliver Lightning Fast Hot Module Reload (HMR) to remain at the developer-experience forefront of modern web development serving a growing ecosystem of frameworks with a rich typed suite of Universal Plugins.
All ServiceStack Single Page App templates are powered by Webpack which handles the development, testing and production builds of your Web App. See the Webpack Template Docs for an overview for how to utilize the templates features.
This project lets you create a .NET 6 empty ServiceStack web project ready for deployment as a AWS Lambda Function wired with API GateWay and packaged via a Docker image.
Website Templates contain popular starting Templates for creating Server HTML Generated Websites and HTTP APIs with ServiceStack.
Popular starting templates for creating ASP.NET Core templates on the .NET Framework.
Desktop Templates for packaging your ServiceStack Web App into different Native Desktop UIs.
ServiceStackVS supports Visual Studio 2019-2022 and can be installed from within VS.NET:
Install the ServiceStackVS VS.NET Extension by going to
Tools > Extensions and Updates...
Then searching the Visual Studio Gallery for ServiceStack
Optionally it can be downloaded and installed from the VS.NET Gallery
For older versions, see the install ServiceStackVS page for more options.
The Example projects below contain a working demo including further documentation about each of their templates they were built with:
React Desktop Apps take advantage of the adaptability, navigation and deep-linking benefits of a Web-based UI, the productivity and responsiveness of the React framework, the performance, rich features and functionality contained in ServiceStack and the .NET Framework combined with the native experience and OS Integration possible from a Native Desktop App - all within a single VS .NET template!
The ReactJS App Template enables an optimal iterative dev experience for creating optimized Single Page React.js Apps. It shares the same approach for developing modern Single Page Apps in VS.NET as the AngularJS App Template by leveraging the node.js ecosystem for managing all aspects of Client App development and using the best-in-class libraries.
- Hosting an ember-cli app inside a ServiceStack (or any) MVC app by @wayne_douglas
- ServiceStack + AngularDart - Getting Started by @layoric
- License manager for Portable.Licensing using AngularJS and ServiceStack by @dnauck
- StarBucks-like real-time ordering fulfillment Single Page App built with ServiceStack, AngularJS, SignalR and Redis by @paaschpa
- Some thoughts in between SPA projects by @joeriks
- Zippy Tips Working With ServiceStack, Backbone.js, jQuery & Mono-Develop on Mac by Jacques du Preez
- Meal planning per configured interval powered by AngularJS, Bower and GruntJS
- Backbone.js + Twitter Social Bootstrap API
- StackOverflow clone with Redis back-end
- Redis Admin UI built with Google Closure Library
- Backbone Todos with Redis back-end
- GitHub-like browser with complete remote file management over REST
- ServiceStack Docs with PushState support
- Angular JS View in RazorRockstars