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).
- .NET 9 Web API
- PostgreSQL database integration
- RESTful API endpoints
- Authentication & Authorization
- CRUD operations
- Supports connection to a React.js frontend
Ensure you have the following installed:
- .NET 9 SDK
- PostgreSQL
- Git
- Node.js & npm (for React frontend)
git clone
cd - Create a PostgreSQL database.
- Update the connection string in
appsettings.json:
"ConnectionStrings": {
"DefaultConnection": "Host=localhost;Port=5432;Database=your_db;Username=your_user;Password=your_password"
}Run the following commands to set up the database schema:
dotnet ef migrations add InitialCreate
dotnet ef database updateStart the Web API using:
dotnet run