Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 1.48 KB

README.md

File metadata and controls

76 lines (50 loc) · 1.48 KB

DUMP Internship App

DUMP Internship companion app

Development

Dependencies

  • Node.js >=18 and yarn
  • PostgreSQL >= 15

Install dependencies

yarn

Setup environment

Run docker compose up in separate terminal or follow steps below if you already have postgres server running locally.

Create .env.local file that can override configuration options from .env in web/api apps.

Required variables for api:

  • DATABASE_URL

Run database migrations

yarn prisma migrate dev

Run database seed

yarn prisma db seed

Run app

yarn dev

App is now accessible on http:https://localhost:5173/. API routes are prefixed with /api.

Cookbook

Add new dependency

example: add react-hot-toast library to web app

yarn workspace web add react-hot-toast

React component template

type Props = {
  value: number;
}

export const Counter: React.FC<Props> = ({ value }) => {
  return <div>{value}</div>
}

Useful resources