seax/INSTRUCTIONS.md
2023-10-24 10:12:48 +03:00

1.6 KiB

Installation Instructions

  1. Create a folder and name it whatever you want.
$ mkdir seax-project
$ cd seax-project
  1. Inside the folder, clone the airlock library and the seax project.
$ git clone https://github.com/ilyakooo0/airlock
$ git clone https://github.com/ilyakooo0/seax
  1. Download the v2.11 pill.
$ wget https://bootstrap.urbit.org/urbit-v2.11.pill
  1. Start your fake zod using the pill.
$ urbit -B urbit-v2.11.pill -F zod
  1. Now, inside dojo run the following:
dojo> |new-desk %seax
dojo> |mount %seax
  1. Back in your shell, run:
$ rm -r zod/seax
$ cp -r seax/zod/seax zod/seax
  1. In the dojo install the seax agent and allow cross-site origin requests from localhost.
dojo> |commit %seax
dojo> |install our %seax
dojo> |pass [%e [%approve-origin 'http://localhost:8000']]
  1. While your urbit is running in another terminal run:
$ ./seax/dev/elm-live.sh

The above command will start the frontend which communicates with your zod ship using the Elm airlock library.

Now, you can go to your browser at http://localhost:8000/. The seax app should be displaying a search bar. You might need to refresh the page once before using the app. You'll know that everything works if you see the "< ~zod: Opening airlock!" message in your dojo.

Usage Instructions

Now, you can fill in the search bar with any term you like. Clicking "search" will iniate collect any relevant results from the configured search sources. In the results page, you can click on any of the sources to filter to only results from that source.