• Stars
    star
    354
  • Rank 120,042 (Top 3 %)
  • Language
    C#
  • License
    MIT License
  • Created about 6 years ago
  • Updated about 2 years ago

Reviews

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

Repository Details

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

AspNetCoreApiStarter

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

Setup

  • Uses Sql Server Express LocalDB (If using Visual Studio install it under Individual Components in the Visual Studio installer or install separately using this link.
  • Apply database migrations to create the db. From a command line within the Web.Api.Infrastructure project folder use the dotnet CLI to run :
  • Web.Api.Infrastructure>dotnet ef database update --context AppDbContext
  • Web.Api.Infrastructure>dotnet ef database update --context AppIdentityDbContext

Visual Studio

Open the solution file AspNetCoreApiStarter.sln and build/run.

Visual Studio Code

Open the src folder and F5 to build/run.

Swagger Enabled

To explore and test the available APIs simply run the project and use the Swagger UI.

The available APIs include:

  • POST /api/accounts - Creates a new user.
  • POST /api/auth/login - Authenticates a user.
  • POST /api/auth/refreshtoken - Refreshes expired access tokens.
  • GET /api/protected - Protected controller for testing role-based authorization.

Contact

[email protected]

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

ASPNetCoreGraphQL

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

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
7

CleanArchitecture

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

VueASPNETCore2WebApiAuth

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.
C#
111
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