wsl --list
in your terminal should return something. wsl --install
in an administrator PowerShell or Command Prompt & then restart your computer. git clone https://github.com/AdoryVo/big-two.git
)Ctrl+`
) & run pnpm install
(or npm install
) to install dependencies.env
file to the root directory & add the contents received from Discorddocker compose up
& leave the terminal openCtrl+Shift+`
) and run pnpm prisma migrate dev
(or npx prisma migrate dev
) to hook up Prisma to your databaseCtrl+C
to your terminal running docker to stop the processFirst, start your existing Docker image:
docker compose start
Next, run the development server:
npm run dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the app.
Key:
prisma/
└── schema.prisma # 📄 Database schema
src/
├── components/ # ⭐ React components
├── lib/
│ └── big-two/ # ⭐ Game logic
├── utils/ ## Constants and exports
│ └── hooks/ # 📝 Hooks
│ └── theme.ts/ # 📝 Theme specifications
└── pages/ ## Visitable routes
└── api/ # ⭐ Server API routes
└── _app.tsx # 📄 Page component wrapper
└── game/[gameId].tsx # ⭐ Game lobby page
└── index.tsx # 📝 Home page
└── sandbox.tsx # 📄 Development page for debugging game logic
.env # 📝 Environment variables
package.json # 📄 Dependencies
pnpm prisma [command]
)db push
: Push the Prisma schema state to the databasemigrate dev
: Create migrations from your Prisma schema, apply them to the database, generate artifacts (e.g. Prisma Client)studio
: Run Prisma's local browser tool for viewing models