Is Meteor an option, if i need an additional REST API?

前端 未结 3 2035
谎友^
谎友^ 2021-02-01 23:44

I\'m, going to write a web app, which should be CRUD accessible from both, the web and native mobile device apps. For the latter i\'m definitely committed to a REST API. Is it p

相关标签:
3条回答
  • 2021-02-02 00:16

    If you are planning to develop a production application, then Meteor is not an option right now. Its under constant change, and there are still many common features it has to support before its ready to use, which will be quite some time.

    For your Question, Somebody has already asked and answered the question about support for file uploading in meteor(also contains HTTP handing related information).
    How would one handle a file upload with Meteor?

    0 讨论(0)
  • 2021-02-02 00:22

    As of 2015, look at Gadi's answer for the Meteorpedia entry on REST APIs, and at krose's answer comparing REST API packages. Discussion for folding REST APIs into core is on Hackpad. This question is a duplicate of How to expose a RESTful service with Meteor, which has much better answers. -- Dan Dascalescu

    Old answer (2012) below.


    For adding RESTful methods on top of your data, look into the Collection API written for Meteor:

    https://github.com/crazytoad/meteor-collectionapi

    As for authentication for accessing the database, take a look at this project:

    https://github.com/meteor/meteor/wiki/Getting-started-with-Auth

    Both are definitely infantile in development, but you can create a RESTful API and integrate it with a mobile native client pretty easily.

    0 讨论(0)
  • 2021-02-02 00:30

    There are a lot of duplicates of this question. I did a full write-on on this in Meteorpedia which I believe covers all issues:

    http://www.meteorpedia.com/read/REST_API

    The post reviews all 6 options for creating REST interfaces, from highest level (e.g. smart packages that handle everything for you) to lowest level (e.g. writing your own connectHandler).

    Additionally the post covers when using a REST interface is the right or wrong thing to do in Meteor, references Meteor REST testing tools, and explains common pitfalls like CORS security issues.

    0 讨论(0)
提交回复
热议问题