Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running with Serverless Framework #173

Open
scandinaro opened this issue Dec 13, 2018 · 4 comments
Open

Running with Serverless Framework #173

scandinaro opened this issue Dec 13, 2018 · 4 comments

Comments

@scandinaro
Copy link

Has anyone successfully setup react-universal-component/server with serverless framework to run with api gateway and lambda?

@ScriptedAlchemy
Copy link
Collaborator

ScriptedAlchemy commented Dec 16, 2018

I’m about to deal with this nightmare lol. So what I think. You need to supply the assets Json file to the micro service.

I’m in talks with webpack right now about how to add some other things to. So flush chunks wants a webpack dependency graph, if you give it that then it should work. If this is a company project, feel free to invite me into the private repo, I can sign anything. ScriptedAlchemy is a business as well for contracting stuff at larger scales.

So I can sign NDA or whatever if you want me to look at how you pass thing is / if you can. Dont know your protocols but I imagine it’s a “no, can’t do that”. In that case. Can you paste me a demo or a demo repo of some kind?

If you solve it, it would be great to share what you needed to do and I’ll gladly credit you in the readme for the contribution.

Otherwise, I’ll probbably attack this next quarter.

RUC is React.Suspense (obviously Facebook cleaned it up for internal use) check the dependents on the repo and you’ll find facebooks React right there. So if Suspense solves the problem, so be it. The api is almost the same too 🤣😂

@kukagg
Copy link

kukagg commented Jan 3, 2019

I’ve used the AWS Lambda with the github.com/apex/up quite successfully, it’s quite trivial to get working.

@ScriptedAlchemy
Copy link
Collaborator

@kuka we would really appreciate a copy paste example of this for the readme along with some instructions.

Lambdas are the future for many and it would have me a Hugh headache figuring it out

You can also message me privately and I’ll make a fake one from the example you gave

@kukagg
Copy link

kukagg commented Jan 3, 2019

Let me know your goals first @ScriptedAlchemy. By running on apex/up, I mean the actual app with the react-universal-component within the build not the Lambda serving components directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants