This project implements a kittens application similar to the Ruby on Rails version covered in The Odin Project's curriculum. Here, we'll achieve the same functionality using ASP.NET Core, Entity Framework Core (EF Core), and PostgreSQL.
- .NET Core SDK: Ensure you have the .NET Core SDK installed that matches your target framework version (e.g., .NET 8.0). Verify the installation by running
dotnet --version
in CMD. If not installed, download it from official website. - PostgreSQL: Install PostgreSQL from the official download page. Create a database and user with the username
postgres
and passwordpostgres
. - Git: Download and install Git from official download page. Verify installation by running
git --version
in CMD.
-
Clone the Repository:
- Open CMD and navigate to the desired directory where you want to clone the repository.
git clone https://github.com/Ekott2006/odin-asp.net-kittens-api.git
This will clone the repository into a new folder named
odin-asp.net-kittens-api
. -
Navigate to Project Directory:
- Change directory into the cloned repository:
cd odin-asp.net-kittens-api/WebApp
-
Install Packages:
- Restore the NuGet packages defined in the project:
dotnet restore
-
Run Migrations:
- Run this command to create and apply the initial migration:
dotnet ef database update
-
Run the Application:
- Execute the following command to build and launch the application:
dotnet run
The application should start and be accessible in your default web browser, typically at http://localhost:5196