Development #21
3 changed files with 9 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
||||||
# spee.ch
|
# spee.ch
|
||||||
spee.ch is a single-serving site that reads and publishes images to and from the [LBRY](https://lbry.io/) blockchain.
|
spee.ch is a single-serving site that reads and publishes images to and from the [LBRY](https://lbry.io/) blockchain.
|
||||||
|
|
||||||
## how to use this repository
|
## how to run this repository locally
|
||||||
* start lbry
|
* start lbry
|
||||||
* install the [`lbry`](https://github.com/lbryio/lbry) daemon
|
* install the [`lbry`](https://github.com/lbryio/lbry) daemon
|
||||||
* start the `lbry` daemon
|
* start the `lbry` daemon
|
||||||
|
@ -25,12 +25,12 @@ spee.ch is a single-serving site that reads and publishes images to and from the
|
||||||
* To view a batch of files at a claim
|
* To view a batch of files at a claim
|
||||||
* E.g. spee.ch/doitlive/all
|
* E.g. spee.ch/doitlive/all
|
||||||
|
|
||||||
## development to-do's
|
## development road map (to do's)
|
||||||
* discover/explore functionality for home page
|
* discover/explore functionality for home page
|
||||||
* display a list of claims at /:name/all
|
* display a list of claims at /:name/all
|
||||||
* fetching: a temporary page while the request is being made (with a loading bar?)
|
* 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?)
|
* eslint with style guidelines
|
||||||
* 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)
|
* implement a design for the front end
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
<option value="false">False</option>
|
<option value="false">False</option>
|
||||||
<option value="true">True</option>
|
<option value="true">True</option>
|
||||||
</select>
|
</select>
|
||||||
<br/>
|
<p><i>By clicking 'Publish' I attest that I have read and agree to the <a href="https://lbry.io/termsofservice" target="_blank">LBRY terms of service</a>.</i></p>
|
||||||
<button id="publish-submit">Submit</button>
|
<button id="publish-submit">Publish</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -34,7 +34,7 @@ module.exports = function(app){
|
||||||
res.status(200).sendFile(filePath);
|
res.status(200).sendFile(filePath);
|
||||||
})
|
})
|
||||||
.catch(function(error){
|
.catch(function(error){
|
||||||
console.log("/:name/:claim_id error.")
|
console.log("/:name/:claim_id error:", error)
|
||||||
routeHelpers.handleRequestError(error, res);
|
routeHelpers.handleRequestError(error, res);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -47,7 +47,7 @@ module.exports = function(app){
|
||||||
console.log("/:name success.")
|
console.log("/:name success.")
|
||||||
res.status(200).sendFile(filePath);
|
res.status(200).sendFile(filePath);
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log("/:name error.");
|
console.log("/:name error:", error);
|
||||||
routeHelpers.handleRequestError(error, res);
|
routeHelpers.handleRequestError(error, res);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue