https://github.com/malekd5/premierlibrary
Simple Library Management System written using Next.js, React, TailwindCSS, and Better Auth.
https://github.com/malekd5/premierlibrary
better-auth drizzle-kit drizzle-orm nextjs nextjs14 react react18 tailwindcss
Last synced: about 2 months ago
JSON representation
Simple Library Management System written using Next.js, React, TailwindCSS, and Better Auth.
- Host: GitHub
- URL: https://github.com/malekd5/premierlibrary
- Owner: MalekD5
- License: mit
- Created: 2025-04-11T20:40:43.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-11T20:51:14.000Z (about 2 months ago)
- Last Synced: 2025-04-11T21:38:35.878Z (about 2 months ago)
- Topics: better-auth, drizzle-kit, drizzle-orm, nextjs, nextjs14, react, react18, tailwindcss
- Language: TypeScript
- Homepage: https://premier-library.vercel.app
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Library Management System
This is a simple library management system built with Next.js, Drizzle ORM, and Better Auth.

## Getting Started
### Prerequisites
- Node.js 18.x
- PostgreSQL 15.x### Installation
1. Clone the repository:
```bash
git clone https://github.com/MalekD5/PremierLibrary.git
```2. Install dependencies:
```bash
npm install
```3. Create a `.env` file in the root directory and add the following environment variables:
```bash
DATABASE_URL=
BETTER_AUTH_SECRET=your_secret # generate a new secret using `openssl rand -hex 32`
BETTER_AUTH_URL=http://localhost:3000
```4. Run the database migration, this will setup the database schema and create the necessary tables:
```bash
npm run db:generate
npm run db:migrate
```5. (**optional**) Seed the database (adds default books to the database):
```bash
npm run db:seed
```6. Start the development server:
```bash
npm run dev
```7. Open http://localhost:3000 in your browser.
## License
This project is licensed under the [MIT License](LICENSE).