APIs development

How can i create api for registration and login for use in React Frontend

Parse automatically provides apis for sign up and log in:

I’m currently working on a React app. Post your questions and I’ll try to help.

I’m using React with the JS SDK and the signup process is quite simple:

  1. Instantiate Parse:
import Parse from 'parse';

Parse.initialize("YOUR_APP_ID", "YOUR_JAVASCRIPT_KEY");
//javascriptKey is required only if you have it on server.

Parse.serverURL = 'http://YOUR_PARSE_SERVER:1337/parse'
  1. Sign up the user:
let user = new Parse.User();
user.set("username", data.email);
user.set("password", data.password);
user.set("email", data.email);
    .then(response => {
        // handle success
    .catch(error => {
        // handle error

I have to use signup api for form which have following fields:

1.Role(singer or user)

Moreover user can also signup via gmail and facebook ids