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.
- 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
To build and run the project:
- Restore nuget packages with
backend\AuthWebApi>dotnet restore
in thebackend\AuthWebApi
directory. - Create the database with
backend\AuthWebApi>dotnet ef database update
in thebackend\AuthWebApi
directory. - Run the project with
backend\AuthWebApi>dotnet run
in thebackend\AuthWebApi
directory.
- Install npm packages with
frontend>npm install
in thefrontend
directory. - Start the application with the node development serve
frontend>npm run serve
in thefrontend
directory.
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.