Added postgres DB, models. Updated services for ansync DB operations, etc

This commit is contained in:
KS Jannette
2026-05-18 18:03:01 -04:00
parent 5d32d5c537
commit cbb76fd72d
17 changed files with 600 additions and 77 deletions

36
README.md Normal file
View File

@@ -0,0 +1,36 @@
# generic_typescript_server
Express + TypeScript REST API with PostgreSQL.
## Setup
```bash
cp .env.example .env
npm install
```
## Database
Start Postgres:
```bash
npm run db:up
```
Run migrations:
```bash
npm run db:migrate
```
Stop Postgres:
```bash
npm run db:down
```
## Dev server
```bash
npm run dev
```