Issue #43 : Feature rest api http download project#44
Issue #43 : Feature rest api http download project#44tlgman wants to merge 1 commit intojakoblind:masterfrom
Conversation
|
Nice work! I think we have to move this code of Gatsby. Because in production Gatsby just generate static pages. That means only html/css/js. No servers. That means we can't have a REST endpoint there. The best option I see is to create a AWS lambda function. To prepare for that we need to isolate this code to one single file with one single function, and then I can do the job of converting it to the lambda, setting it up, pointing DNS, etc. Test would be nice! Maybe unit tests? I have jest set up already. This is an example: https://github.com/jakoblind/webpack-autoconf/blob/master/src/configurator/project-generator.test.js |
f6ca58d to
de164db
Compare
|
Ok, thanks for your feedback. I don't know really how lambda aws are working. |
|
nice! will have a look at it and try it out. I'm going offline for 2 weeks, but will have a loook when I come back 👍 |
Issue #43
Add api to download project from GET url.
Example :
GET http://localhost:8000/api/webpack/?main-library=react&transpiler=babel&utilities=lodash,moment&image=svg,png&optimization=react-hot-loaderI don't know if it's right way to do that with Gatsby, i'm waiting for your feedback 😄
I want create some backend tests but i don't know if you're ok to install another module to do that.