Lurker News
I 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 comments
bazjones1 reply#
The quickest thing to develop in is normally what you know. I find django the most productive web framework for things that might take off (for purely static sites I use Hugo and serve the site from S3, and deploy it using cloudformation - a great combo that lets me bring up a landing page in an hour or so).

It sounds like deployment is what you want to simplify. While there is extra overhead in learning to use docker, deployment is one of the major issues it solves. I spent a day or two learning docker and docker compose, and now I have a local dev environment I can work in, and I'll be able to deploy to a host quite simply. Makefiles are an excellent, simple companion to docker, so it's also worth learning them.
The big benefit of this is that you abstract your code from how to run it. So today you might like django, tomorrow ruby/language du jour, but all of that would still be built as a docker container which you'd be able to deploy to the same host with minor modifications.
Also, to set up user accounts, create storage buckets, etc check out terraform. The language it uses, HCL, is a trainwreck if you need conditionals, but apart from that it works well and is simple (too simple, that's the trouble). So a combination of:
* whatever web framework you're productive with
* built into a docker container
* with makefiles to ease administrative tasks
* terraform to configure a cloud backend
is a very powerful combination. But yeah, more stuff to learn. At least this approach means you can swap out the web framework for any other language and nothing else really needs to change.

westoncb#
This is a quite a bit in-line with my thinking. Probably best to go ahead and spend a little time figuring out Docker (and the best way of using it with some hosting service... I'll check out terraform).
chuckdries1 reply#
I'm surprised nobody is talking about Express for the back end. Maybe it's because I hail from the front end world, but I'm already so comfortable in javascript I'm faster in it than if I had to learn anything else.

For the front end, I like Vue because it's just react with less boilerplate.

dyeje8 replies#
It blows my mind that there still isn't a polished ORM for the node.js / Express ecosystem.
jchw1 reply#
Precisely this. I came from the Django world to try starting a Node.js project, and was absolutely blown away by how immature ORMs and even database libraries felt. In Python, you have SQLalchemy and Django ORM, both of which are fantastic and make ample use of the language. But for JavaScript, it felt like an uphill battle, especially if you want to do anything fancy.

Of course you don't _need_ an ORM or at least you definitely don't need one as full-blown as Django ORM. But I didn't even feel comfortable using any of the solutions I saw that were supposedly the 'best.' And yet, when I went and evaluated the solutions, I do agree they were the best - I just never felt like they were mature enough to really use yet. As far as not using an ORM goes, certainly this is doable, but at the end of the day if you don't want to hardcode a bunch of SQL queries and statements you probably are going to need to write code that will begin to look awfully like ORM code for basic operations...

mmcnl#
Most Python libraries are a lot more mature than NodeJS libraries. This makes sense because they are also often a lot older. That being said, all ecosystems have their up- and downsides. Fpr example, I think package management for NodeJS is infinite amount of times better than for Python. Pipenv only came around one year or so ago.
connorelsea#
There are multiple. Sequelize is the best and I've used it in a few projects
hardwaresofton#
Typeorm has been fantastic for me: https://github.com/typeorm/typeorm

It strikes just the right balance between the data modeling approach and query building for me.

friedman231 reply#
> ORM for the node.js / Express ecosystem

Coming from Python world, it's probably for the best that nobody is using ORMs.

jamestimmins5 replies#
Can you expand on your logic here? Is this because Python ORMs have gotten too bloated?

Continue this thread — 5 replies

szymonides#
Have a look at http://loopback.io Express with scaffolding and connectors to memory, MongoDb, MySql, MsSql and other.
jashmatthews#
Everyone complains about ActiveRecord, but other ecosystems often have far worse options to choose from than AR and Sequel.
oreganoz1 reply#
Yeah, well, what else did the romans ever do for us?

Continue this thread — 1 reply

eagsalazar2#
All those listed in the SQL category (the category almost everyone actually cares about) are total crap compared to, for example, ActiveRecord. GP said polished not plentiful.
golergka#
Have personal experience with Sequelize and TypeORM, both are very far from being polished and finished.
andrei_says_1 reply#
Rails still rocks, ruby is still beautiful and elegant, Heroku is still incredibly easy to deploy to. Vuejs is a good option for complex data driven ui.
burlesona1 reply#
This is my go-to as well, incredibly easy and fast to get going but also scales reasonably well.

The only caveat I’d say is I prefer Roda over Rails for APIs and simple projects.

andrei_says_#
Do you happen to use rodauth with rails? And sequel?
DatabaseGuy421 reply#
My answer is probably seen as unconventional on Hacker News, but keep an open mind and you'll be pleasantly surprised.

I suggest you sign up for a free account at https://apex.oracle.com/ to try out Application Express (APEX). It's a free, web-based development tool for building modern, responsive and secure web applications.
It's a mature product that has existed for around 18 years, and it has a long list of features, check out the list here: https://apex.oracle.com/en/platform/features/
Since all these features are built in, you don't need to go shopping for the usual mix of libraries, build tools, external services, etc. For 95% of what you want to build, it's all there already as part of the framework.
The best thing is that you can get started and be developing web applications within minutes on this platform, without writing a single line of code. Even though you start out with no code/low code, you can add as much code as you want and go to any complexity later. The framework doesn't stop you from going "full code".
There's also a great, friendly and vibrant APEX community that shares experiences, develop plugins and tools, etc. See https://apex.oracle.com/en/community/community-resources/
Also, if you are worried about vendor lockin (any more than AWS or Azure or Google or whatever "framework du jour" locks you in), it should be noted that you can download and use APEX for free on your own infrastructure (or a DigitalOcean droplet or whatever). Also, APEX can run on the Express Edition (XE) of Oracle, so you can build and deploy web apps without ever having to pay Oracle a single dollar.

mirko221 reply#
Oracle and free in same sentence is laughable to say the least, everything they touch turns into money grabing venture, and even if free now there is no guarantee it will be free tomorrow.
DatabaseGuy42#
The fact remains that Oracle has not charged a dollar for APEX for the last 18 years and counting.

Load more comments