Pokemon Review App is a simple RESTful
web API built using .NET Core version 8.0. It allows users to review Pokemon, utilizing six main entities: Pokemon, Reviewer, Review, Owner, Category, and Country. The database is created using Entity Framework Core
's Code First approach, with SQL Server
as the database provider.
Building this project helped me to get a grasp on crucial concepts and technologies such as Repository Design Pattern
, Dependency Injection
, and EF Core Object Relational Mapper.
- Implements a Controller-based API
- Utilizes AutoMapper for mapping between domain models and DTOs
- Includes a class for seeding the database with fake data
Before running the project, ensure you have the following installed:
- .NET SDK 8.0
-
Clone the repository:
git clone [email protected]:obay-ismaeel/PokemonReviewApp.git
-
Navigate to the project directory:
cd [project directory]
-
Run the project:
dotnet run
-
Once the project is built, navigate to the URL displayed and append "/swagger" to the end of the URL to access the Swagger UI for testing the API. Ensure to configure the connection string in the
appsettings.json
file.
- AutoMapper.Extensions.Microsoft.DependencyInjection Version=12.0.1
- Microsoft.AspNetCore.OpenApi Version=8.0.1
- Microsoft.EntityFrameworkCore.SqlServer Version=8.0.2
- Microsoft.EntityFrameworkCore.Tools Version=8.0.2
- Swashbuckle.AspNetCore Version=6.4.0
It's worth noting that you can use any database provider of your choice by installing the corresponding EF Core package and configuring the database connection.
Feel free to clone the repository, experiment with the code, and contribute by sending pull requests. Your contributions are welcome!
Let me know if you have any additional information or changes you'd like to make!