This example demo is accompanying this tutorial on Techiediaries
5+ Ways to Persist Data in Node.js/Electron Apps
Make sure to read the tutorial to see the pros and cons related to using MongoDB with mongoose to persist data in Electron apps and also the other alternatives that you can use instead of MongoDB if you are looking for other options.
This example desktop app makes use of the following web technologies and tools:
- Electron.
- The Mongoose ODM to interface with a MongoDB database.
- Angular.js 1.x JavaScript framework for the application code.
The example demonstrates how to do CRUD (Create-Read-Update-Delete) operations against a MongoDB database. It provides also a simple pagination system to paginate data.
Clone and run for a quick way to see Electron in action.
This is a minimal Electron application based on the Quick Start Guide within the Electron documentation.
You can learn more about each of these components within the Quick Start Guide.
# Clone this repository
git clone https://github.com/electron/electron-quick-start
# Go into the repository
cd electron-quick-start
# Install dependencies
npm install
# Run the app
npm start
MIT, Techiediaries