Last week I wrote an article about creating basic desktop applications with Electron. Today we will talk about performing CRUD operations in our application.
FYI, CRUD is an acronym for create, read, update, and delete operations.
While we don’t have a real API, we can use the JSONPlaceholder fake API. All requests that are going to be sent to this API will get a response as if we were working with a real database, but there are going to be no changes on JSONPlaceholder’s end.
Let’s get started with an HTML file:
Here we can see that we are importing the render.js
script and assigning some IDs to some HTML elements. Keep that in mind because we are going to use these IDs next.
#electronjs #javascript #api #electron