JoelOtter / kajero

Interactive JavaScript notebooks with clever graphing
Other
1.87k stars 110 forks source link

Discussion: What would it take to turn this in to a front-end for a JSON API? #50

Closed Joshfindit closed 8 years ago

Joshfindit commented 8 years ago

Let's count out user permissions for a second, as I'm sure the standard practices are enough (stop me if I'm wrong).

Assuming a simple REST API that works with JSON objects with Markdown content areas, how difficult would it be to use Kajero to view the rendered content, edit in-browser, then submit the change to the API?

Please explain as though you're talking to someone with only rudimentary JS knowledge. :)

Love the design, and would like to use this for a personal project.

pedro93 commented 8 years ago

Disclaimer: I am not this project's dev.

Correct me if I'm wrong but are you talking about making kajero a backend service to which you send a json with the markdown you want rendered and receive the UI?

Joshfindit commented 8 years ago

Disclaimer acknowledged.

Correction: I'm asking about making Kajero a browser-based api client that sends and receives the unrendered JSON

pedro93 commented 8 years ago

Ah ok I think I understand now. The existing code should be able to do what you ask by simply adding a upload from feature and save, where the API payload would be the markdown content stringified. As the dev of this project stated in other issues for now he won't accept pull requests until his thesis is done, afterwards this can be done relatively easily in my opinion.

JoelOtter commented 8 years ago

You should be able to do that relatively easily, though you'd need decent knowledge of React, Redux and how Redux handled asynchronous actions.

I wouldn't accept a PR on it, though, as this sounds like a different aim to the one Kajero has, and a feature most users would not want. I'll be hanging out in our Gitter room if you'd like some guidance on making a fork - the issue tracker probably isn't the place for that.

JoelOtter commented 8 years ago

(Closing because it's not directly related to changes to Kajero itself - as mentioned, feel free to ask any questions on Gitter. 😄 )