Skip to content

teamdigitale/dataviz-srv

Repository files navigation

Dataviz chart server

Install deps

To install dependencies:

bun install

DB Setup

This project uses PostgreSQL. Prisma (v5.19.0) is the ORM library used to query and store data into the db . So, install prisma globally:

After that, you have to setup youn db

Run:

prisma db push

It will generate prisma client and generate all the tables in the db.

Then, seed the db

bun seeds/seed-users.ts

Run the app

To run:

bun run index.ts
# or
bun run dev

This project was created using bun init in bun v1.1.3. Bun is a fast all-in-one JavaScript runtime.

fly.io config

Docker file generated with

 bunx --bun @flydotio/dockerfile@latest

then used the flyctl secrets command to add envs, see sample.env for variables reference.

fly secrets set DATABASE_URL=postgres://example.com/mydb
fly secrets list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages