Skip to content

dump-hr/internship-app

Folders and files

NameName
Last commit message
Last commit date
Oct 13, 2023
Oct 10, 2024
Oct 20, 2024
Oct 11, 2024
Oct 24, 2023
Aug 27, 2023
Aug 27, 2023
Aug 30, 2023
Aug 27, 2023
Aug 27, 2023
Oct 1, 2024
Aug 27, 2023
Oct 24, 2023

Repository files navigation

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://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