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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What would you use to build a super simple web app?

13 点作者 livatlantis大约 9 年前
I need to create a very simple web app. What are some good micro frameworks out there that I could use?<p>My needs are very basic: users need to be able to create an account, post new discussions, reply to things and see what&#x27;s new. (Basic CRUD stuff).<p>I considered Rails when I first worked on this project many moons ago, but I find it&#x27;s is overkill for what I want. Too much magick. I want as much of the code to be stuff I&#x27;ve written and understand. For the db, I&#x27;m curious about noSQL solutions but again, I want to keep it light.<p>I don&#x27;t care if it&#x27;s in Ruby, PHP, Golang, Perl 6, JS, Python... it&#x27;s for a personal project so I&#x27;ll have fun playing with it.<p>What are you guys using for your small side projects? (Thanks!)

22 条评论

bliti大约 9 年前
Django with SQLite. It has built in Admin panel, authentication, and a very simple DB api. The learning curve is not hard. SQLite requires no additional dependencies and you can backup your db by copying the database file. It also performs very well.
siquick大约 9 年前
You could get this project setup in Meteor (JS framework) in ~2 minutes using Telescope<p><a href="http:&#x2F;&#x2F;www.telescopeapp.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.telescopeapp.org&#x2F;</a>
评论 #11378618 未加载
iamd3vil大约 9 年前
I use Flask if it&#x27;s an API or Django if it&#x27;s a web app. These days I use Elixir and Phoenix for most serious web apps though but if it&#x27;s a small side project, I would reach for Python since that&#x27;s the language I am most comfortable with. I really like SQLite and I think it&#x27;s very underrated for small apps, but if it&#x27;s serious I would use Postgresql since it&#x27;s fast, reliable and awesome.
iSloth大约 9 年前
Generally I&#x27;m doing side projects to fix an actual need of mine, rather than where some people are trying to learn a new language or framework, so I pick PHP because it&#x27;s the language that I&#x27;m most proficient at, it&#x27;s probably not the best language for my needs, however the most powerful language is the one that you know!<p>Are you looking to build something, in which case playing around with new frameworks may just be a distraction...? Or do you actually want to play around with something new?
评论 #11374900 未加载
kfullert大约 9 年前
My personal choice at the moment is Ruby with Roda[0] and whatever ORM meets my needs best, or even skip the ORM and use the DB adapter directly if it&#x27;s something quick and simple<p>[0]: <a href="http:&#x2F;&#x2F;roda.jeremyevans.net&#x2F;documentation.html" rel="nofollow">http:&#x2F;&#x2F;roda.jeremyevans.net&#x2F;documentation.html</a>
squiguy7大约 9 年前
I&#x27;m going to go out on a limb and suggest a Rust framework called pencil [1]. It&#x27;s inspired by Python&#x27;s flask and is just as easy to get going.<p>[1]: <a href="https:&#x2F;&#x2F;fengsp.github.io&#x2F;pencil&#x2F;pencil&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fengsp.github.io&#x2F;pencil&#x2F;pencil&#x2F;</a>
tedmiston大约 9 年前
If you truly want no magic and barebones &quot;on the metal&quot; code, go with Flask. You&#x27;ll have every choice down to the way you serialize your objects into views, models, and every aspect of the database. You can write everything yourself with no or minimal dependencies, or pull in the most popular packages as you see fit (SQLAlchemy, Marshmallow, Jinja, etc.).<p>Django will provide some (useful) magic, but nowhere near as much as Rails. If the site evolves, I really recommend transitioning to Django for it&#x27;s ecosystem. In either case, I recommend sticking with plug-and-play auth.<p>(Disclaimer: I&#x27;m an engineer at a startup whose backend is 90% Python, mostly Django.)
joeclark77大约 9 年前
Python and Flask on Heroku. What you&#x27;re describing is almost the &quot;tutorial&quot; web app (look up Grinberg&#x27;s book on Flask). Heroku is a nice platform to work on that takes a lot of the complexity out of cloud hosting. Flask lets you do almost all the coding yourself, but it has add-ons available to take care of whatever you don&#x27;t want to do.<p>Heroku gives you a PostgreSQL database with one click, but you could easily integrate a MongoDB database if you wanted to try NoSQL. In Mongo, you&#x27;d actually store and retrieve your data in JSON, so it&#x27;s even easier than writing SQL.
Raed667大约 9 年前
For basic CRUD and REST API I use Sails.js [0]. You can literally roll-up an app in 20 minutes.<p>[0] : <a href="http:&#x2F;&#x2F;sailsjs.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;sailsjs.org&#x2F;</a>
imauld大约 9 年前
If your interested in making a RESTful back end I would suggest the Falcon microframework for Python.<p><a href="http:&#x2F;&#x2F;falconframework.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;falconframework.org&#x2F;</a><p>Or just using Go out of the box. It has a lot of what you&#x27;ll need built in and is pretty fun language. I&#x27;m learning it right now myself and it has a lot of interesting features.
miguelrochefort大约 9 年前
What you&#x27;re describing isn&#x27;t &quot;very simple&quot;.<p>Use a proper framework. Something like Elm, Om Next or React.
评论 #11374954 未加载
networked大约 9 年前
You may find this thread useful: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10302879" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10302879</a>, though it&#x27;s about CRUD on the JVM specifically.
dreamdu5t大约 9 年前
Pux (like Elm) in PureScript (purely functional JavaScript).<p><a href="http:&#x2F;&#x2F;alexmingoia.github.io&#x2F;purescript-pux&#x2F;" rel="nofollow">http:&#x2F;&#x2F;alexmingoia.github.io&#x2F;purescript-pux&#x2F;</a>
vram22大约 9 年前
Python and CherryPy and any light DB like SQLite. Or Bottle instead of CherryPy.
mileswen大约 9 年前
I think either Django or Ruby on Rails would do. You can roll out these basic functionalities in less than 2 hours if you are reasonably familiar with these frameworks.
gonyea大约 9 年前
Stop thinking about &quot;overkill&quot;. It&#x27;s such a foolish pre-optimization. If sometching helps you solve a problem quickly, just run with it.
sauere大约 9 年前
Python+Flask is awesome<p>so lightweight, yet extendable... some extensions that might be worht looking at: Flask-Login, Flask-SQLAlchemy, Flask-WTForms, Flask-Admin
评论 #11379172 未加载
nanospeck大约 9 年前
I&#x27;m going to build my side project in gwt ( with bootstrap for responsiveness) and host it in google app engine.
mbrock大约 9 年前
CGI, basic auth, and bash can go a long way. Add git and baby, you&#x27;ve got a stew going.
PaulHoule大约 9 年前
I think if you find rails to be too hard you ought to be looking for some hosted solution to do what you want or just pay somebody else to do it.
评论 #11374876 未加载
crispytx大约 9 年前
PHP
tugberkk大约 9 年前
PHP and MySQL. Also Bottle and Python.