A boilerplate to give you a head start in developing your own desktop application using modern technologies.
This boilerplate includes:
- ⚡ Electron (for desktop app development)
- 🧠 Sequelize ORM
- 🟨 Node.js
- 🌐 Vanilla JavaScript
- 🎨 HTML, CSS, and Bootstrap
Currently tested with:
- MySQL
- SQLite
You can choose your preferred database — both are supported.
🔹 SQLite can run in-memory or be stored in the project’s root directory.
More databases will be supported in future updates.
Follow these steps to set up and run the project locally.
Ensure the following are installed:
Set up Git on your machine using the Git First-Time Setup Guide.
-
Clone the repository:
git clone -b main https://github.com/Gicehajunior/app-boilerplate-electron.git
Or download the ZIP file
-
Move the project to a directory of your choice.
-
Open the project in your preferred IDE.
💡 Recommended: Visual Studio Code
-
Create a
.envfile in the root directory. -
Copy contents from
.env-exampleinto your.env. -
Set your environment variables accordingly.
Below include the databases tested on this boilerplate, but not limited on the types of databases the boilerplate supports out of the box
DB_CONN=sqlite
DB_NAME=your_sqlite_db_nameDB_CONN=mysql
DB_NAME=your_mysql_db_nameChoose based on your preference. Both work well.
After setup, run the app with:
cd your_project_directory
npm install
npm run build
npm start # or use npm run dev for development modeThis project follows the MVC (Model-View-Controller) pattern.
Stay tuned to the repository for deeper insights and documentation.
Want to contribute? Awesome!
- Fork the repo
- Create your branch
- Commit changes
- Submit a pull request
All valid PRs will be reviewed and merged.
Have an issue or suggestion?
- Open an issue
- Constructive feedback is welcome
⚠️ Note: Criticism must be code-related. Irrelevant or personal comments will not be accepted.
This project is licensed under the MIT License.
Happy coding! 🎉