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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Fastest setup for Restful Web Service

7 点作者 sph130超过 11 年前
Because I don't trust the results of google and how old they are I am going to ask the HN Community. I want to get a proof of concept out for an app. I am more of a UI developer and have dabbled in django/tastypie however it will take me a good couple days to get that setup in AWS. I have a data model that I could easily implement in a database (pretty good with SQL) but not tied to relational DB. My Question: What is the absolute easiest and fastest way to setup a restful web service based on a datamodel. (And I'd like to use json for the format) GO!

5 条评论

mmariani超过 11 年前
Go with Flask Restless [1]. You&#x27;re gonna be up and running in minutes.<p>[1] <a href="https://flask-restless.readthedocs.org/en/latest/quickstart.html" rel="nofollow">https:&#x2F;&#x2F;flask-restless.readthedocs.org&#x2F;en&#x2F;latest&#x2F;quickstart....</a>
评论 #7020477 未加载
评论 #7020390 未加载
评论 #7019493 未加载
schneidmaster超过 11 年前
If you don&#x27;t mind server-side JavaScript, I&#x27;ve fallen head over heels for SailsJS[0]. It&#x27;s a Node framework built on top of Express that has MySQL, PostgreSQL, and SQLite integration. The hook is that it automatically generates a REST API for all of your models. So you &quot;sails new project&quot;, &quot;cd project&quot;, &quot;sails generate model thing&quot;, edit models&#x2F;thing and add the attributes, and you&#x27;re done. Backbone routes are created automagically. (You can also define more complex API functionality in the controller as usual, and it also has built-in socket.io support.)<p>[0] <a href="http://sailsjs.org" rel="nofollow">http:&#x2F;&#x2F;sailsjs.org</a>
Ryel超过 11 年前
If you feel like you have a headstart in Django, I&#x27;d go that route.<p>Else, I might be partial to do it in something like Rails that would allow me to write almost 0 lines of code, instead just spend time connecting various gems, libraries, etc and make a push to Heroku and get a proof of concept up.<p>While Proof-Of-Concept is running (free on Heroku) I would probably spend time rewriting it in Python or if you become partial to Ruby, just sticking with it...
评论 #7019472 未加载
ckotso超过 11 年前
...or you might want to forgo the custom back-end completely and use one of the &quot;nobackend&quot; solutions: <a href="http://nobackend.org/solutions.html" rel="nofollow">http:&#x2F;&#x2F;nobackend.org&#x2F;solutions.html</a><p>For example deployd is open source AFAIR; others (like Firebase, Parse) are hosted solutions. But overall they all give you instant CRUD over your data. In your case, their turn-key multi-user capabilities are a bonus.
评论 #7019503 未加载
sph130超过 11 年前
Yikes.. almost lost my post and couldn&#x27;t find it again. (Is there a my posts section or should i just bookmark it?)