CRUD Rookie in Trouble

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;
});

Hi, Pete.
As I understood you use NodeJS locally on your machine.
For the beginning I can advise to create simple test.js file where you place your code.
Then you can invoke the script in terminal and look through the errors if any.

Hello @Pete_Meehan

take a look at this guide https://backendless.com/docs/js/quick_start_guide.html

you need to:

  1. download a simple JS example
  2. open it in your browser
  3. after changing the code in the js file just refresh the browser page to see the result

Regards, Vlad