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.
- Host: GitHub
- URL: https://github.com/harshbatra/postgres-practice
- Owner: HarshBatra
- Created: 2024-02-24T20:56:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-26T07:44:42.000Z (over 2 years ago)
- Last Synced: 2025-03-30T09:41:30.476Z (about 1 year ago)
- Topics: postgres, postgresql, sql, typescript
- Language: TypeScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.