News for hackers. Stuff that matters.
Re:Ask HN: Which stack will get my MVP API off the ground fa... by fastbeef on Friday October 18, 2019 @04:09PM (#21294690)
What’s the easiest/best way to host python+flask?
Re:Ask HN: Which stack will get my MVP API off the ground fa... by xsimplify on Friday October 18, 2019 @05:04PM (#21295062)
I recommend using Dokku to save money! It’s the open source version of Heroku. You can deploy by adding one 2 line config file to your repo, the you “git push dokku master” and it builds and deploys your website in a few seconds.

You can use a digital ocean or light sail instance to host Dokku for way cheaper than Heroku and you have more control of the machine. Downside is Dokku is made for one server, so you can only really scale to like 64 cores before you need something else.

Most apps will never need more than one server realistically, but you have to determine that for yourself!

I use it for a Flask app. FWIW, I believe digital ocean has tutorials and an image to use to get Dokku off the ground fast!

Re:Ask HN: Which stack will get my MVP API off the ground fa... by wilson_4 on Friday October 18, 2019 @04:16PM (#21294739)
Easiest? Probably heroku after you get past the initial boilerplate - but can quickly become expensive.

Most cost efficient would be to Spin up a cheap droplet in digital ocean, install docker-compose with a Postgres service and python image. In the python image, just boot up a Django server on port 80. If you need https, youll need to add something in front of Django, like nginx to handle ssl termination.

App engine could also be a very quick and cheap way - you get ssl, and domain for free, but you do need to buy into their way of doing things, which has a bit of a learning curve .

Re:Ask HN: Which stack will get my MVP API off the ground fa... by mythrwy on Friday October 18, 2019 @04:40PM (#21294899)
I'd use Gunicorn instead of Django dev server.
Re:Ask HN: Which stack will get my MVP API off the ground fa... by wilson_4 on Friday October 18, 2019 @04:54PM (#21294998)
Yes, definitely for production use. Getting started though the dev server is fine for testing.
Re:Ask HN: Which stack will get my MVP API off the ground fa... by thibautg on Friday October 18, 2019 @05:07PM (#21295092)
Apache + mod_wsgi