spee.ch/README.md

54 lines
2.1 KiB
Markdown
Raw Normal View History

2017-05-24 11:10:51 -07:00
# spee.ch
2017-08-18 15:12:43 -07:00
spee.ch is a single-serving site that reads and publishes images and videos to and from the [LBRY](https://lbry.io/) blockchain.
2017-03-29 13:28:35 -04:00
2017-06-05 10:50:13 -07:00
## how to run this repository locally
* start mysql
* install mysql
* create a database called `lbry`
* save your connection `username` and `password` someplace handy
2017-08-18 15:12:43 -07:00
* start lbrynet daemon
2017-08-18 15:15:19 -07:00
* install the [`lbry`](https://github.com/lbryio/lbry) daemon
2017-08-18 15:12:43 -07:00
* start the `lbry` daemon
* start spee.ch-sync
2017-08-18 15:15:19 -07:00
* install and run this [`speech-sync`](https://github.com/billbitt/spee.ch-sync) tool
2017-08-18 15:12:43 -07:00
* start spee.ch
* clone this repo
* run `npm install`
2017-11-06 15:22:03 -08:00
* create your `speechConfig.js` file
* copy `speechConfig.js.example` and name it `speechConfig.js`
2017-11-06 15:22:03 -08:00
* replace the `null` values in the config file with the appropriate values for your environement
* to start the server, from your command line run `node speech.js`
2017-08-18 15:12:43 -07:00
* To run hot, use `nodemon` instead of `node`
2017-06-05 10:50:13 -07:00
* visit [localhost:3000](http://localhost:3000)
2017-03-29 13:28:35 -04:00
2017-06-26 15:16:46 -07:00
## API
#### GET
2017-12-05 10:18:49 -08:00
* /api/claim-resolve/:name
* example: `curl https://spee.ch/api/claim-resolve/doitlive`
2017-11-29 12:41:53 -08:00
* /api/claim-list/:name
* example: `curl https://spee.ch/api/claim-list/doitlive`
2017-12-05 10:18:49 -08:00
* /api/claim-is-available/:name (
* returns `true`/`false` for whether a name is available through spee.ch
* example: `curl https://spee.ch/api/claim-is-available/doitlive`
* /api/channel-is-available/:name (
* returns `true`/`false` for whether a channel is available through spee.ch
* example: `curl https://spee.ch/api/channel-is-available/@CoolChannel`
2017-06-26 15:16:46 -07:00
#### POST
2017-12-05 10:18:49 -08:00
* /api/claim-publish
* example: `curl -X POST -F 'name=MyPictureName' -F 'file=@/path/to/myPicture.jpeg' https://spee.ch/api/claim-publish`
2017-10-05 15:37:20 -07:00
* Parameters:
2017-11-03 13:37:23 -07:00
* `name`
2017-12-05 10:18:49 -08:00
* `file` (must be type .mp4, .jpeg, .jpg, .gif, or .png)
2017-11-03 13:37:23 -07:00
* `nsfw` (optional)
* `license` (optional)
* `title` (optional)
* `description` (optional)
* `thumbnail` url to thumbnail image, for .mp4 uploads only (optional)
* `channelName`(optional)
* `channelPassword` (optional,; required if `channelName` is provided)
2017-06-26 15:16:46 -07:00
2017-06-11 17:32:31 -07:00
## bugs
If you find a bug or experience a problem, please report your issue here on github and find us in the lbry slack!