Skip to content

FossMec/CodeumReparo2025

Repository files navigation

SpendWise - Expense Tracker

A modern, dark-mode personal expense tracker built with React, Vite, Tailwind CSS, and Supabase.

🛠 Prerequisites

Before starting, ensure you have:

  1. Node.js (v18 or higher) - Download Here
  2. Visual Studio Code - Download Here
  3. Supabase Account - Sign up Here

📦 1. Installation Instructions (Standard Vite + NPM)

Option A: Install from package.json (Recommended)

simply run:

npm install

Option B: Manually Install Packages

run the following commands in your terminal to install the required libraries:

  1. Install Core React & Vite:

    npm install react react-dom react-router-dom
    npm install -D vite @vitejs/plugin-react @types/react @types/react-dom
  2. Install Supabase Client:

    npm install @supabase/supabase-js
  3. Install Icons:

    npm install lucide-react
  4. Install Tailwind CSS:

    npm install -D tailwindcss postcss autoprefixer
    npx tailwindcss init -p

🗄️ 2. Database (Supabase)

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
);

💻 3. Running the App

  1. Configure Environment Variables: Create a .env file 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
  2. Start the Development Server:

    npm run dev
  3. Open http://localhost:5173 in your browser.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published