At Step 2 of Missions Map
I have looked at this for nearly an hour and am no closer to understanding it. (Yes, absolute rookie. No programming experience at all), Difficulty is “EASY”, so I guess it must be for most… but I can’t figure out what goes where.
I have looked at this: [https://backendless.com/docs/js/setup.html ] but I still don’t know what to do.
I gather I need to build a client somewhere (where?) and then tell the backend about it. A pipeline is needed, I guess. Trying to understand the big picture here (neophytes need that.)
So, assuming I have set up this client/front-end somewhere (help needed), where within the database do I copy over this body of code where I have inserted my App ID and API Key? Thanks in advance.
const APP_ID = ‘39CF774A-E1DC-F4BF-FFBA-2AB1C9F73900’;
const API_KEY = ‘2169533A-08C9-4A95-8A6D-B442D6B743A3’;
Backendless.initApp(APP_ID, API_KEY);
var objToSave = {name: ‘Joe’, age: 25};
Backendless.Data.of(‘Person’).save(objToSave)
.then(function (object) {
console.log(‘Object has been saved’);
return object;
})
.catch(function (error) {
console.log( 'Error ’ + error.message);
throw error;
});