-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Migrate ReDoc to React #327
Comments
I can't in Angular, so React sounds perfect 👍 |
Coming from server side development background, I can understand JavaScript code only if it is written in typescript :) any framework is fine if app's code is in typescript, but I do not know if react is good with typescript? |
Yes , typescript with react is the best. Here there is a starter guide: https://www.typescriptlang.org/docs/handbook/react-&-webpack.html |
@avkonst yes, react is pretty good with typescript! |
Hey @RomanGotsiy, thanks for the ping. Without shamelessly plugging, that's exactly what we did at my company, we created Lincoln, which we've credited to ReDoc as inspiration. We enjoyed the experience working with React, and found it easier to get started because we had readily available resources in house with React knowledge. |
I'm entirely useless at Angular, but only bloody awful at React. Big improvement for me, happy to see it coming.
|
👍 yes from me!! |
@RomanGotsiy any time frame for this? would like to help. Thanks. |
From an external point of view, React seems to be of broader acceptance in the open-source community. I still think Angular has good traction on the enterprise side yet, I believe they're less people in the Angular community likely to contribute than in the React one. Both frameworks are capable of achieving the same though. If you feel comfortable enough with React, then go for it ^.^ |
Does this mean you might also revisit the idea of basing the rewrite on Gatsby? You would get a lot of amazing things for free:
|
Hey @RomanGotsiy any timeframe for this before you make the repo public and open some tickets for us to start contributing ? Thanks. |
Hey @j26nz, Thank you! I am very close. Hopefully, I will publish something to branch till the end of the week. |
@RomanGotsiy - is the first react version for OpenAPI 2.0 or will it support 3.0 too? |
@suds123 Will support OpenAPI 3.0 + OpenAPI 2.0 via converting it to OpenAPI 3.0 |
@suds123 but it won't support all the OpenAPI 3.0 for now, just some subset (basically all the corresponding OpenAPI 2 features + |
Hey, everybody, It takes me more time than I expected but I'm really close to publishing the first alpha release. Here is what's already done (+sneak peek 🎥):
Todo
Thanks everyone for patience! I see ReDoc community is excited about this rewrite and this keeps me motivated. Special thanks go to @philsturgeon for his awesome article covering ReDoc. btw, I've set up a newsletter for ReDoc updates and changelog: http://eepurl.com/c4RsdH. |
This is nuts!! Thanks for sharing with us. Keep up the great work! 👏👏👏 |
@shenghu, @zufrizalyordan sorry for long reply, I've been traveling whole last week. This PR is WIP. This is not alpha release, just a dump of the progress with the rewrite. |
@RomanGotsiy - Is it possible to use this in a react app? using bundle.js somehow? |
Hey everybody 🙌 ! But I finally can again concentrate on ReDoc 🎉 ! So I will try my best to release proper alpha version until the end of the next week! Thanks everybody for being patient! Stay tuned! @j26nz not yet, unfortunately, will be possible once I'm done with alpha. |
@RomanGotsiy I can see the progress and it's creating bundle and spec-url is back 😄 keep up the good work mate ! Will it be possible to send the spec (yaml definition) instead of url in alpha release ? Our API return data in swagger - we want to change swagger dynamically. Any suggestions? |
It would be awesome if you could go over the issues and label the issues that will be addressed with this rewrite. |
@j26nz thanks for kind words! I'm really really close to the alpha!
Sure it will be possible. Same as it worked before, you'll be able to pass it to @SebastianStehle yep, this makes a lot of sense! Will definitely do once release the alpha. |
@RomanGotsiy - I just did a try of building and launching the app and it works great! I had the app started on http://localhost:9090. |
@suds123 yes, indeed! P.S. Also, it already supports both OpenAPI 2 and OpenAPI 3. OpenAPI 2 is converted to OpenAPI 3 so you can improve perf a bit by converting it ahead of time using converter by @MikeRalphson (which is used internally by ReDoc btw) |
@RomanGotsiy - Thanks! I'll try that. Last time I just did a |
@RomanGotsiy - Yes it works! Thanks! |
Hi there ! Thank you for your awesome work ! I tried to pull the new commits and I'm getting the following error : (I have no error on the http://editor.swagger.io/, and the previous version was ok)
|
@alexjomin pull the latest changes and try again. It should work now. |
@RomanGotsiy That's fine now ! thank you |
@RomanGotsiy Do you think the alpha will be ready by early December? Eagerly waiting.. :-) |
It is ready today 🎉 🎉 🎉 😌 Just created tag v2.0.0-alpha.1 and it was just pushed to npm by Travis CI! Changelog here: CHANGELOG.md All the alpha releases will be tagged with
I haven't created demo yet, though. Will work on this on weekends! I didn't spend so much time on updating docs 📝 so any feedback/help with clarifying them would be appreciated! 🙇 Let's report all the related issues in a separate issue to not make so much noise here. Also, On weekends I will try create |
I've just quickly hacked up an example of using ReDoc as a React Component with And here are only changes required to install and use ReDoc: Redocly/create-react-app-redoc@da80371 |
Hello @RomanGotsiy, Any update on the move to react? |
I think this can be closed already 😃 |
v3 support on redoc seems to be complete Redocly/redoc#327
I have a bulky swagger.json and the page takes forever to load with Redoc standalone . Is there a way to get around it? |
@pvs1 we're sorry... we don't have a free open source version that will do that. We do have a paid version which has further performance enhancements. If you are interested, you can try it out for a free trial. You can reach us via the email at the bottom of https://redoc.ly |
Hey, ReDoc community!
To support OpenAPI 3.0 I am working on a major refactor of the codebase. As part of this refactor I am considering rewriting ReDoc view layer completely to React.
Why?
I've been working with React on a few side project for the last 5-6 month and I really loved working with it comparing to Angular:
Also, I often hear in the issues or PRs that "I don't know Angular but I will try". Probably React can lower the barrier for new contributors.
I will try to achieve fully backward compatibility with the Angular version.
Now I want to hear the voice of community!
What do you think? Do you find this idea is good or bad! Any concerns! Or just vote 👍 or 👎
Thanks in advance!
cc contributors (sorry for bothering): @bfirsh @brendo @adamaltman @cesarlevel @IvanGoncharov @amanganiello @kedashoe @alairock @Joe-noh @gierschv @jsmartfo @jaingaurav @agallou @jacobbaskin @MikeRalphson @bennyn @adamd @LeFnord @wilsonge @philsturgeon @khorolets @pgolm @jfeltesse-mdsol @Alfaspider @oblakeerickson @Jean-Daniel @KtorZ @jimmyjames @bioball
The text was updated successfully, but these errors were encountered: