2017-05-24 20:10:51 +02:00
|
|
|
# spee.ch
|
|
|
|
spee.ch is a single-serving site that reads and publishes images to and from the [LBRY](https://lbry.io/) blockchain.
|
2017-03-29 19:28:35 +02:00
|
|
|
|
2017-05-24 20:07:43 +02:00
|
|
|
## how to use this repository
|
|
|
|
* start lbry
|
|
|
|
* install the [`lbry`](https://github.com/lbryio/lbry) daemon
|
|
|
|
* start the `lbry` daemon
|
|
|
|
* start RabbitMQ (this will handle the queue for background processing)
|
|
|
|
* install & run [RabbitMQ](https://www.rabbitmq.com/#getstarted)
|
|
|
|
* clone this repo
|
|
|
|
* run `npm install`
|
|
|
|
* from your terminal, run `npm start`
|
|
|
|
* to run hot, run `nodemon server.js`
|
2017-05-24 20:26:55 +02:00
|
|
|
* start a worker by running `node worker.js` in a separate session in your terminal
|
2017-05-24 23:31:43 +02:00
|
|
|
* visit [localhost:3000](http://localhost:3000)
|
2017-03-29 19:28:35 +02:00
|
|
|
|
2017-05-24 20:07:43 +02:00
|
|
|
## site navigation
|
|
|
|
|
|
|
|
* spee.ch.
|
|
|
|
* To publish a file, navigate to the homepage.
|
|
|
|
* spee.ch/<the name of the claim>
|
|
|
|
* To view the file with the largest bid at a claim.
|
|
|
|
* E.g. spee.ch/doitlive.
|
|
|
|
* spee.ch/< the name of the claim >/< the claim_id >
|
|
|
|
* To view a specific file at a claim
|
|
|
|
* E.g. spee.ch/doitlive/c496c8c55ed79816fec39e36a78645aa4458edb5
|
|
|
|
* spee.ch/<the name of the claim>/all
|
|
|
|
* To view a batch of files at a claim
|
|
|
|
* E.g. spee.ch/doitlive/all
|
|
|
|
|
|
|
|
## development to-do's
|
|
|
|
* discover/explore functionality for home page
|
|
|
|
* display a list of claims at /:name/all
|
|
|
|
* fetching: a temporary page while the request is being made (with a loading bar?)
|
|
|
|
* publishing: a temporary page while the request is being handled by the server (with a loading bar?)
|
|
|
|
* publishing: after publishing, take the user to a temp page with the tx info and status of the tx (then redirect when the tx is complete)
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
Note: these are being used for testing durring spee.ch development and may not be maintained
|
|
|
|
|
|
|
|
* A GET request to spee.ch/claim_list/<the name of the claim>
|
|
|
|
* Will return the claim_list for the claim in json format.
|
|
|
|
* E.g. spee.ch/claim_list/doitlive
|