A modern, dark-mode personal expense tracker built with React, Vite, Tailwind CSS, and Supabase.
Before starting, ensure you have:
- Node.js (v18 or higher) - Download Here
- Visual Studio Code - Download Here
- Supabase Account - Sign up Here
simply run:
npm installrun the following commands in your terminal to install the required libraries:
-
Install Core React & Vite:
npm install react react-dom react-router-dom npm install -D vite @vitejs/plugin-react @types/react @types/react-dom
-
Install Supabase Client:
npm install @supabase/supabase-js
-
Install Icons:
npm install lucide-react
-
Install Tailwind CSS:
npm install -D tailwindcss postcss autoprefixer npx tailwindcss init -p
create table transactions (
id uuid default uuid_generate_v4() primary key,
user_id uuid references auth.users not null,
title text not null,
amount numeric not null,
type text check (type in ('income', 'expense')) not null,
category text default 'General',
created_at timestamp with time zone default timezone('utc'::text, now()) not null
);-
Configure Environment Variables: Create a
.envfile in the root folder and add your keys:VITE_SUPABASE_URL=https://your-project-id.supabase.co VITE_SUPABASE_ANON_KEY=your-anon-key-here
-
Start the Development Server:
npm run dev
-
Open
http://localhost:5173in your browser.