Useful for building new ASP.Net Core API microservices
This quickstart clones the HANC repo, builds, and runs the application
- .NET Core https://www.microsoft.com/net/core
- GIT https://git-scm.com/downloads
- Postman https://www.getpostman.com/
-
Clone the HANC repo
git clone https://github.com/thewizster/hanc.git
-
Change into the AspNetAPI folder
cd hanc/AspNetAPI
-
Restore packages and build
dotnet restore && dotnet build
-
Run the app
dotnet run
Use Postman to test Hanc
-
Set postman to GET request for http://localhost:5000/api/hello
-
Set X-Hanc-Application-Id header in Postman request to some_key_value (see appsettings.json to change AppId)
-
Press send for the Postman GET request
- SQL server support via entity framework
- Message authentication option - HMAC(SHA256)
- API request authorization via app id/api key middleware
- Uses options pattern and DI for appsettings access
- Allows extending API via shared dbcontext model and controller libraries
- Azure integrations: File storage, DocumentDB, Insights