AspNetCoreSpa | Net 7.0 & Angular 15 SPA Fullstack application | Authentication library
kandi X-RAY | AspNetCoreSpa Summary
kandi X-RAY | AspNetCoreSpa Summary
Asp.Net 7.0 & Angular 15 SPA Fullstack application with plenty of examples. Live demo:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AspNetCoreSpa
AspNetCoreSpa Key Features
AspNetCoreSpa Examples and Code Snippets
Community Discussions
Trending Discussions on AspNetCoreSpa
QUESTION
I did try these two templates:
https://github.com/asadsahi/AspNetCoreSpa
https://github.com/MarkPieszak/aspnetcore-angular2-universal
But in both cases ended up with something not working property.
I just wonder if it is possible to somehow run AngularCLI on top of .net core? 'Im new to Angular, so bear with me please.
I'm looking for something which will give me all the sweets like AOT,DLL, TreeShaking with a minimal/zero configuration on my side.
...ANSWER
Answered 2017-May-16 at 16:49.NET Core on the backend does not care what framework you use on the frontend. Angular's Http module will call your .NET Core WebApi backend endpoint.
During development, you will typically build the Angular CLI TypeScript project with ng serve
and build the backend inside Visual Studio.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AspNetCoreSpa
Clone the repo: git clone https://github.com/asadsahi/AspNetCoreSpa
Change directory: cd AspNetCoreSpa
Restore packages: dotnet restore AspNetCoreSpa.sln
Install npm packages: cd src/Presentation/Web/ClientApp: npm install
Start Frontend: npm start
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
Target either Sqlite or Microsoft SQL Server
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
Once the project is running use following test users to login: 2 Test users: Username: admin@admin.com Password: P@ssw0rd! OR Username: user@user.com Password: P@ssw0rd! Note: For production use Identity server hosted with appropriate configuration.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page