From de3faa663d6cd0f4a5731e520554543ff1c2558c Mon Sep 17 00:00:00 2001 From: Shawn K Date: Fri, 9 Nov 2018 19:10:33 -0500 Subject: [PATCH 1/4] Update ubuntu16vpspersonal.md --- docs/ubuntu16vpspersonal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ubuntu16vpspersonal.md b/docs/ubuntu16vpspersonal.md index b7950b33..7f2f793a 100644 --- a/docs/ubuntu16vpspersonal.md +++ b/docs/ubuntu16vpspersonal.md @@ -8,7 +8,7 @@ * Domain name with @ and www pointed at your VPS IP * Email 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. ## You'll be installing: -- 2.45.2 From c405003231e87598c35fdce1f11bd55360690dc6 Mon Sep 17 00:00:00 2001 From: Shawn K Date: Fri, 9 Nov 2018 19:15:34 -0500 Subject: [PATCH 2/4] Update README.md Update setup instructions link. --- README.md | 35 ++++------------------------------- 1 file changed, 4 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 6b741065..0238f165 100644 --- a/README.md +++ b/README.md @@ -5,45 +5,18 @@ You can create your own custom version of spee.ch by installing this code base a ## Quickstart +### Ubuntu +[Ubuntu VPS Setup](./docs/ubuntu16vpspersonal.md) + _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)._ -#### Install System Dependencies: +#### System Dependencies: * [node](https://nodejs.org) * [MySQL](https://dev.mysql.com/doc/refman/8.0/en/installing.html) * [`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) * [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 Check out the [customization guide](https://github.com/lbryio/spee.ch/blob/readme-update/customize.md) to change your app's appearance and components -- 2.45.2 From 163d46340ee13babe223b2dafc163b304c1e25e9 Mon Sep 17 00:00:00 2001 From: Shawn K Date: Fri, 9 Nov 2018 19:17:31 -0500 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0238f165..bc157b1a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ You can create your own custom version of spee.ch by installing this code base a ### Ubuntu [Ubuntu VPS Setup](./docs/ubuntu16vpspersonal.md) -_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)._ +_Note: This is our new setup. For our old setup see the [fullstart guide](./fullstart.md)._ #### System Dependencies: * [node](https://nodejs.org) -- 2.45.2 From 7c7e16ea62847fcd4a8b35bfa19f7ff66745c584 Mon Sep 17 00:00:00 2001 From: Shawn Date: Fri, 9 Nov 2018 23:23:39 -0500 Subject: [PATCH 4/4] Change ambiguous routes, more distinct POST/login to POST/auth --- client/src/containers/ChannelLoginForm/view.jsx | 2 +- server/routes/auth/index.js | 2 +- server/routes/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/containers/ChannelLoginForm/view.jsx b/client/src/containers/ChannelLoginForm/view.jsx index 54dd8ad2..f033bd42 100644 --- a/client/src/containers/ChannelLoginForm/view.jsx +++ b/client/src/containers/ChannelLoginForm/view.jsx @@ -31,7 +31,7 @@ class ChannelLoginForm extends React.Component { }), credentials: 'include', }; - request('login', params) + request('auth', params) .then(({success, channelName, shortChannelId, channelClaimId, message}) => { if (success) { this.props.onChannelLogin(channelName, shortChannelId, channelClaimId); diff --git a/server/routes/auth/index.js b/server/routes/auth/index.js index 8bdbe1b6..dfe505d6 100644 --- a/server/routes/auth/index.js +++ b/server/routes/auth/index.js @@ -6,7 +6,7 @@ const handleUserRequest = require('../../controllers/auth/user'); module.exports = { '/signup': { method: 'post', controller: [ speechPassport.authenticate('local-signup'), handleSignupRequest ] }, - '/login': { method: 'post', controller: handleLoginRequest }, + '/auth': { method: 'post', controller: handleLoginRequest }, '/logout': { controller: handleLogoutRequest }, '/user': { controller: handleUserRequest }, }; diff --git a/server/routes/index.js b/server/routes/index.js index 5186467d..71223948 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -1,7 +1,7 @@ module.exports = { - ...require('./auth'), ...require('./pages'), ...require('./api'), + ...require('./auth'), ...require('./assets'), ...require('./fallback'), }; -- 2.45.2