Cut staging from master #717

Merged
skhameneh merged 5 commits from master into staging 2018-11-10 05:28:34 +01:00
5 changed files with 9 additions and 36 deletions

View file

@ -5,45 +5,18 @@ You can create your own custom version of spee.ch by installing this code base a
## Quickstart ## Quickstart
_note: this is the quickstart guide, for an in-depth step-by-step overview visit the [fullstart guide](https://github.com/lbryio/spee.ch/blob/readme-update/fullstart.md)._ ### Ubuntu
[Ubuntu VPS Setup](./docs/ubuntu16vpspersonal.md)
#### Install System Dependencies: _Note: This is our new setup. For our old setup see the [fullstart guide](./fullstart.md)._
#### System Dependencies:
* [node](https://nodejs.org) * [node](https://nodejs.org)
* [MySQL](https://dev.mysql.com/doc/refman/8.0/en/installing.html) * [MySQL](https://dev.mysql.com/doc/refman/8.0/en/installing.html)
* [`lbry`](https://github.com/lbryio/lbry) daemon * [`lbry`](https://github.com/lbryio/lbry) daemon
* note: retrieve an address from the daemon and send your wallet a few credits (or join us in the [#speech discord channel](https://discord.gg/YjYbwhS) and we will send you a few) * note: retrieve an address from the daemon and send your wallet a few credits (or join us in the [#speech discord channel](https://discord.gg/YjYbwhS) and we will send you a few)
* [FFmpeg](https://www.ffmpeg.org/download.html) * [FFmpeg](https://www.ffmpeg.org/download.html)
#### Clone this repo
```
$ git clone https://github.com/lbryio/spee.ch.git
```
#### Change directory into your project
```
$ cd spee.ch
```
#### Install node dependencies
```
$ npm install
```
#### Create the config files using the built-in CLI
```
$ npm run configure
```
#### Build & start the app
_note: make sure lbry is running in the background before proceeding_
```
$ npm run start
```
#### View in browser
* Visit [http://localhost:3000](http://localhost:3000) in your browser
#### Customize your app #### Customize your app
Check out the [customization guide](https://github.com/lbryio/spee.ch/blob/readme-update/customize.md) to change your app's appearance and components Check out the [customization guide](https://github.com/lbryio/spee.ch/blob/readme-update/customize.md) to change your app's appearance and components

View file

@ -31,7 +31,7 @@ class ChannelLoginForm extends React.Component {
}), }),
credentials: 'include', credentials: 'include',
}; };
request('login', params) request('auth', params)
.then(({success, channelName, shortChannelId, channelClaimId, message}) => { .then(({success, channelName, shortChannelId, channelClaimId, message}) => {
if (success) { if (success) {
this.props.onChannelLogin(channelName, shortChannelId, channelClaimId); this.props.onChannelLogin(channelName, shortChannelId, channelClaimId);

View file

@ -8,7 +8,7 @@
* Domain name with @ and www pointed at your VPS IP * Domain name with @ and www pointed at your VPS IP
* Email Address * Email Address
* Ability to send 5+ LBRY credits to an address * Ability to send 5+ LBRY credits to an address
* Noncommercial use * Noncommercial use (highly suggested, but you still _could_)
* We recommend that you fork Spee.ch so that you can customize the site. * We recommend that you fork Spee.ch so that you can customize the site.
## You'll be installing: ## You'll be installing:

View file

@ -6,7 +6,7 @@ const handleUserRequest = require('../../controllers/auth/user');
module.exports = { module.exports = {
'/signup': { method: 'post', controller: [ speechPassport.authenticate('local-signup'), handleSignupRequest ] }, '/signup': { method: 'post', controller: [ speechPassport.authenticate('local-signup'), handleSignupRequest ] },
'/login': { method: 'post', controller: handleLoginRequest }, '/auth': { method: 'post', controller: handleLoginRequest },
'/logout': { controller: handleLogoutRequest }, '/logout': { controller: handleLogoutRequest },
'/user': { controller: handleUserRequest }, '/user': { controller: handleUserRequest },
}; };

View file

@ -1,7 +1,7 @@
module.exports = { module.exports = {
...require('./auth'),
...require('./pages'), ...require('./pages'),
...require('./api'), ...require('./api'),
...require('./auth'),
...require('./assets'), ...require('./assets'),
...require('./fallback'), ...require('./fallback'),
}; };