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.
File Explorer
Download Latest Version (.zip)- launch.json
- tasks.json
- IJwtFactory.cs
- JwtFactory.cs
- AccountsController.cs
- AuthController.cs
- DashboardController.cs
- ExternalAuthController.cs
- ApplicationDbContext.cs
- app.e2e-spec.ts
- app.po.ts
- tsconfig.e2e.json
- ResponseExtensions.cs
- Constants.cs
- Errors.cs
- Tokens.cs
- 20180104134211_initial.cs
- 20180104134211_initial.Designer.cs
- ApplicationDbContextModelSnapshot.cs
- AppUser.cs
- Customer.cs
- FacebookApiResponses.cs
- FacebookAuthSettings.cs
- JwtIssuerOptions.cs
- launchSettings.json
- facebook-login.component.html
- facebook-login.component.scss
- facebook-login.component.spec.ts
- facebook-login.component.ts
- login-form.component.html
- login-form.component.scss
- login-form.component.spec.ts
- login-form.component.ts
- registration-form.component.html
- registration-form.component.scss
- registration-form.component.spec.ts
- registration-form.component.ts
- account.module.ts
- account.routing.ts
- home.component.html
- home.component.scss
- home.component.spec.ts
- home.component.ts
- home.details.interface.ts
- root.component.html
- root.component.scss
- root.component.spec.ts
- root.component.ts
- dashboard.service.ts
- settings.component.html
- settings.component.scss
- settings.component.spec.ts
- settings.component.ts
- dashboard.module.ts
- dashboard.routing.ts
- email.validator.directive.ts
- focus.directive.ts
- header.component.html
- header.component.scss
- header.component.spec.ts
- header.component.ts
- home.component.html
- home.component.scss
- home.component.spec.ts
- home.component.ts
- credentials.interface.ts
- user.registration.interface.ts
- shared.module.ts
- base.service.ts
- user.service.ts
- config.service.ts
- spinner.component.html
- spinner.component.scss
- spinner.component.spec.ts
- spinner.component.ts
- app.component.html
- app.component.scss
- app.component.spec.ts
- app.component.ts
- app.module.ts
- app.routing.ts
- auth.guard.ts
- authenticate-xhr.backend.ts
- rxjs-operators.js
- .gitkeep
- facebook-login.png
- util.js
- environment.prod.ts
- environment.ts
- facebook-auth.html
- favicon.ico
- index.html
- main.ts
- npm-debug.log.141272917
- polyfills.ts
- styles.scss
- test.ts
- tsconfig.app.json
- tsconfig.spec.json
- typings.d.ts
- ViewModelToEntityMappingProfile.cs
- CredentialsViewModelValidator.cs
- RegistrationViewModelValidator.cs
- CredentialsViewModel.cs
- FacebookAuthViewModel.cs
- RegistrationViewModel.cs
- facebook-login.png
- util.js
- 3rdpartylicenses.txt
- facebook-auth.html
- favicon.ico
- index.html
- inline.b6708a750e679a974885.bundle.js
- main.1aad2c23f74b94cefc12.bundle.js
- polyfills.61df7d7ec492d95bb0b2.bundle.js
- styles.053af3a4d85fe061870e.bundle.css
- .angular-cli.json
- .editorconfig
- .gitignore
- AngularASPNETCore2WebApiAuth.csproj
- AngularASPNETCore2WebApiAuth.sln
- appsettings.Development.json
- appsettings.json
- karma.conf.js
- package-lock.json
- package.json
- Program.cs
- protractor.conf.js
- Startup.cs
- tsconfig.json
- tslint.json
- .gitignore
- LICENSE
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/mmacneil/AngularASPNETCore2WebApiAuth
Downloads the entire project code from GitHub to your computer.
cd AngularASPNETCore2WebApiAuth
Moves into the project folder you just downloaded.
2. .NET
Medium RecommendedPrerequisites
cd src
This project's files live in a subfolder, so move into it first.
dotnet restore
Downloads the packages the project depends on.
dotnet run
Builds the project and runs it immediately.
After dotnet run, check the message or address shown in the terminal.
3. Node.js
EasyPrerequisites
cd src
This project's files live in a subfolder, so move into it first.
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
// repository documentation
Was this content helpful?
(0 ratings)
