Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1007 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 1007 Bytes

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.

Setup

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