This project is a Blog API developed using C# and SQL. It provides a RESTful API for managing blog articles and authors.This README file serves as a guide to understand and work with the project.
1- Microsoft Visual Studio.
2-.NET Core.
3- Entity Framework Core.
4- SQL Server or compatible database.
1- Clone or download the project repository.
2- Open the solution file "Blog API Project.sln" in Microsoft Visual Studio.
3- Restore the NuGet packages for the solution.
4- Update the database connection string in the appsettings.json file to point to your SQL Server or compatible database.
5- Build the solution to ensure all dependencies are resolved successfully.
6- Run the project to start the API.
The project uses the "appsettings.json" file to store configuration settings. Make sure to update the following settings based on your environment:
ConnectionStrings:"BlogCON" : Update the connection string to point to your SQL Server or compatible database.
The project follows a typical ASP.NET Core Web API structure with the following main components:
1- Models: Contains the entity models for blog articles and authors.
2- Repository: Implements the repository pattern with interfaces for data access.
3- Controllers: Contains the API endpoints for managing blog articles and authors.
- SQL Scheme for the Database implementation.
The project uses Entity Framework Core for database operations. Make sure to run the necessary migrations to create or update the database schema. Cross-Origin Resource Sharing (CORS) is enabled to allow requests from any origin. You can modify the CORS policy in the Program.cs file if needed.
Blog.API.-.Work.-.Microsoft.Edge.2024-01-20.19-50-56.online-video-cutter.com.mp4
If you encounter any issues or have any questions, please contact the developer.
To contact Developer: