Please install the following before starting the dev server:
- Node.js
- pnpm
- Docker (you need to enable virtualization first)
- Run
pnpm install
to install all dependencies - Run
docker compose up -d
to start the database - Run
npx prisma generate
to generate the prisma client - Run
pnpm db:push
to push changes to the database - Run
pnpm db:seed
to seed the database - Run
pnpm dev
to start the development server
- Run
pnpm db:start
to start the database - Run
pnpm db:migrate
every time the schema is updated to update the intellisense - Run
pnpm db:stop
to stop the database - Run
pnpm db:seed
to reset and seed the database - Run
pnpm db:reset
to reset the database - Run
pnpm db:push
to push changes to the database
- Pull the docker image by running
docker image pull steven4565/class-gamification
if you haven't already - Create a
.env
file and setup the environment variables - Run
docker compose up -d
pnpm db:start
pnpm db:reset
pnpm db:seed
pnpm db:migrate