A data visualization web application built with React and Vite, featuring interactive charts and team analysis capabilities.
- Node.js (v18 or higher recommended)
- npm or yarn
- Git
- Clone the repository
git clone https://github.com/Jiayu-W/dataviswa.git
cd dataviswa- Install dependencies
npm install
# or if you use yarn
yarn- Set up environment variables
Copy
.env.exampleto.envand fill in your Supabase credentials:
cp .env.example .envThen edit .env with the following variables:
VITE_SUPABASE_URL=your_supabase_project_url
VITE_SUPABASE_KEY=your_supabase_anon_keyReplace your_supabase_project_url and your_supabase_anon_key with your actual Supabase project credentials.
To run the application in development mode:
npm install
npm run dev
# or
yarn devThe application will be available at http://localhost:5173
If you just added Tailwind/shadcn dependencies, run npm install again after pulling changes.
To create a production build:
npm install
npm run build
# or
yarn buildTo preview the production build locally:
npm install
npm run preview
# or
yarn preview- React 19
- Vite 7
- Supabase for backend
- Recharts for data visualization
- React Router for navigation
The following environment variables are required:
| Variable | Description |
|---|---|
VITE_SUPABASE_URL |
Your Supabase project URL |
VITE_SUPABASE_KEY |
Your Supabase anonymous key |
You can obtain these values from your Supabase project settings.
Writes to Supabase (QR uploads, approvals/rejections, and Use Data toggles) are queued locally when offline and automatically synced when the connection returns.