Skip to content

Backend API built with ASP.NET Core, enabling university students to announce themselves as drivers or passengers to coordinate carpooling rides easily. It supports user authentication via JWT and stores announcements in an SQLite database.

License

Notifications You must be signed in to change notification settings

m1zukash1/CarpoolAPI

Repository files navigation

CarpoolAPI

CarpoolAPI is a backend API built with ASP.NET Core for a university carpooling application. The API allows students to announce themselves as either drivers or passengers, helping them connect for rides to the university.

Prerequisites

  • Install .NET 8 SDK: Download .NET 8
  • Install Entity Framework Core CLI (if not already installed):
    dotnet tool install --global dotnet-ef

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/m1zukash1/CarpoolAPI.git
  2. Navigate to the project directory:

    cd CarpoolAPI
  3. Restore dependencies:

    dotnet restore
  4. Create an appsettings.Secrets.json file in the project root with the following content, replacing with your own values:

      {
        "ConnectionStrings": {
          "DefaultConnection": "Data Source=BackEndDB.db"
        },
        "Jwt": {
          "Key": "this_is_a_very_secure_key_123456",
          "Issuer": "yourdomain.com",
          "Audience": "yourdomain.com"
        }
      }
  5. Apply Entity Framework Core migrations to initialize the SQLite database:

    dotnet ef database update
  6. Run the API:

    dotnet run
  7. Access the API locally:

    http://localhost:5069/
    

About

Backend API built with ASP.NET Core, enabling university students to announce themselves as drivers or passengers to coordinate carpooling rides easily. It supports user authentication via JWT and stores announcements in an SQLite database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published