This is the backend of the CHaters project. It is a RESTful API that provides the necessary endpoints for the frontend to interact with the database.
- .NET 8.0
- Entity Framework Core
- PostgreSQL
- JWT Authentication
- Swagger
- Clone the repository:
git clone https://github.com/kovalllllll/CHaters-project-backend.git- Check ConnectionStrings in
appsettings.jsonfile:
{
"ConnectionStrings": {
"DefaultConnection": "Host=localhost;Port=5432;Database=chaters;Username=postgres;Password=postgres"
}
}- Go to the project backend directory:
cd CHaters-project-backend/- Migration:
dotnet ef migrations add InitialCreate
dotnet ef database update- Build & Run the project:
dotnet build
dotnet run