• Stars
    star
    111
  • Rank 314,510 (Top 7 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sample project demonstrating jwt-based authentication with an Vue.js (v2.5.13) frontend and ASP.NET Core 2 WebApi. Includes both local user registration with .NET Core Identity membership and facebook login scenarios.

VueASPNETCore2WebApiAuth

Sample project based on the blog post demonstrating jwt-based authentication with an Vue.js (v2.5.13) frontend and ASP.NET Core 2 WebApi. Includes both local user registration with .NET Core Identity membership and facebook login scenarios.

Facebook flow

Email flow

Development Environment

  • Sql Server Express 2017 & Sql Server Management Studio 2017
  • Visual Studio Code v1.20.1
  • Node 8.9.4 & NPM 5.6.0
  • .NET Core 2.0 sdk
  • Vue CLI => npm install -g @vue/cli https://github.com/vuejs/vue-cli
  • Vue 2.5.13

Setup

To build and run the project:

Build and run the backend ASP.NET Core Web API application:

  1. Restore nuget packages with backend\AuthWebApi>dotnet restore in the backend\AuthWebApi directory.
  2. Create the database with backend\AuthWebApi>dotnet ef database update in the backend\AuthWebApi directory.
  3. Run the project with backend\AuthWebApi>dotnet run in the backend\AuthWebApi directory.

Build and run the frontend Vue.js application:

  1. Install npm packages with frontend>npm install in the frontend directory.
  2. Start the application with the node development serve frontend>npm run serve in the frontend directory.

Facebook App Setup

You're free to use the demo facebook app Fullstack Cafe that the project is already configured with. To setup and use your own application follow the steps detailed on the post.

More Repositories

1

devfolio

A simple, responsive, single-page portfolio and resume for developers built with Bulma, Sass, Font Awesome and Flickity.
JavaScript
505
star
2

CleanAspNetCoreWebApi

Starter project for creating APIs built on ASP.NET Core using clean architecture.
C#
475
star
3

AngularASPNETCore2WebApiAuth

Sample project demonstrating jwt-based authentication with an Angular (v5.2.1) frontend and ASP.NET Core 2 WebApi. Includes both local user registration with .NET Core Identity membership and facebook login scenarios.
C#
472
star
4

AngularASPNETCoreOAuth

Sample project demonstrating user authentication and identity with Angular, Asp.Net Core and IdentityServer4
C#
354
star
5

AspNetCoreApiStarter

An ASP.NET Core (v2.1) Web API project to quickly bootstrap new projects. Includes Identity, JWT authentication w/ refresh tokens.
C#
354
star
6

ASPNetCoreGraphQL

Sample project demonstrating a GraphQL service built with ASP.NET Core 2.2, Entity Framework Core and graphql-dotnet.
C#
267
star
7

ASPNETCoreDockerMicroservices

Sample project for getting off the ground with ASP.NET Core, Docker and Microservices based on the tutorial: https://fullstackmark.com/post/12/get-started-building-microservices-with-asp.net-core-and-docker-in-visual-studio-code
C#
167
star
8

CleanArchitecture

Example from a post exploring CleanArchitecture: https://fullstackmark.com/post/11/better-software-design-with-clean-architecture
C#
135
star
9

fullstack-jobs

Real(ish) demo using Angular with ASP.NET Core GraphQL and IdentityServer.
C#
88
star
10

AngularASPNETCoreAuthentication

Complete user authentication example with Angular 4 and ASP.NET Core 1.0. There is a new version of this repo based on ASP.NET Core 2.0. Please see https://fullstackmark.com/post/13/jwt-authentication-with-aspnet-core-2-web-api-angular-5-net-core-identity-and-facebook-login for more information.
JavaScript
85
star
11

ApiIntegrationTestSamples

Demo project containing end-to-end, in-memory integration tests in ASP.NET Core 2.1
C#
65
star
12

open-standup-mobile

C#
16
star
13

XamFormsReactiveUI

A simple vocabulary app made with Xamarin Forms and ReactiveUI
C#
11
star
14

ASPNetCoreDIAndUnitTesting

C#
10
star
15

XamFormsWebSockets

C#
9
star
16

GetStartedAngularASPNetCore

JavaScript
7
star
17

dotnetCoreTDD

C#
5
star
18

web-api-scraper

C#
1
star
19

dotnet-git-hooks

This repo contains a sample project as part of a tutorial explaining how to set up Git hooks with Husky.Net. The tutorial shows you how to use Husky to add a couple of hooks in a .NET project to run the dotnet format and dotnet test commands during the Git workflow.
C#
1
star