A minimalist family tree editor and viewer hosted on GitHub Pages.
It allows anyone without a technical background to create and host their family tree for free.
It uses the React D3 Tree library in order to generate a visual family tree from data that you input.
- Create a copy of this repository by clicking the 'Fork' button on the top right:
- From your newly created repository, go to a file named 'data.json' by clicking the 'Go to file' button:
Typedata.json
:
- Edit the file:
Let's start by also giving your family tree atitle
of your choosing:
- Describe what your changed and click 'Commit changes':
- This will trigger your family tree website to get generated with your latest changes!
- Switch to the 'Actions' tab to monitor its progress:
- The final step is to enable your website by switching to the 'Settings' tab
and change the source branch to 'gh-page' which should have been generated after step 6 is completed (you may have to wait a few minutes before it shows the gh-pages option): - If it all goes well, you will be presented with the link to your site as shown in the screenshot above. Make sure you keep note of it! It may take a few minutes for the link to start working.
The family tree launches by default in view mode.
Click the thin gray banner to the left in order to switch to edit mode:
This exposes all the editing options
All the code for this website is open sourced and contributions are welcome! If you would like to make contributions to the code, please follow the instructions below.
To set up this project for local development, follow the steps below:
- Clone the repository
- Install dependencies:
cd your-project-folder-name
npm i
Tip: If you'd prefer to use your own app for development instead of the demo, simply run
npm link react-d3-tree
in your app's root folder instead of the demo's :)
Bring up the server using the below command, and changes you make will reflect live.
npm start