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:

Image for post

Here we can see that we are importing the render.jsscript 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

CRUD with a Desktop Electron App
8.35 GEEK