Ask HN: What's your favorite way of getting a web app up quickly in 2018?
542 pointsI am still frustrated with the amount of incidental complexity required whenever I want to do this. My latest attempt was to use a Digital Ocean droplet with Django pre-installed. I guess the biggest issue there was setting up something so that I could easily deploy my local version to the droplet (ended up using git/Github), and ensuring those two environments were in sync. I looked into Docker in some detail about a year ago, and I think it's the only pretty good solution for this I've come across—but there's a steep up front cost in learning/setup etc. (or so it seems).
What services and technologies do you use when you'd like to quickly build a web app which may never be more than a prototype, but may also turn into something real? A big aspect of what I'm wondering is about automatically setting something up for keeping local/production environments in sync, quickly deploying to production, and not having to mess with a bunch of server configuration things, user accounts, security, etc.
Comments (558) 189 threads
Earlier commentsThat said, never mind 2018...there are a whole load of joys (and horrors) that fresh devs these days won't ever really understand the same way because nothing like Docker or Heroku existed even just a decade ago.
You know, paying £3 a month for a shared hosting plan with 100MB disk space, and PHP4, phpmysql, Apache at your disposal.
Downloading FileZilla and deploying by dragging and dropping the new folder into the client, making sure to overwrite.
Debugging by using the same client to edit files and add logging in production.
Having to write htaccess rewrite rules for 'pretty' URLs that any developer today will think is just default behaviour for a web framework.
Having to use SVN and CVS, if using version control at all...
It's not like you can't still do any of this, it's just that dragging `index.php` into an FTP client isn't the default advice for deploying a simple site any more. For better and for worse.
I don't know how you guys did it 10 years ago, I couldn't even last 2 weeks with that system
If you need an ORM and you don't need any interactive views then Django is a good choice. (Interactive views are views that are stateful in the browser: an interactive graph, an interactive table, a To-Do list, etc.)
If you need interactive views then you'll have much easier time using a React+Node.js framework such as Next.js (https://github.com/zeit/next.js) or Reframe (https://github.com/reframejs/reframe). And if you need an ORM you can use one of the many Node.js ORM such as https://github.com/typeorm/typeorm
If your site is static then go for a static site generator such as https://github.com/nozzle/react-static. ("Static sites" are webapps/websites that are HTML-static: The HTML doesn't need to be dynamically generated at request-time but is static, no server is required, and your app can be statically served.).
Disclaimer: I'm Reframe's author.
Pre-built LXD image with MariaDB, nginx and PHP. Git for deployment.
Provisioned and live in three seconds with support for rollbacks, migrations, atomic updates and zero downtime.
Should work well for most other scripting languages too.
All comments shown.
Couldn't load more comments. Check your connection and try again.