+
Skip to content
/ TR Public

An interactive color perception game where players test their ability to distinguish subtle color differences.

License

Notifications You must be signed in to change notification settings

blaisewf/TR

Repository files navigation

Color Perception Game

A modern web application designed to evaluate and enhance users’ color differentiation abilities. Built with a high-performance stack including Next.js, TypeScript, Tailwind CSS, and Supabase.

Tech Stack

Prerequisites

  • Node.js (LTS recommended)
  • pnpm (latest version)
  • Supabase account and project

Getting Started

1. Clone the Repository

git clone https://github.com/blaisewf/TR.git
cd TR

2. Install Dependencies

pnpm install

3. Configure Environment Variables

Create a .env file in the root directory with your Supabase project credentials:

NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key

4. Set Up Database Schema

Create a data table in your Supabase project with the following schema:

Column Name Type
session_id uuid
player_id uuid
saved_at timestamptz
total_time float4
final_level int2
rounds json
device_info jsonb
has_visibility_condition bool

5. Run the Development Server

pnpm dev

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

Production

To build and start the application in production mode:

pnpm build
pnpm start

License

This project is licensed under the MIT License.

About

An interactive color perception game where players test their ability to distinguish subtle color differences.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载