Skip to content

Latest commit

 

History

49 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

genegenie

A website generator for Gramps family trees.

A demo can be found HERE.

the people page, a table with name, gender, birth, death etc.

See notes/conventions.md for a list of conventions I follow in my Gramps project, which the software makes use of.

Requirements

  • Gramps 5.1 (haven't tested with other versions).
  • The Gramps Python package should be on your Python path. I achieved this by installing Gramps through my Ubuntu package manager: apt install gramps.
  • Flask web server.

Usage

Install Python dependencies:

pip3 install -r requirements.txt

Run the server:

python3 app.py ~/.gramps/grampsdb/<your-tree-id>/

...and then open the indicated local URL in a browser.

Or generate all the website files and dump them to a build directory:

python3 app.py ~/.gramps/grampsdb/<your-tree-id>/ --freeze

For the tree visualisation, the family-chart npm package is used. It should just work, but for future reference (and to update the tree configuration code) here's how I set it up:

  • Install dependencies: npm install.
  • Manually copy family-chart CSS: cp node_modules/family-chart/dist/styles/family-chart.css static/css/.
  • Install webpack, npm install webpack webpack-cli --save-dev.
  • Run webpack command webpack ./src/tree.js --mode production --output-path ./static/js/ --output-filename bundle.js --output-library-name tree --output-library-type window

References

Gramps API:

Tree visualisation:

About

Website generator for Gramps.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages