Skip to content

kelvinyelyen/plex

Repository files navigation

Plex

Next JS TailwindCSS

Cognitive exercises and logic puzzles. Features Sudoku, Schulte Tables, and Chimp Tests.

Stack

  • Next.js
  • Tailwind CSS
  • Prisma
  • NextAuth.js

Development

Choose one of the following options to set up your development environment.

Option 1: Standard Setup (Recommended)

Requires Node.js and a PostgreSQL database.

  1. Clone and Install:

    git clone https://github.com/kelvinyelyen/plex.git
    cd plex
    npm install
    # Setup .env with DATABASE_URL
    npx prisma generate
    npm run dev
  2. Environment: Create a .env file with your database and auth credentials.

Option 2: Docker Setup

Requires Docker and Docker Compose.

  1. Build and Start:

    docker-compose up --build

    The application will be available at http://localhost:3000.

  2. Database Migrations: The database is initialized empty. Run migrations to set up the schema:

    Method A: From host (if Node.js installed)

    # Ensure .env points to localhost:5432
    npx prisma migrate deploy

    Method B: Via Docker (One-off container)

    docker run --rm -it \
      --network plex_plex-network \
      -v $(pwd):/app \
      -w /app \
      -e DATABASE_URL="postgresql://postgres:password@db:5432/plex" \
      node:20-alpine sh -c "npm install -g prisma && npx prisma migrate deploy"

About

A collection of cognitive training tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages