Parse login or register account example ???

Can anyone help me with something i have been struggling with for a long time is how to add the parse code to my app to make a functional register account page and login page if anyone can help me with an example of a code or can send me something on skype or talk me through it would be reatly appreciated :slight_smile:

skype - gimxapp

Hey!

Here is a small example showing how you can make a signup screen with username, password and a signup button.

As you can see in the ux code below, you have to supply the parse javascript file which you can get here https://parse.com/docs/downloads . It is given the name Parse using ux:Global, which we can then use in our MainView.js code using require(β€œParse”). I hope this helps :slight_smile:

UX:


<App Theme="Basic" ClearColor="#eeeeeeff">
    <StackPanel Alignment="Center"  MinWidth="200">
        <JavaScript File="MainView.js"/>
        <JavaScript ux:Global="Parse" File="parse-1.4.2.js"/>
        <DockPanel>
            <Text Dock="Left" Margin="0,0,10,0">Username: </Text>
            <TextInput Value="{username}"/>
        </DockPanel>
        <DockPanel>
            <Text Dock="Left" Margin="0,0,10,0">Password: </Text>
            <TextInput Value="{password}"/>
        </DockPanel>
        <Button Text="SignUp" Clicked="{signup}"/>
    </StackPanel>
</App>

JS:

var Observable = require("FuseJS/Observable");
var Parse = require("Parse").Parse;

Parse.initialize(yourParseAppId, yourParseJavaScriptKey);

var username = Observable("");
var password = Observable("");

function signup(){
    var user = new Parse.User();
    user.set("username", username.value);
    user.set("password", password.value);
    user.signUp(null, {
        success: function(user){
            debug_log("Signed up user");
        },
        error: function(user, eror){
            debug_log("error while signing up");
        }
    });
}

module.exports = {
    username: username,
    password: password,
    signup: signup
};

Thank you so much for the help :smiley: and which file specificly do i download

Try this one :slight_smile: https://parse.com/downloads/javascript/parse-1.5.0.js

When i enter the keys in i seem to get an error

what should i dowload exactly after clicking on the above link?
How can i save the username and password in a xampp Server? please can you explain me the process?