All Projects → mattjcowan → servicestack-nuxt-example

mattjcowan / servicestack-nuxt-example

Licence: MIT license
A simple example of using nuxt for front-end development and ServiceStack for backend development

Programming Languages

Vue
7211 projects
C#
18002 projects
javascript
184084 projects - #8 most used programming language
SCSS
7915 projects

Projects that are alternatives of or similar to servicestack-nuxt-example

aspnetcore-service-fabric-hosting
This project is an extensions to ASP.NET Generic Host (HostBuilder) that simplifies development of Service Fabric Reliable Services.
Stars: ✭ 24 (-50%)
Mutual labels:  aspnetcore
Hexagonal-architecture-ASP.NET-Core
App generator API solution template which is built on Hexagnonal Architecture with all essential feature using .NET Core
Stars: ✭ 57 (+18.75%)
Mutual labels:  aspnetcore
MsCoreOne
MsCoreOne is a simple Ecommerce with using many technologies such as .NET 5, Entity Framework Core 5, React 16.13 with modern Clean Architecture, Domain-Driven Design, CQRS, SOLID, Identity Server 4, Blazor. It will focus on resolving the problems always see in the process to develop projects.
Stars: ✭ 77 (+60.42%)
Mutual labels:  aspnetcore
ASP.NET-Core-2.0-GraphQL-Sample
GraphQL sample project in ASP.NET Core 2.0
Stars: ✭ 26 (-45.83%)
Mutual labels:  aspnetcore
dotnet-minimal-api-integration-testing
An example of integration testing ASP.NET Core Minimal hosting and APIs
Stars: ✭ 237 (+393.75%)
Mutual labels:  aspnetcore
Home
Home for Blazor Extensions
Stars: ✭ 51 (+6.25%)
Mutual labels:  aspnetcore
https-aspnetcore-in-docker
ASP.NET Core app on HTTPS in Docker
Stars: ✭ 24 (-50%)
Mutual labels:  aspnetcore
GatewayService
GatewayService (Ocelot).
Stars: ✭ 19 (-60.42%)
Mutual labels:  aspnetcore
AspNetCore
App Metrics Extensions for AspNet Core
Stars: ✭ 52 (+8.33%)
Mutual labels:  aspnetcore
AspNetCoreIdentityEncryption
How to do manual encryption for ASP.NET Core Identity 2.1. Not that you should be doing it.
Stars: ✭ 51 (+6.25%)
Mutual labels:  aspnetcore
POS---Point-Of-Sales
Point of sales proof of concept developed using Asp.Net Core 2.2. Features: Customer, Vendor, Product, Purchase Order, Goods Receive, Sales Order, Inventory Transactions and POS form.
Stars: ✭ 120 (+150%)
Mutual labels:  aspnetcore
NHibernate.AspNetCore.Identity
ASP.NET Core Identity Provider for NHibernate
Stars: ✭ 54 (+12.5%)
Mutual labels:  aspnetcore
pineblog
A light-weight blogging engine written in ASP.NET Core MVC Razor Pages, using Entity Framework Core or MongoDb.
Stars: ✭ 60 (+25%)
Mutual labels:  aspnetcore
RabbitLight
A simple route-based RabbitMQ client for .NET
Stars: ✭ 11 (-77.08%)
Mutual labels:  aspnetcore
aspnetcore-authentication-apikey
Easy to use and very light weight Microsoft style API Key Authentication Implementation for ASP.NET Core. It can be setup so that it can accept API Key in Header, Authorization Header, QueryParams or HeaderOrQueryParams.
Stars: ✭ 215 (+347.92%)
Mutual labels:  aspnetcore
minimal-api-example
Original blog post: https://nikiforovall.github.io/dotnet/aspnetcore/2021/09/10/opinionated-minimal-api.html
Stars: ✭ 39 (-18.75%)
Mutual labels:  aspnetcore
MinimalApi
ASP.NET Core 7.0 - Minimal API Example - Todo API implementation using ASP.NET Core Minimal API, Entity Framework Core, Token authentication, Versioning, Unit Testing, Integration Testing and Open API.
Stars: ✭ 156 (+225%)
Mutual labels:  aspnetcore
pokeR
Planning poker with SignalR
Stars: ✭ 37 (-22.92%)
Mutual labels:  aspnetcore
ServiceStack.Webhooks
Add Webhooks to your ServiceStack services
Stars: ✭ 26 (-45.83%)
Mutual labels:  servicestack
StartupModules
Startup modules for ASP.NET Core.
Stars: ✭ 33 (-31.25%)
Mutual labels:  aspnetcore

Simple demo of using ServiceStack and Nuxt.js together

Modeled after https://github.com/nuxt/example-auth0, with a few additions (separation of backend from frontend, http proxy in dev mode, role-based visibility and functionality ...)

In this demo

servicestack-nuxt-example-thumb-video

Development

Install node packages

# cd into the 'frontend' directory
$ cd frontend

# install dependencies
$ npm install # Or yarn install

Run the ServiceStack backend (will automatically run dotnet restore, build, etc...)

To run ServiceStack, you'll need .NET Core 3.1

# start the ServiceStack backend in a terminal (from within the frontend directory)
$ npm run server

Alternatively, you can edit this script in 'package.json' to run dotnet watch, etc ...

Run the frontend

# serve with hot reload at localhost:3000, uses http-proxy to connect to ServiceStack api at localhost:5000
# make sure the backend is started first (use a API_URL env variable for a different api location)
$ npm run dev

Production

Front-end deployed to Node container

# build for production and launch server (make sure the API_URL env variable is set)
$ npm run build
$ npm start

Front-end deployed to ASP.NET CORE

Generate as a static project and merge the files into the ServiceStack asp.net project (generates and copies dist to wwwroot)

# (Optional) run the server so that required API calls are resolved during the generate process
npm run server
# generate the static app
npm run generate

Typically static pages would be generated against a remote API, in which case, setting an API_URL env variable in the command above would make sense, and there is no need to ever run a local version of the backend locally.

Furthermore, you could then separate the backend into it's own repo and split up nicely the dev effort between both for larger projects.

Changelog

  • 09/28/2020

    • Upgraded to Nuxt 2.14.5
    • Updated backend to aspnet core 3.1
    • Small refactors to simplify authentication a little further
  • 01/08/2018

    • Upgraded to Nuxt v2.3.4
    • Updated backend to aspnet core 2.2
    • Updated ServiceStack to latest v5 version
    • Added @nuxtjs/axios, @nuxtjs/proxy, @nuxtjs/auth modules
    • Refactored auth to use the auth module (a simpler implementation as a result)
  • 12/15/2017

    • Upgraded to ServiceStack v5
  • 10/23/2017

    • Upgraded Nuxt.js to 1.0.0-rc11, and ServiceStack to 1.0.44
  • 06/10/2017

    • Initial commit
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].