All Projects → asadsahi → Aspnetcorespa

asadsahi / Aspnetcorespa

Licence: mit
Asp.Net 5.0 & Angular 11 SPA Fullstack application with plenty of examples. Live demo:

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Aspnetcorespa

angular-karma test-explorer
vscode extension for easy angular testing and debugging
Stars: ✭ 67 (-94.47%)
Mutual labels:  unit-testing, angular-cli
Clicker
Ionic 2 + @angular/cli Seed Project : Angular2 + Typescript + Karma + Protractor + Travis
Stars: ✭ 439 (-63.75%)
Mutual labels:  unit-testing, angular-cli
Identityserver4aspnetcoreidentitytemplate
An ASP.NET Core 3.1 IdentityServer4 Identity Bootstrap 4 template with localization
Stars: ✭ 262 (-78.36%)
Mutual labels:  aspnetcore, identityserver4
MonolithicArchitecture
This repository presents an approach on how to build an application using Monolithic architecture, ASP.NET Core, EntityFrameworkCore, Identity Server, CQRS, DDD
Stars: ✭ 18 (-98.51%)
Mutual labels:  aspnetcore, identityserver4
Aspnetcore Tests Sample
A project to help demonstrate how to do unit, integration and acceptance tests with an web api project using ASP.NET Core and Angular 7 front end.
Stars: ✭ 40 (-96.7%)
Mutual labels:  aspnetcore, unit-testing
BlazorDemo
Demo application for my writings about Blazor
Stars: ✭ 79 (-93.48%)
Mutual labels:  spa, aspnetcore
Unit Testing Tips
Unit testing tips by examples in PHP
Stars: ✭ 318 (-73.74%)
Mutual labels:  best-practices, unit-testing
ASP.NET-Core-Web-API-Best-Practices-Guide
ASP.NET Core Web API Best Practices Guide
Stars: ✭ 62 (-94.88%)
Mutual labels:  aspnetcore, best-practices
Viewinspector
Runtime introspection and unit testing of SwiftUI views
Stars: ✭ 746 (-38.4%)
Mutual labels:  best-practices, unit-testing
Jpproject.identityserver4.adminui
🔧 ASP.NET Core 3 & Angular 8 Administration Panel for 💞IdentityServer4 and ASP.NET Core Identity
Stars: ✭ 717 (-40.79%)
Mutual labels:  aspnetcore, identityserver4
run-aspnet-identityserver4
Secure microservices with using standalone Identity Server 4 and backing with Ocelot API Gateway. Protect our ASP.NET Web MVC and API applications with using OAuth 2 and OpenID Connect in IdentityServer4. Securing your web application and API with tokens, working with claims, authentication and authorization middlewares and applying policies.
Stars: ✭ 159 (-86.87%)
Mutual labels:  aspnetcore, identityserver4
React Cool Starter
😎 🐣 A starter boilerplate for a universal web app with the best development experience and a focus on performance and best practices.
Stars: ✭ 1,083 (-10.57%)
Mutual labels:  best-practices, unit-testing
bce.design
minimal magic, minimal tooling, essential dependencies, high productivity, no transpilations and no migrations. The Web Components starter ships with integrated lit-html, redux-toolkit and vaadin router components.
Stars: ✭ 67 (-94.47%)
Mutual labels:  spa, best-practices
angular-unit-testing-examples
Showroom for different Angular unit testing concepts
Stars: ✭ 19 (-98.43%)
Mutual labels:  unit-testing, angular-cli
Authentication
Authentication examples for AspNetCore 3.1
Stars: ✭ 37 (-96.94%)
Mutual labels:  aspnetcore, identityserver4
Angularaspnetcoreoauth
Sample project demonstrating user authentication and identity with Angular, Asp.Net Core and IdentityServer4
Stars: ✭ 268 (-77.87%)
Mutual labels:  aspnetcore, identityserver4
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 (-93.64%)
Mutual labels:  aspnetcore, identityserver4
enterprise-angular-seed
Angular CLI based seed application incorporating many best practices typically needed in Enterprise apps.
Stars: ✭ 62 (-94.88%)
Mutual labels:  best-practices, angular-cli
Aspnet5identityserverangularimplicitflow
OpenID Connect Code / Implicit Flow with Angular and ASP.NET Core 5 IdentityServer4
Stars: ✭ 670 (-44.67%)
Mutual labels:  aspnetcore, identityserver4
Buildingblocks
Building blocks for Aspnet Core Microservices Development
Stars: ✭ 43 (-96.45%)
Mutual labels:  aspnetcore, identityserver4

Actions Status Web Actions Status STS Build Status Build status MIT license

Features

