Cognitive exercises and logic puzzles. Features Sudoku, Schulte Tables, and Chimp Tests.
- Next.js
- Tailwind CSS
- Prisma
- NextAuth.js
Choose one of the following options to set up your development environment.
Requires Node.js and a PostgreSQL database.
-
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
-
Environment: Create a
.envfile with your database and auth credentials.
Requires Docker and Docker Compose.
-
Build and Start:
docker-compose up --build
The application will be available at
http://localhost:3000. -
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 deployMethod 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"