A sovereign platform for peer-to-peer economic activity with on-chain settlement and trusted identity assessment of work completion.
Go to file
~sidnym-ladrut 1add62f1ed
Merge pull request #174 from tocwex/sl/v1.4.X/demo-videos
add demo videos to readme
2024-10-19 21:07:19 +00:00
desk run release script for 1.4.5 2024-10-18 17:30:44 +00:00
meta add demo videos to readme 2024-10-19 21:00:20 +00:00
.gitignore initial commit: bare-bones htmx repo 2024-01-31 00:12:20 +00:00
LICENSE.txt add GNU GPLv3 license 2024-02-02 21:14:55 +00:00
README.md add demo videos to readme 2024-10-19 21:00:20 +00:00

%fund

A sovereign platform for peer-to-peer economic activity with on-chain settlement and trusted identity assessment of work completion.

Demos

Project Setup

%fund setup demo

Contribute Funds

%fund contribute demo

Get Paid

%fund cash out demo

Install

Within your Urbit ship's command-line interface, enter the following command(s):

|install ~tocwex %fund

Build/Develop

All commands assume that the current working directory is this repository's base directory and optionally use durploy to streamline various Urbit development workflows.

First-time Setup

Run the following commands to create a new fake ~zod with the %fund desk installed:

With durploy
curl -LO https://raw.githubusercontent.com/sidnym-ladrut/durploy/release/durploy
chmod u+x ./durploy
./durploy ship zod
# in a different terminal
./durploy desk zod fund ./desk/full/
Without durploy
urbit -F zod
|new-desk %fund
|mount %fund
|exit
rm -rI ./zod/fund/*
cp -RL ./desk/full/* ./zod/fund/
urbit ./zod
|commit %fund
|install our %fund

Development Workflows

Back-end Workflows

In order to continuously test back-end code changes as they're made, make sure you have your fake ~zod running in the background and execute the following commands:

With durploy
./durploy desk -w zod fund ./desk/full/
Without durploy
cp -fRL ./desk/full/ ./zod/fund/
# in the fakezod terminal
|commit %fund

Front-end Workflows

To view the front-end, simply open your development ship's web interface at the path /apps/fund; for a default fake ~zod, this will be:

http://127.0.0.1:8080/apps/fund

In order to continuously test front-end code changes as they're made, set up continuous back-end integration (as above) and log into the development ship from the web interface using the output of the dojo +code command as the password. Then, you should be able to edit the web files in ./desk/bare/web/fund/page and see them updated in your browser in real time.

Note that changes to library files (i.e. files outside the ./desk/bare/web/fund/page tree) will require prompting your fake ship to reload the dependent page files separately. The following commands can be run after library files are changed to achieve this aim, and also to revert the associated changes prior to commit:

find ./desk/bare/web/fund/page/ -type f -exec sh -c "echo '::  RELOAD' >> {}" \;
find ./desk/bare/web/fund/page/ -type f -exec sh -c "sed -i '/^::  RELOAD$/d' {}" \;

Deployment Workflow

Back-end Workflows

To generate a new full desk from the existing base desk:

./meta/exec/regen

To perform a versioned release:

./meta/exec/release X.Y.Z