A useful code structure for you, just coding, almost configuarations, features, useful thirdparty library already implemented .
TAGS: Web API, ASP.NET CORE 2.1, Entity Framework Core,AutoMapper, Repository Pattern,JWT - Json Web Token, Swagger.
dotnet restore
Windows:
dotnet restore
This project provided an neccessary code to build a web api project with net core. In this project:
- Generate database using entity framework code first.
- Using Generic Repository Pattern to CRUD on the database.
- Dependency Injection.
- Handing global exception.
- Using middleware.
- Authorization api with JWT.
- Implement Swagger UI.
- Automation testing.
- Sercurity with SSL.
For more update, please refer to the [Wiki][https://github.com/hieuxinhe/netcore-webapi-structure/wiki].
As a .NET Developer, I familiar with Visual Studio. But with .NET Core, you also use Visual studio code and build it with command line. For example
dotnet restore
dotnet run
- 0.1.0
- CHANGE: Update docs (module code remains unchanged)
- Fork it (https://github.com/hieuxinhe/netcore-webapi-structure/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request