Live data from Hacker News

Ask HN: What's your favorite way of getting a web app up quickly in 2018?

news.ycombinator.com

311–320 of 569 posts

Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?

#312

As someone who operates a consultancy which has deployed more than 5000+ web apps in the last quarter alone. We exclusively use AWS Lambda, DynamoDB or if the app is complex, we use Amazon RDS. For search - AWS Elasticsearch Our preferred stack is Go + VueJS. WHY GO? It's much easier for our senior developers to ramp up a team of 10 developers on Go than say Python or Ruby. Suprinsgly, we have a few guys who are Go e…

Interesting to hear you're using Go and Vue.js.

With Go, are you using off-the-shelf web frameworks or libraries or do you have your own in-house framework/template?

So you said you're deploying 5000+ web apps a quarter. Are those new web apps? How many web apps are you deploying per dev head count?

Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?

#313
post #218

React, Express, Postgress, Nginx all in Docker containers managed with Docker Machine on a Digital Ocean box. It may not be the most simple/quick solution, but with some copy/pasting I can get something up rather quick and it's super flexible. Need OCR? Add a Tesseract container. Need a fileserver? Etc.

how do you handle authentication?

Depends. Most of the time, I don't need any, because it's a quick 'n dirty proof of concept. For production, at work, we have a federated login, so external. For side projects, I use a good ol' Postgress table.

Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?

#314
post #309

Earlier quoted context omitted.

Interesting, okku seems completely outdated but I'll try to look out for an Akka integration as it is a really powerful and stable actor model implementation. Has backpressure and all of the other reactive niceties too. You might just have converted me to clojure, haha.

I think most Clojure developers will tell you that it is wise at first to just use Java libraries directly, if you can. Look at wrapper libraries to see how the author approached the Java interop, then do it yourself. You are more likely to attain something that is maintainable, flexible and appropriate for your individual style and needs than using what someone else built for the purpose of interop for their needs.

Yeah, I'll probably do just that. Thankfully, I can research it more in my spare time.

I think I'll start with a hobby-project and see how well it goes.

Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?

#315

Django, Docker and AWS ECS and ELB. Absolutely worth the effort to learn how to build a Docker image and put together bash scripts to push the image and update an ECS service. We have a base project which includes nginx and uwsgi set up to simply serve the Django app and static files on port 80. Having an ECS Docker cluster with spare capacity greatly assists getting new projects up and running quickly, especially if…

May I ask how you’re managing secrets with this setup? For example, the secret key or database URL. Our current setup deploys an env file which is sourced before starting the process. I’m less sure how this translates to a production docket deployment.

In ECS you can store them in the task definitions which is easy but might not be secure enough in certain situations. More robust is to read them in from the Parameter Store see https://aws.amazon.com/blogs/compute/managing-secrets-for-am...

Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?

#317
post #309

Earlier quoted context omitted.

I think most Clojure developers will tell you that it is wise at first to just use Java libraries directly, if you can. Look at wrapper libraries to see how the author approached the Java interop, then do it yourself. You are more likely to attain something that is maintainable, flexible and appropriate for your individual style and needs than using what someone else built for the purpose of interop for their needs.

Yeah, I'll probably do just that. Thankfully, I can research it more in my spare time. I think I'll start with a hobby-project and see how well it goes.

The Clojurians Slack channel can be very helpful if you hit any snags.

Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?

#318
Not having a server at all is the easiest. I run my front ends on S3 / CloudFront. Backend is run on Lambdas, with state stored in DynamoDB/SimpleDB (can't wait for serverless Aurora though!).

create-react-app and aws-amplify gets you really far in a hurry.

I then normally use react-redux, @redux-offline/redux-offline, react-router-dom, and flow-bin.

Examples: - https://gitlab.com/kabo/synchronize-swatches - https://gitlab.com/kabo/hydrant-map - https://gitlab.com/kabo/cryptodo

For more backendy stuff I use serverless to manage lambdas.

Easy as :)

Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?

#319
post #297
post #27

Quickly? Firebase + React. Seriously, don’t overlook this combo. Auth just works. Hosting built in, no backend or database server to maintain. No API, just subscribe to a collection right from the view. It just works (and is easily swapped for the real deal if you need it). I made a guide/boilerplate to show you how (includes auth, CRUD, full text search, stripe subscriptions): http://getfirefly.org/

I'm having trouble building with this. Can you elaborate a little bit more about the steps after adding adding all three project. I can't understand this >> " Now let's connect our databases to our app by adding their "keys" to our app's environment ("env") files. You should generally keep connection keys like this secret, so first we'll rename our environment files to keep them from getting committed into git (the n…

My fault--I've re-added the sample env files, you can copy these, remove ".example" from the name, and add your keys:

https://github.com/sampl/firefly

Thanks for trying it out!

Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?

#320
post #141

Earlier quoted context omitted.

How many web apps can you name that don’t rely on any external gems? Packaging that mess is a pain in every scripting language.

Anything that runs on JRuby can be packaged as a single file.

And even with MRI, it's not as painful as people make out. Set `$GEM_HOME`, `bundle install`, tar up your app and the gems, stick them on the server.
Post reply on HN