Skip to content

A lean and fast Library Management System built using Next.js

Notifications You must be signed in to change notification settings

ojaskavathe/nextpage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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