A small potion brewing game built with Next.js and TypeScript. It features an in-memory database and a few interactive pages for brewing and managing ingredients.
- Install Node.js 20 or later.
- Install dependencies:
pnpm installnpm install works as well if you prefer npm.
- Create a
.env.localfile for environment variables. No variables are required by default, but you can define anyNEXT_PUBLIC_*or server-side variables you might need.
Start the development server with:
pnpm devVisit http://localhost:3000 to view the app. Hot reload is enabled.
To build for production run:
pnpm build
pnpm startRun the Jest test suite with:
pnpm testFor coverage information:
pnpm run test:coverageLinting can be run with pnpm run lint and auto-fixed using pnpm run lint -- --fix.
See AGENTS.md for a detailed directory overview. Main folders include src/app for Next.js routes, src/lib for utilities and the in-memory database, and src/components for React components.