Skip to content

valkiara/WebAPICore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.Net core web-api boilerplate

GitHub License GitHub issues GitHub contributors

A boilerplate / template for a WebAPI server based on ASP.Net core.

Status: GitHub Workflow Status

Downloads: GitHub release

Scope

This API boilerplate includes the folllowing:

  • Role based JWT authentication.
  • Web API Helpers which standadizes responses, maps errors, etc...
  • An implmentation of CSV Error logger.
  • A business library and model projects for code separation.
  • A core library with the following
    • Custom data model attributes
    • Database adapter
    • Helper functions for hashing, encrypting, compression, etc...
  • A constants library for commonly used constants.

Notice

Before using the code in production

Change the following values
  • In Config.cs in Core.Constants
    1. Security.EncryptionKey
  • In appsettings.json
    1. Database connection string.
      • This string should be in ecrypted format. Encrypted with the new encryption key.
    2. JWT secret, issuer and audience
  • In launchsettings.json,
    1. Change SSL port
    2. Change applicationURL
  • In Base class in BusinessLib, uncomment the line that establishes db connection
Remove the following code
  • HelpersLib in BusineesLib
  • HelpersController in API

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages