This guide will help you set up and run the VLensePOC ASP.NET Core project with a PostgreSQL database. It includes steps for creating the database, configuring the project, and generating database migrations.
-
Install PostgreSQL: Download and install PostgreSQL from the official website.
-
Database Migration: Once your PostgreSQL database is set up, it's time to run the migration for Entity Framework Core. Replace the username and the password in VlensePOC/appsettings.Development.json "NpgSql" Connection string, then Open your terminal and run the following commands:
cd VlensePOC dotnet ef database update -
Run Project: After migration run successfully run the following commands or use Visual Studio or Rider or your favorite Ide
dotnet run
-
Open .http file: now open file VlensePOC/VlensePOC.http and follow instructions to add and retrieve data