How do I build a database using a fork of the "xtuple" repository?

Run npm install from the root of the repository, then run

scripts/build_app.js -d  --databaesonly -e foundation-database -i -s foundation-database/demo_data.sql

Make sure you have a database called postgres.