Pre-requisites

  1. .Net 5.0 SDK
  2. Visual studio 2019 OR VSCode with C# extension
  3. NodeJs (Latest LTS)
  4. Microsoft SQL Server (Optional: If MS SQL server required instead of Sqlite during development)
  5. Docker (Optional: If application will run inside docker container)

Installation

  1. Clone the repo:

    git clone https://github.com/asadsahi/AspNetCoreSpa

  2. Change directory:

    cd AspNetCoreSpa

  3. Restore packages:

    dotnet restore AspNetCoreSpa.sln

  4. Install npm packages:

    • cd src/Presentation/Web/ClientApp:

    • npm install

  5. Start Frontend:

    • npm start
  6. Run Backend:

    • Using VSCode:

      • If you are running for the first time, install dev certificates using command:
      dotnet dev-certs https --trust
      
      • From debug menu select Web profile to run api application
      • From debug menu select STS profile to run Identity Server application
    • Using Visual Studio IDE:

      • Run Web and STS projects either individually or by setting multiple projects in solutions properties and hit F5
  7. Target either Sqlite or Microsoft SQL Server

This project supports both databases OOTB.

  • Run with Sqlite: (Already configured to quickly run the project)

    • Project is already setup with Sqlite specific database migrations
  • Run with Microsoft SQL Server:

    • Delete Migrations folder from src/Infrastructure/Infrastructure/Persistence
    • Change setting in appsettings.json called useSqLite from true to false and change Web connection string to your local Sql Server connection string
  1. Once the project is running use following test users to login:

    2 Test users: Username: [email protected] Password: [email protected]! OR Username: [email protected] Password: [email protected]!

    Note: For production use Identity server hosted with appropriate configuration.

Managing Migrations

Make sure you have ef core global tools installed

dotnet tool install --global dotnet-ef

Web Migrations

Using command line (from root of the project)

Create Migration

dotnet ef migrations add migrationname --startup-project ./src/Presentation/Web --project ./src/Infrastructure/Infrastructure --context ApplicationDbContext -o Persistence/Migrations

Update database

dotnet ef database update --startup-project ./src/Presentation/Web --project ./src/Infrastructure/Infrastructure --context ApplicationDbContext

Drop database

dotnet ef database drop --startup-project ./src/Presentation/Web --project ./src/Infrastructure/Infrastructure --context ApplicationDbContext

Localization Migrations

Using command line (from root of the project)

Create Migration

dotnet ef migrations add migrationname --startup-project ./src/Presentation/Web --project ./src/Infrastructure/Infrastructure --context LocalizationDbContext -o Localization/Migrations

Update database

dotnet ef database update --startup-project ./src/Presentation/Web --project ./src/Infrastructure/Infrastructure --context LocalizationDbContext

Drop database

dotnet ef database drop --startup-project ./src/Presentation/Web --project ./src/Infrastructure/Infrastructure --context LocalizationDbContext

Identity Migrations

Using command line (from root of the project)

Create Migration

dotnet ef migrations add migrationname --startup-project ./src/Presentation/STS --project ./src/Infrastructure/Infrastructure --context IdentityServerDbContext -o Identity/Migrations

Update database

dotnet ef database update --startup-project ./src/Presentation/STS --project ./src/Infrastructure/Infrastructure --context IdentityServerDbContext

Drop database

dotnet ef database drop --startup-project ./src/Presentation/STS --project ./src/Infrastructure/Infrastructure --context IdentityServerDbContext

Other commands

Angular component scaffolding

Note: You need to run commands from src/Presentation/Web/ClientApp directory: More information here

Angular tests - Using Jest and Angular jest preset

cd src/Presentation/Web/ClientApp

npm test

Compodoc Angular documentation

  • Steps to generate:
    • npm i compodoc -g
    • cd src/Presentation/Web/ClientApp
    • npm run compodoc
    • cd documentation
    • http-server

Compodoc documentation: alt text

### run end-to-end tests
```bash
# make sure you have your server running in another terminal (i.e run "dotnet run" command)
npm run e2e

run Protractor's elementExplorer (for end-to-end)

npm run webdriver:start
# in another terminal
npm run e2e:live

Azure Deploy

  • You can set an environment variable for azure app deployment password Set-Item -path env:AzureAppPass -value passwordhere
From powershell:
./deploy-azure.ps1

Deploy to heroku using its container service

Replace your app name where it is aspnetcorespa

  • dotnet publish -c release
  • docker build -t aspnetcorespa ./bin/release/net5.0/publish
  • heroku login
  • heroku container:login
  • docker tag aspnetcorespa registry.heroku.com/aspnetcorespa/web
  • docker push registry.heroku.com/aspnetcorespa/web Note: There is a deploy.heroku.ps1 script included with this project which automates above steps.

Deploy to Azure as App Service

Set-Item -path env:AzureAppPass -value passwordhere

From powershell:
./deploy-azure.ps1

paypal

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].