NextPage is a Library Management System built using Next.js, designed to efficiently manage and automate the various processes and tasks associated with library operations.
Data is stored in a Postgres Database (through Prisma) running in a Docker container. Note that the .env file holds the database URL.
Auth is done using NextAuth (v5), validation using zod.
First, run the database server:
docker compose up -d
This installs the PostgreSQL Image and spins up a container with a volume.
Next, set up the database by running migrations, and start the development server:
pnpm exec prisma migrate dev
pnpm dev
This will also seed the database with random values using Faker.js, and starts a server listening at http://localhost:3000.
Login using:
id: server
password: password