Skip to content

TechnoTitans/Datavis-Webapp

Repository files navigation

DataVisWA

A data visualization web application built with React and Vite, featuring interactive charts and team analysis capabilities.

Getting Started

Prerequisites

  • Node.js (v18 or higher recommended)
  • npm or yarn
  • Git

Installation

  1. Clone the repository
git clone https://github.com/Jiayu-W/dataviswa.git
cd dataviswa
  1. Install dependencies
npm install
# or if you use yarn
yarn
  1. Set up environment variables Copy .env.example to .env and fill in your Supabase credentials:
cp .env.example .env

Then edit .env with the following variables:

VITE_SUPABASE_URL=your_supabase_project_url
VITE_SUPABASE_KEY=your_supabase_anon_key

Replace your_supabase_project_url and your_supabase_anon_key with your actual Supabase project credentials.

Development

To run the application in development mode:

npm install
npm run dev
# or
yarn dev

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

If you just added Tailwind/shadcn dependencies, run npm install again after pulling changes.

Building for Production

To create a production build:

npm install
npm run build
# or
yarn build

To preview the production build locally:

npm install
npm run preview
# or
yarn preview

Technology Stack

  • React 19
  • Vite 7
  • Supabase for backend
  • Recharts for data visualization
  • React Router for navigation

Environment Variables

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.

Offline Support

Writes to Supabase (QR uploads, approvals/rejections, and Use Data toggles) are queued locally when offline and automatically synced when the connection returns.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •