rakesh-kumar-t/AngularDotnetCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular v13

.Net 5.0

.NET BuildAngular Build

Angular Material

Swagger UI

ngx-toastr

  • Migration Commands (in Nuget console)

    • add migration <name>
    • update-database
  • Use inbuilt Swagger or else postman and use the APIs to add some dummy data to table

  • Run the WebAPI first(recommeneded to run from visual studio)

  • Then run the angular app

    • npm i
    • ng serve
  • If converting to db first approach

    • SQL Commands for creating the tables are provided in dbcommands folder
  • If any error pops up regarding namespaces, add the reference to the DataAccess project or dll from the webapi project
  • If angular app is giving any compilation error, run npm i again
  • If you are planning on a db first approach to modify the project
    • Command for creating models from db
      • scaffold-dbcontext "Data Source=.;Initial Catalog=CompanyDB; Integrated Security=true" Microsoft.EntityFrameworkCore.SqlServer -outputdir Models