TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What stack should I use to build my basic web app as of 3/29/18

31 点作者 mrsmee89大约 7 年前
Maybe we can make this a monthly thing, lol :-)

27 条评论

harperlee大约 7 年前
Whatever stack you know the best. The technology really doesn&#x27;t matter a lot, compared to a lot of other success criteria.<p>Unless the objective is to learn - then picking the one that you know best is not a good strategy :)
评论 #16705198 未加载
tga大约 7 年前
<a href="http:&#x2F;&#x2F;djangoframework.com" rel="nofollow">http:&#x2F;&#x2F;djangoframework.com</a> is overall one of the best documented + most stable web frameworks out there.<p>Besides the actual functionality, that you can also get from smaller libraries, you want a framework because it gives you standard go-to solutions for many common questions you encounter when making a basic, relational database backed application (database access, database migrations, templating, forms, validation, caching, translation, etc.)
评论 #16705397 未加载
评论 #16705430 未加载
madmax108大约 7 年前
The correct answer as of ${any_date_in_any_esoteric_format} is:<p>- It depends on what you are trying to build. Basic web app can be anything from a Trello clone to Instagram. Each has it&#x27;s own limitations.<p>- Go with what is tried and tested. Pick up something that is supported, where if you get stuck you can reach out to people for a fix. One of the few good things of the clusterf<i></i>k that the current JS ecosystem is is that many many amazing developers who are extremely responsive to questions are part of it. That makes life just a little bit easier.<p>- Use what you are comfortable with. Prefer a proper backend and frontend? Go for it. Everything in NodeJS is your cup of tea? Works just fine. In the end happy developer = productive developer. Just because assembly is 1000 times faster than Python does not mean you should code in assembly. Pick your tradeoffs.
评论 #16706896 未加载
1_player大约 7 年前
Where are the hipsters in this thread? Fine, I&#x27;ll be the hipster.<p>I&#x27;ve worked on pure PHP, Flask, Pyramid, Django, Laravel stacks, and I haven&#x27;t warmed up to any of those. I&#x27;m in the vocal minority that says Django made me hate Python.<p>So here&#x27;s my stack for 2018: Elixir+Phoenix on the backend, GraphQL as API protocol, React (and Typescript?) on the frontend.<p>Functional and immutable language on the backend + functionally-inspired data flow on the front end? Yes, please.<p>Now, if I could have monadic constructs and better typing on Elixir I&#x27;d be in heaven.
krob大约 7 年前
I feel it&#x27;s important to throw Laravel + Vuejs into the mix. It&#x27;s an extremely powerful framework on the LAMP side of things, fully PHP 7.2+ functional, and continues to improve w&#x2F; every major iteration from JWT, oauth2, queue workflows, console utility workflows, ORM, DBAL, Migrations, mutli-database support via PDO, blade templates. It&#x27;s pretty hard to go wrong.
BoorishBears大约 7 年前
I’ll throw a hat in the ring for WebGL+WebAssembly and x86 assembly on the server
评论 #16705812 未加载
mhd大约 7 年前
Basic? You need good documentation, and Philip Greenspun&#x27;s book is now available for free[1]! So go with that, although you might want to swap out Oracle with MySQL -- it&#x27;s from the same company anyway! AOLServer is still fine.[2]<p>[1]: <a href="http:&#x2F;&#x2F;philip.greenspun.com&#x2F;panda&#x2F;" rel="nofollow">http:&#x2F;&#x2F;philip.greenspun.com&#x2F;panda&#x2F;</a><p>[2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;aolserver&#x2F;aolserver" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;aolserver&#x2F;aolserver</a>
perilunar大约 7 年前
3&#x2F;29&#x2F;18? What sort of date format is that?<p>Regardless of your stack, use ISO 8601 for dates.
评论 #16705696 未加载
评论 #16706837 未加载
vatotemking大约 7 年前
The simplest stack for me is:<p>Frontend - Plain HTML&#x2F;CSS&#x2F;JS<p>Backend - Node, Express with Nunjucks for templating<p>If I want to get a bit fancy:<p>Frontend - Vue, Bootstrap4<p>Backend - Node, Express, Nunjucks<p>DB - SQLite3 using Sequelize as ORM<p>Surprisingly, you can accomplish lot of stuff with the second setup.<p>If im going to deploy to production:<p>Provider - Either small DO droplet ($5.00) or tiny AWS (free)<p>Webserver - nginx as reverse proxy for node (free)<p>Firewall - UFW (free)<p>Email - mailgun (free)<p>Domain - namecheap (depends on domain name. $10.00&#x2F;yr more or less)<p>For a basic setup you wont need any scaling setup (CDN, load-balancer and whatnot) which like what, 99% of the time?
评论 #16708123 未加载
Guest9812398大约 7 年前
I use a basic LAMP stack (CentOS, Apache, MariaDB, PHP 7). No frameworks. Some of my projects are quite large (tables with billions of rows, and over a million users). It might not be fashionable, but it works, it&#x27;s fast (for development, and for end-users), it&#x27;s well documented, and it&#x27;s been tested for decades. I have no plans to change, and my new projects in development are using the same.
评论 #16708856 未加载
julvo大约 7 年前
Do I sense a bit of sarcasm regarding longevity of JS frameworks here?<p>As other commenters say, if you want results, choose whatever stack you are most productive with.<p>As you say &#x27;basic&#x27; web app: I&#x27;d recommend using Firebase, if you are comfortable with the vendor lock-in. For auth, database and deployment it doesn&#x27;t get much simpler than this.
评论 #16708873 未加载
评论 #16705644 未加载
tugberkk大约 7 年前
I really think it depends on the programming languages you know, if you know any. For example, if you know Python, just use Django or Flask. If you know c#, just use that.<p>However, if you don&#x27;t know any programming languages and plan to do &quot;just&quot; web development, WAMP and MEAN stack is the way to go.<p>edit: WAMP -&gt; (XAMP)
_Chief大约 7 年前
Go for what works for you, a popular stack may not necessarily be best for you unless you, at least, have experience with the technologies. My current default stack. Frontend: Vuejs (pwa) Backend: Go (exposes json api endpoints for frontend) DB: mariadb &#x2F; sqlite
评论 #16705316 未加载
YouKnowBetter大约 7 年前
AWS Serverless.<p>Cheap, &quot;fresh&quot;, and scalable in complexity with too many services to mention.<p>It&#x27;s easy, plenty of example code available and will get your feet wet in the hyped secdevops which might land you a nice project sooner or later.
emily-c大约 7 年前
There really aren&#x27;t any wrong answers here but I&#x27;ve had good personal experience with Vue, Go, and Postgres. Make sure you use vue-cli. vuefire is also very convenient if you&#x27;re so inclined.
Blackstone4大约 7 年前
GraphQL stack :)<p>Frontend: React + Apollo Client + Netlify<p>Backend: Typescript + Node.js + Apollo Server (graphql-yoga) + Graphcool&#x2F;Prisma + Apex Up to deploy to AWS Lambda + AWS RDS
80386大约 7 年前
This is maybe a stupid question, but why not Rails? I still use it as my go-to backend, but it seems to be out of fashion nowadays.
评论 #16706254 未加载
swat535大约 7 年前
I am going to go against the grain here and say you should pick with whatever you are most skilled at and feels natural to you.<p>Unless you have very specific requirements, it matters very little; especially if your goal is to push a product<p>Nowadays there are many options and a lot of them are reliable.<p>E.g<p>Rails, PostgreSQL, React<p>Django, PostgreSQL, VueJs<p>Phoenix. PostgreSQL, Jquery
评论 #16708824 未加载
WalterGR大约 7 年前
Check out this recent Ask HN:<p>Ask HN: What stack would you use to build a CRUD web app in 2018?<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16508965" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16508965</a><p>It has 177 comments and some good meaty answers.
julienfr112大约 7 年前
If you know Python well, tornado + mongodb(motor) is pretty neat !
tomkinson大约 7 年前
Entirely depends on what you&#x27;re building. If it&#x27;s crazy complex go native now. Super complex web apps are as the rarest of the rare, and damn near impossible. Like a handful ever, rare. That&#x27;s not to be said that it cannot be done. If it&#x27;s medium to basic, use a framework like Vue or Preact and a VDOM. Everything will stem from that. Node.JS is a given, maybe Go, but all other decisions depend on what you are building.
quantumleap22大约 7 年前
Rails + intercooler.js gives you most of the functionality you need with a minimum of complexity.
godzillabrennus大约 7 年前
If it&#x27;s an MVP? Then anything you can use to stand up the mvp quickly.
slipwalker大约 7 年前
backend on kotlin with (maybe) Spring 5; frontend with Angular 4 or Vue 2; datastore on apache cassandra ; mobile version with flutter&#x2F;dart ?... probably cover all your bases for the stack-du-jour.
gowk大约 7 年前
You can try Vue.js &amp; Buffalo.
synack大约 7 年前
What does the app do?
评论 #16705813 未加载
amcca029大约 7 年前
html5 and nginx.