Speech as a package #416

Merged
bones7242 merged 89 commits from speech-as-a-package into master 2018-04-18 21:47:34 +02:00
bones7242 commented 2018-04-17 20:58:43 +02:00 (Migrated from github.com)

This pr converts the codebase to a package which exports a customizeable Server class that can be consumed and used by www.spee.ch and other spee.ch implementations

This pr converts the codebase to a package which exports a customizeable `Server` class that can be consumed and used by `www.spee.ch` and other spee.ch implementations
neb-b (Migrated from github.com) approved these changes 2018-04-17 22:46:43 +02:00
neb-b (Migrated from github.com) left a comment

Looks good. A few comments but nothing major.

The main one being, do we need to expire users sessions?

Looks good. A few comments but nothing major. The main one being, do we need to expire users sessions?
neb-b (Migrated from github.com) commented 2018-04-17 22:27:10 +02:00

ORM

ORM
neb-b (Migrated from github.com) commented 2018-04-17 22:32:37 +02:00

This should probably be new Mysql() since it is a class function

This should probably be `new Mysql()` since it is a class function
neb-b (Migrated from github.com) commented 2018-04-17 22:33:42 +02:00

Don't commit this

Don't commit this
neb-b (Migrated from github.com) commented 2018-04-17 22:33:52 +02:00

This one too

This one too
neb-b (Migrated from github.com) commented 2018-04-17 22:37:07 +02:00

For these you can just do

this.configureLogger = loggerConfig.update
For these you can just do ``` this.configureLogger = loggerConfig.update ```
neb-b (Migrated from github.com) commented 2018-04-17 22:39:55 +02:00

Do we need to have any maxAge? It would be nice if the user was never logged out

Do we need to have any `maxAge`? It would be nice if the user was never logged out
neb-b (Migrated from github.com) commented 2018-04-17 22:40:27 +02:00

I thought handlebars was removed?

I thought handlebars was removed?
bones7242 (Migrated from github.com) reviewed 2018-04-17 23:17:02 +02:00
bones7242 (Migrated from github.com) commented 2018-04-17 23:17:02 +02:00

hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for spee.ch-components

hmm, the problem is that the server uses jsx for server side rendering, so it needs to be transpiled (I think that's the only part that needs to be transpiled), so I wanted to build a bundle and export that bundle. Do you think I should just transpile with babel and not actual bundle with webpack? That's what I did for [spee.ch-components](https://github.com/lbryio/spee.ch-components)
neb-b (Migrated from github.com) reviewed 2018-04-17 23:27:56 +02:00
neb-b (Migrated from github.com) commented 2018-04-17 23:27:56 +02:00

Oh I gotcha. I was confused.

I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own.

Oh I gotcha. I was confused. I still don't think this needs to be committed. You can build before publishing. IMO if someone is cloning the repo, they will be building the app on their own.
bones7242 (Migrated from github.com) reviewed 2018-04-18 21:26:22 +02:00
bones7242 (Migrated from github.com) commented 2018-04-18 21:26:22 +02:00

i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again.

i updated it to only transpile the two jsx render functions that are needed for SSR, the rest does not need to be built at this level, as the implementation will build the app again.
bones7242 (Migrated from github.com) reviewed 2018-04-18 21:29:39 +02:00
bones7242 (Migrated from github.com) commented 2018-04-18 21:29:39 +02:00

it's still being used in one specific case: for sharing videos on twitter via cards, twitter needs an html page with a video player embedded, so I am using handlebars to generate that one page when needed.

it's still being used in one specific case: for sharing videos on twitter via cards, twitter needs an html page with a video player embedded, so I am using handlebars to generate that one page when needed.
bones7242 (Migrated from github.com) reviewed 2018-04-18 21:47:29 +02:00
bones7242 (Migrated from github.com) commented 2018-04-18 21:47:28 +02:00

I guess we don't need to, and it does make a better user experience if the user doesn't need to log back in ever day. I eliminated the maxAge so sessions should last indefinitely.

I guess we don't need to, and it does make a better user experience if the user doesn't need to log back in ever day. I eliminated the maxAge so sessions should last indefinitely.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/spee.ch#416
No description provided.