Skip to content

onlydust-com/drm-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRM App

A Next.js application.

Features

  • Next.js 15.2.1 with App Router
  • TypeScript
  • Tailwind CSS for styling
  • Server-side rendering with proper cookie handling
  • Drizzle ORM for database management and migrations

Setup

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Create a .env.local file based on .env.local.example and add your Database credentials:
    DATABASE_URL=your-database-url
    
  4. Initialize the database schema and migrations:
    npm run db:init
  5. Run the development server:
    npm run dev

Database Migrations

This project uses Drizzle ORM to manage database schemas and migrations:

  1. Initialize the migration system (first time only):

    npm run db:init
  2. Generate migrations from schema changes:

    npm run db:generate
  3. Apply migrations to your database:

    npm run db:migrate
  4. Generate and apply migrations in one step:

    npm run db:migrate:run
  5. For development/prototyping (bypasses migration files):

    npm run db:push
  6. View and manage your database with Drizzle Studio:

    npm run db:studio

Folder Structure

  • /app - Next.js App Router pages and layouts
  • /components - React components
  • /lib - Utility functions
  • /lib/drizzle - Database schema and Drizzle ORM setup

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages