一覧へ戻る
rodhisz/orbital-zodiac(新しいタブで開きます)
主要言語: JavaScript
- star 数
- 0
- watcher 数
- 0
- fork 数
- 2
- issue 数
- 0
- 最終更新
- 2026/03/29
主要言語: JavaScript
A modern, interactive, and robust Family Tree (Silsilah Keluarga) management application built with React, Vite, Supabase, and @xyflow/react.
@xyflow/react and dagre layout engine..xlsx files.Clone the repository:
git clone https://github.com/yourusername/famtree.git
cd famtreeInstall dependencies:
npm install
Setup environment variables:
Create a .env file in the root directory:
VITE_SUPABASE_URL=your_supabase_url VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
Run the development server:
npm run dev
Run the following SQL in your Supabase SQL Editor to prepare the required tables:
CREATE TABLE public.family_members ( id TEXT PRIMARY KEY, name TEXT NOT NULL, gender TEXT DEFAULT 'male', birth DATE, death DATE, photo TEXT, father_id TEXT, mother_id TEXT, spouses JSONB DEFAULT '[]', created_at TIMESTAMPTZ DEFAULT NOW() );
CREATE TABLE public.profiles ( id UUID REFERENCES auth.users ON DELETE CASCADE PRIMARY KEY, email TEXT, role TEXT DEFAULT 'editor', created_at TIMESTAMPTZ DEFAULT NOW() ); -- Enable RLS ALTER TABLE profiles ENABLE ROW LEVEL SECURITY; -- Policies CREATE POLICY "Public profiles are viewable by everyone" ON profiles FOR SELECT USING (true); CREATE POLICY "Users can update own profile" ON profiles FOR UPDATE USING (auth.uid() = id);
Developed with ❤️ for family history preservation.