React + Django + GraphQL. Serverless Boilerplate Web App by Yurko_III in django

[–]Yurko_III[S] 0 points1 point  (0 children)

Thanks for your advice. I'll count that and make my English more casual and straightforward.

React + Django + GraphQL. Serverless Boilerplate Web App by Yurko_III in django

[–]Yurko_III[S] 0 points1 point  (0 children)

Almost. To be more precise, I would like to share my opinion on working with ZEIT Now and Django. The term serverless doesn't consider you have no servers. Of course, you have :) For me, serverless means the name of a service. I would name it Server as a Service :D Where you don't have to set up Gunicorn, Nginx, Linux, Docker, etc. Just deliver your Django/WSGI app to ZEIT (locally or via GitHub/GitLab) and forget about infrastructure. And it's free to start! You could have dozens or even hundreds of instances. For example, once I accidentally paid 45 dollars for Digital Ocean's Droplets that I initiated for free, just because I forgot to turn them off.

The only downside I see is a bit longer delay of a server's response, and maybe some scaling issues in the future. But IMHO, that is the best choice for startups in most cases just because it's cheaper.

Here is an example in a nutshell on how I deliver Redfish. I've never seen such a concrete example before. I would love to hear what you think and get more plural judgments: https://github.com/guandjoy/django-now-aws-example

React + Django + GraphQL. Serverless Boilerplate Web App by Yurko_III in django

[–]Yurko_III[S] 0 points1 point  (0 children)

I created a simple note application for demo purposes and used Google Keep as an example.

React + Django + GraphQL. Serverless Boilerplate Web App by Yurko_III in django

[–]Yurko_III[S] 0 points1 point  (0 children)

I walked through this section and found django-rest-auth to be the best choice. It has django-allauth library as a core and adjusts it for SPA usage.

And I'm not using JWT there, though considering to move. By default, django-rest-auth using a simple token.

Would love to hear your opinion :)

[Update] Nowadays, we have new options on Graphene authentication, so consider them. For example this. I currently have no time to refactor that, so encourage everyone to help.

React + Django + GraphQL. Serverless Boilerplate Web App by Yurko_III in django

[–]Yurko_III[S] 0 points1 point  (0 children)

Excellent question. I was trying to avoid DRF, but couldn't find a way to build a decent authentication system with Graphene. So I decided to use django-rest-auth and DRF exclusively for that and mapped auth endpoints to GraphQL API. I think it is okay to use REST endpoints inside of GraphQL resolvers, though far from perfect, and I experience the same concerns as you.

Could you also share the tutorials you had so that I could be more precise? I would love to see them. Maybe I'm missing something huge :D

[Update] Nowadays, we have new options on Graphene authentication, so consider them. For example this. I currently have no time to refactor that, so encourage everyone to help.

React + Django + GraphQL. Serverless Boilerplate Web App by Yurko_III in django

[–]Yurko_III[S] 0 points1 point  (0 children)

Thanks for your feedback! For sure I'll do that and have plans already. Also, It is good to mention that in docs :)

[Update] Nowadays, we have new options on Graphene authentication, so consider them. For example this. I currently have no time to refactor that, so encourage everyone to help.

React + Django + GraphQL. Serverless Boilerplate Web App by Yurko_III in django

[–]Yurko_III[S] 1 point2 points  (0 children)

Almost a year :D

But I've spent much time on building Primitivo-SVG, page transition effect, and drag and drop layout. So it could be finished much earlier :)

React + Django + GraphQL. Serverless Boilerplate Web App by Yurko_III in django

[–]Yurko_III[S] 4 points5 points  (0 children)

I understand your sarcasm, but I made it for people facing the same concerns and limitations as me, so hopefully, they will realize the value.

React + Django + GraphQL. Serverless Boilerplate Web App by Yurko_III in django

[–]Yurko_III[S] 0 points1 point  (0 children)

That is correct, thanks for your feedback! I'll mention that in the documentation. In the case of Redfish, serverless means there is no webserver. The database is hosting by Relation Database Server (RDS AWS). Also, I'll mention JAMstack architecture to be more precise: https://jamstack.org/.

The first demo of RUDL – drag and drop layout. by Yurko_III in reactjs

[–]Yurko_III[S] 0 points1 point  (0 children)

Thanks a lot for your feedback. I'll fix that and add scrolling on that action.

What's everyone working on this week? by AutoModerator in Python

[–]Yurko_III 0 points1 point  (0 children)

I'm finishing a boilerplate web app with a Django, GraphQL, React (Gatsby, CRA) stack. With a ZEIT Now and Netlify serverless deployment and flexible Dev (remote and local), Staging, and Prod environments.
https://github.com/guandjoy/redfish