3 ms·
The easiest thing to do is Heroku. They've really nailed it down and the +$2/month for their basic instance is easily worth it if you don't want to spend the ti
by 0xCMP 8y ago
The easiest thing to do is Heroku. They've really nailed it down and the +$2/month for their basic instance is easily worth it if you don't want to spend the time getting everything setup.
Automation requires infrastructure and infrastructure is cheap only if you know how to set it up.
I run ~3 side projects using Heroku to host a Django project with a GraphQL API talking to Heroku Postgres and Netlify the host the ReactJS frontend. I serve the API on heroku's free domain and put the react project under app.projectname.com and use token auth to talk to the API.
Deployments are super simple. Including updates to and managing the database.
- iopuy 8y agowhich token auth mechanism? Always curious to hear how others secure their endpoints.
- 0xCMP 8y agoI usually just reach for Django Rest Framework's token implementation. I know others use it so I figure it's good enough for something I'm just getting started with.
- hjnilsson 8y agoWhat do you use to connect Django models / Postgres to GraphQL?
- 0xCMP 8y agoGraphene does most of the work for me with Python meta-magic. https://github.com/graphql-python/graphene-django https://github.com/graphql-python/graphene-django
- isuckatcoding 8y agoSorry What did you mean by $+2? I see $7 for their hobby instance..?
- matt2000 8y agoI'm guessing he means "$2 more than a $5 droplet that you maintain yourself."