Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 950 Bytes

File metadata and controls

60 lines (39 loc) · 950 Bytes

API Main

This uses elysia to serve data from the relevant database.

Tech Stack

Usage

Start the PostgreSQL Database

docker compose up

Push Table Structure to PostgreSQL from Drizzle

This should only be ran once, and ran each time you clear the data folder.

pnpm db:push

Run the application

pnpm install
pnpm start

All data for postgres is stored in the data directory.

Testing

Caution

When running tests all tables will be cleaned out for a clean test environment. You've been warned.

Start the PostgreSQL Database

docker compose up

Push Table Structure to PostgreSQL from Drizzle

This should only be ran once, and ran each time you clear the data folder.

pnpm db:push

Run the Tests

pnpm install
pnpm test