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

https://github.com/harshbatra/postgres-practice

This repo just contains my postgres practice of creating todo crud apis.
https://github.com/harshbatra/postgres-practice

postgres postgresql sql typescript

Last synced: about 1 month ago
JSON representation

This repo just contains my postgres practice of creating todo crud apis.

Awesome Lists containing this project

README

          

# TODO Database (PostgreSQL Practice)

## Made CRUD APIs using PostgreSQL

## How to start:

- STEP 1: Add your postgres client connection string in .env file as POSTGRES_CONNECTION_STRING.

- STEP 2: Run these commands:

```
npm install
npx tsc --init
tsc -b
node .\dist\create-table.js
node .\dist\create-index.js
node .\dist\insert-data.js
node .\dist\get-data.js
node .\dist\update-data.js
node .\dist\delete-data.js
```

NOTE: You can also use psql cli for viewing data.