An open API service indexing awesome lists of open source software.

https://github.com/knowledgefactory4u/dotnet-6-postgresql-crud-application

Build REST CRUD APIs with .Net 6 and PostgreSQL
https://github.com/knowledgefactory4u/dotnet-6-postgresql-crud-application

crud dotnet6 postgresql rest-api

Last synced: 4 months ago
JSON representation

Build REST CRUD APIs with .Net 6 and PostgreSQL

Awesome Lists containing this project

README

        

# Build REST CRUD APIs with .Net 6 and PostgreSQL

# Local Setup and Run the application

Create database and table

```CREATE DATABASE testdb;```
```

CREATE TABLE IF NOT EXISTS public.users
(
id serial primary key,
email VARCHAR(40) not null,
first_name VARCHAR(40) not null,
last_name VARCHAR(40) not null
);

```

Download or clone the source code from GitHub to the local machine

You can start the api by running ```dotnet run``` from the command line in the project root folder (where the WebApi.csproj file is located)

OR

You can also start the application in debug mode in Visula Studio by opening the project root folder in Visual Studio and pressing F5 or by selecting Debug -> Start Debugging from the top menu, running in debug mode.