A Sample Project built using .Net 6 as backend and Microsoft's SQL Server as Database (Dapper is the ORM being used).
- The Backend (API Endpoints) are built using a 3-Layered Architecture as listed below
- Presentational Layer - using which the user will interact (in this case the user will interact through the Swagger).
- Business Layer - contains all the business logic of the application.
- Data Access Layer - will be responsible for all the database operations.
- This project makes use of numerous helpful concepts like AutoMapper, Dependency Injection, Blow Fish Encryption, CORS.
- This project includes the swagger documentation of all the API Endpoints exposed making it simpler for the Front-end Developers getting familiar with the API endpoints and the request pay load.
- This project is built using Single Responsibilty Repository Pattern (means there is a specific repository for each of the table/model concerned).
- This project depends on JWT (Json Web Token) for Authorization of API Endpoints.
Before running this project on your local maching, one should have the following tools being installed.
- Visual Studio 2022
- Microsoft SQL Server Management Studio (Version 18.10.1 or above). Once the tools are installed, follow below steps to run the code on your local machine
- Clone the Project's repo on your local machine.
- Using the SampleProject.Database project (included with-in the application), Create a database on your machine.
- Replace the connection string in the appsettings.json file (to run code in Release mode (Ctrl+F5)) and appsettings.Development.json file (to run code in Debug mode (F5)) - file can be found under SampleProject.API project.
- Using Swagger you can execute and test the APIs.
- If someone having familarity with Postman, he/she can import the Postman Collection using the Sample Project.postman_collection.json (found in the project directory)
For any queries and suggestions, kindly raise a issue.
If you want to learn more about creating good readme files then refer the following guidelines. You can also seek inspiration from the below readme files: