Skip to content

code100x/daily-code

Repository files navigation

Quick Setup Locally

Option 1: Using Docker

docker compose watch

Option 2: Manual Setup

1. Install Dependencies

cd daily-code
yarn install

2. Setup Database

For Mac and Linux users

cd packages/db
chmod +x ./setupDB.sh
./setupDB.sh

For Windows users

cd packages/db
copy .env.example .env
docker-compose up

# Configure the database connection
# Add your connection string to DATABASE_URL

yarn prisma migrate dev
yarn prisma db seed

3. Run Locally

cd ../..
yarn run dev