Been using that to host small projects here and there of late. Works well for keeping the app 12factor, and worry less about Devops
Ask HN: What's your favorite way of getting a web app up quickly in 2018?
181–190 of 569 posts
Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?
#182If you have the luxury of picking your stack, and don't mind using modern, clean PHP, try Laravel and Forge. Laravel is a solid framework, and Forge handles the deploys, even going so far as to be able to deploy automatically when you push to master. Plus, you can use Laravel Spark to build an application framework base, with user login, teams, payment, all that written for you. If you're not able to pick your stack,…
Laravel + Laravel Homestead (Pre-configured Vagrant VM) + Laravel Forge [2] (Server config + deployment processes) makes my life too easy.
It doesn't even have to be a PHP/Laravel project for this process to really make your life easy.
The Homestead VM has the same services installed and configured the same was as the forge server. Nginx (or Apache), mysql/mariadb, postgres, sqlite, node/bower/grunt/gulp, redis, memcached, beanstalkd, elasticsearch, go, etc
Homestead has pre-built commands to make it very easy to add new sites/projects, does the port forwarding for you, handles the shared folders easily. Forge's UI allows you to not have to ssh into the server for things like restarting nginx/mysql/postgres, 2 click let's encrypt SSL certs, configure/restart queue workers (via supervisord), configure cron scripts and schedules, deploy via git with custom deploy scripts. You can create databases, create database users and manager their permissions. Create firewall rules and manage daemons.
I spend all day in the PHP/Laravel ecosystem so it works for me - but I find myself pushing non-PHP products through the same pipeline most of the time because it's so easy and just works.
1. https://laravel.com/docs/5.6/homestead 2. https://forge.laravel.com/features
Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?
#183Earlier quoted context omitted.
I second this; Go + React.js (Vue.js in my case) I talked about it just a couple of hours ago [1]. [1] https://news.ycombinator.com/item?id=17215658
That's interesting... I think I'll spend a couple of days playing with Vue to see if I can get rid of Webpack and Babel, because they're an enormous pain to set up (especially as they keep changing their config schema every major version release - I think I've climbed Webpack's config learning cliff three times now).
It can be as simple as a script tag at the bottom of your html and then writing ES5 React.
Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?
#184Earlier quoted context omitted.
It blows my mind that there still isn't a polished ORM for the node.js / Express ecosystem.
Datastore Agnostic: - JS-Data - https://github.com/js-data/js-data SQL: - Sequelize - https://github.com/sequelize/sequelize - Bookshelf - https://github.com/bookshelf/bookshelf - Objection - https://github.com/Vincit/objection.js - TypeORM - https://github.com/typeorm/typeorm NoSQL: - Mongoose - https://github.com/Automattic/mongoose - Thinky - https://github.com/neumino/thinky
Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?
#185For some reason people seem to constant doubt Ruby-ists and Rails Devs. I completely get that other languages have huge benefits over Ruby. Golang being compiled or Java running anywhere, etc... And ruby is slow, totally understood. But if youre talking about getting a functioning webapp up and running quickly ... no way anyone is beating a Rails dev in setting one up. The piping and scaffolding are all built in and…
Well, here's one reason: the amount of time saved when standing up a webapp on Rails is absolutely insignificant compared to the life of that webapp in all situations where that webapp is anything serious. Not to say that Rails apps aren't serious! I'm just saying that the time saved in standing up a webapp with Rails vs., say, Java, is miniscule compared to the develooment life of that application, overall. In short…
Rails is optimised for fast development. That isn’t just about first bring-up, but about long-term velocity too. You will almost certainly save time over pretty much any other available solution, even over the long term.
Where Rails and Ruby fall down is going to be in performance and complexity. If your “simple” web app becomes a sprawling and complex mess, Rails won’t deal with that elegantly. And if you suddenly have to scale to millions of users, you might struggle.
Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?
#186I write the server-side in Go, cross-compile to a Linux binary, and set that up as a service on a vanilla Ubuntu box (usually Digital Ocean). Deploying a new version is a matter of sftp'ing the new binary (and any templates, images, etc) over the top of the old one and restarting the service. If I need a database then I use Postgres, and the setup for that can be a pain, so I get it documented/scripted using Ansible.…
1. Server side in Go 2. Cross-compiling it 3. sftp'ing and restarting the service everytime 4. postgres 5. ansible 6. Makefiles 7. Webpack 8. Babel 9. React
Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?
#187Vanilla php + html5up + sqlite3. Everyone else here is trying to be stylish and fancy. Your customers don't care what language it's in or whether the code is beautiful. No cutting edge incomplete frameworks, convoluted tooling, piles of inaccurate documentation to read, inexplicable cryptic error messages with a bunch of incorrect solutions on stack overflow, or other incompetently over engineered bullshit. Just go a…
Why not Python?
Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?
#188Vanilla php + html5up + sqlite3. Everyone else here is trying to be stylish and fancy. Your customers don't care what language it's in or whether the code is beautiful. No cutting edge incomplete frameworks, convoluted tooling, piles of inaccurate documentation to read, inexplicable cryptic error messages with a bunch of incorrect solutions on stack overflow, or other incompetently over engineered bullshit. Just go a…
Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?
#189With Bootstrap and Devise (auth) and many other ruby gems / npm packages, we can prototype a project extremely quickly with this stack by simply following the conventions of the community and trying to avoid writing too much custom code.
Re: Ask HN: What's your favorite way of getting a web app up quickly in 2018?
#190Take a look: https://projects.spring.io/spring-roo/