DUMP - Internship companion app
- Node.js >=18 and yarn
- PostgreSQL >= 15
yarn
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
yarn prisma migrate dev
yarn prisma db seed
yarn dev
App is now accessible on http://localhost:5173/. API routes are prefixed with /api.
example: add react-hot-toast library to web app
yarn workspace web add react-hot-toast
type Props = {
value: number;
}
export const Counter: React.FC<Props> = ({ value }) => {
return <div>{value}</div>
}