Skip to content

louiseDepone/ProfessorRatingBackend

Repository files navigation

.NET Web API with PostgreSQL Backend

This project is a .NET Web API backend that connects to a PostgreSQL database. It is designed to work alongside a separate React.js frontend repository (RateToFive).

Features

  • .NET 9 Web API
  • PostgreSQL database integration
  • RESTful API endpoints
  • Authentication & Authorization
  • CRUD operations
  • Supports connection to a React.js frontend

Prerequisites

Ensure you have the following installed:

Setup Instructions

1. Clone the repository

git clone 
cd 

2. Configure the Database

  1. Create a PostgreSQL database.
  2. Update the connection string in appsettings.json:
"ConnectionStrings": {
  "DefaultConnection": "Host=localhost;Port=5432;Database=your_db;Username=your_user;Password=your_password"
}

3. Apply Migrations

Run the following commands to set up the database schema:

dotnet ef migrations add InitialCreate
dotnet ef database update

4. Run the API

Start the Web API using:

dotnet run


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages