A companion repo to the Nexul Academy Angular courses found here: https://www.nexulacademy.com/courseware
- Angular Fundamentals
- Angular Advanced
This repo is for anyone taking only the Angular classes. If you are in the full-stack program, then you will complete the code in this repo during the C# portions of the program.
Create a google app with these instructions and put the credentials in appsettings.development.json
you need to have Sql Express, or Sql Server Developer installed and a server instance. The migrations command below will create a database in that default database instance.
(Done) The EF migrations were already created for the C# models with this:
..\SimpleCrm.Web.Api> dotnet ef migrations add InitialCreate -p ../SimpleCrm.SqlDbServices/SimpleCrm.SqlDbServices.csproj -c SimpleCrmDbContext
(TODO) Run both migrations against your local database (from within a teminal in the Web api folder:)
..\SimpleCrm.Web.Api> dotnet ef database update -p ../SimpleCrm.SqlDbServices/SimpleCrm.SqlDbServices.csproj -c SimpleCrmDbContext
..\SimpleCrm.Web.Api> dotnet ef database update -p ../SimpleCrm.SqlDbServices/SimpleCrm.SqlDbServices.csproj -c CrmIdentityDbContext
If the commands say dotnet does not exist, then you are missing some command line tools. The fix can be found here:
https://learn.microsoft.com/en-us/ef/core/cli/dotnet
to summarize, run this in the terminal:
dotnet tool install --global dotnet-ef
- Open in Visual Studio 2022
- Set startup project to "SimpleCrm.Web.Api"
- Press F5, or "Run"
- An error page appears, a 404 page is missing where the Angular app you will build will load later.
- Navigate to /home to see the C# MVC home page.
During the advanced course, OAuth lessons you will connect this C# API to your Angular app. Then the Angular run output will appear at the localhost root.
The Angular project built during class should be added in the repo root folder and be called 'simple-crm-cli'