How to create a user database in Cloudant, how does parse.com do it?

I am developing mobile applications (IOS), I read couchDB documentation to access it using HTTP Api, but

1. How can I implement user registration, user login, email verification? just like parse.com does .

My plan is to create a database with users, and each document will have a username, password, first name, last name, isemailverified, some user settings with several key values.

We are faced with the task:

2. If someone requests in UserDatabase, and if the request is a request that is not related to the current user, I must reject the request. To overcome this problem, I need to write server-side code using validation methods before sending the request. Where should I deploy or start writing this code?

Please pay attention to how my strategy is and where do I need to improve this?

I will interact with my backend using a calm interface.

+4
source share
2 answers

CouchDB _users . , .

Cloudant , " ", " ". API, . , . . : this .

CouchDB Cloudant, . _users Cloudant CouchDB 1.1.x. . .

, 2012/13, Cloudant, , . (, ..) . - , ..

, , Node.js, Bluemix, . , Azure, US West ( Cloudant).

+5

Source: https://habr.com/ru/post/1628552/


All Articles