Skip to content

Ekott2006/odin-asp.net-kittens-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project: Kittens API (ASP.NET)

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.

Prerequisites:

  • .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 password postgres.
  • Git: Download and install Git from official download page. Verify installation by running git --version in CMD.

Steps:

  1. 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.

  2. Navigate to Project Directory:

    • Change directory into the cloned repository:
    cd odin-asp.net-kittens-api/WebApp
  3. Install Packages:

    • Restore the NuGet packages defined in the project:
    dotnet restore
  4. Run Migrations:

    • Run this command to create and apply the initial migration:
    dotnet ef database update
  5. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published