https://github.com/rakesh-kumar-t/AngularDotnetCore
Web Application with Angular and .NET Core(5.0)
https://github.com/rakesh-kumar-t/AngularDotnetCore
angular angular-api angular-app angular-material angularapp angularmaterial dotnet dotnet-core entity-framework entity-framework-core sql-server sqlserver swagger swagger-ui web-api web-api-core webapi webapi-core
Last synced: 10 months ago
JSON representation
Web Application with Angular and .NET Core(5.0)
- Host: GitHub
- URL: https://github.com/rakesh-kumar-t/AngularDotnetCore
- Owner: rakesh-kumar-t
- License: mit
- Created: 2021-11-22T16:26:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T14:54:11.000Z (over 3 years ago)
- Last Synced: 2024-07-29T20:01:15.928Z (over 1 year ago)
- Topics: angular, angular-api, angular-app, angular-material, angularapp, angularmaterial, dotnet, dotnet-core, entity-framework, entity-framework-core, sql-server, sqlserver, swagger, swagger-ui, web-api, web-api-core, webapi, webapi-core
- Language: TypeScript
- Homepage:
- Size: 659 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular - .NET Core APP
> Angular v13
> .Net 5.0
>


### Angular app with dotnet core web api and mssql as backend (Code first approach)
##### Some major Components Used
> Angular Material
> Swagger UI
> ngx-toastr
##### _points to note_
- Migration Commands (in Nuget console)
- `add migration `
- `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
### Known Errors
- 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
#### Extras
- 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`
# Creator
* [Rakesh Kumar T](https://github.com/rakesh-kumar-t)