Libraria is a simple library management system built with Next.js, Prisma, and SQLite.
The goal of this project is to provide a basic platform for managing books, users, and borrowing activities in a library environment. It supports user authentication, book management, and borrowing/returning books.
Follow these steps to run the project locally:
git clone https://github.com/MozartKato/libraria
cd librariaCreate a .env file from the example (if available), or create it manually:
cp .env.example .env
# If .env.example does not exist, make sure your .env contains:
# DATABASE_URL="file:./db.sqlite3"pnpm install
# or
npm install
# or
yarn installnpx prisma generatenpx prisma migrate dev --name initThis will create the necessary tables in the database according to the Prisma schema.
To view or manage your database data:
npx prisma studiopnpm dev
# or
npm run dev
# or
yarn devOpen http://localhost:3000 in your browser to see the app.
Notes:
- Make sure Node.js and your package manager (pnpm/npm/yarn) are installed.
- If you make changes to
prisma/schema.prisma, repeat steps 4 and 5.