Skip to content

A modern and feature-rich boilerplate for building cross-platform desktop applications with Electron, React, and Express.

Notifications You must be signed in to change notification settings

nahtandev/electron-playground

Repository files navigation

Electron Playground

A modern and feature-rich boilerplate for building cross-platform desktop applications with Electron, React, and Express.

🇫🇷 Version française

✨ Why Electron Playground?

This boilerplate provides a solid foundation for building desktop applications with:

  • Modern Stack: React + Vite for fast development
  • Full-Stack Ready: Express.js backend included
  • Developer Experience: Hot reload and TypeScript support
  • Production Ready: Optimized build and packaging configuration

🚀 Features

  • Complete Architecture

    • Frontend with React + Vite
    • Backend with Express.js
    • SQLite database integration
    • IPC communication setup
  • Pre-built Components

    • Dashboard with statistics and KPIs
    • Customer management system
    • Order tracking interface
    • Settings and configuration pages
  • Developer Tools

    • TypeScript configuration
    • ESLint setup
    • Hot reload support
    • Debug configuration

🛠️ Tech Stack

  • Frontend: React, Vite, SCSS
  • Backend: Express.js
  • Desktop: Electron
  • Database: SQLite (better-sqlite3)
  • Build: Electron Forge

📋 Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn

🔧 Getting Started

  1. Clone the boilerplate:
git clone https://github.com/nahtandev/electron-playground.git
cd electron-playground²²
  1. Install dependencies:
npm install
  1. Start development server:
npm run start:dev

📦 Available Scripts

  • npm run start:dev : Start the app in development mode
  • npm run build : Build the application
  • npm run package : Package the app for the current platform
  • npm run make : Create installers
  • npm run publish : Publish the application

🏗️ Project Structure

electron-playground/
├── client/             # React frontend source
│   ├── src/
│   ├── index.html
│   └── vite.config.ts
├── server/             # Express backend source
│   ├── ./          
│   └── vite.config.ts
├── preloader/          # Electron preload scripts
├── data/              # Data and configuration
├── config.ts          # Application configuration
└── forge.config.ts    # Electron Forge configuration

⚙️ Configuration

  1. Create a .env file in the root directory:
NODE_ENV=development
  1. Customize forge.config.ts for your build requirements
  2. Adjust config.ts for application settings

🔨 Customization

  1. Frontend: Modify React components in client/src/
  2. Backend: Add API routes in server/

📚 Documentation

For more information about the technologies used:

👤 Author

nahtandev

📄 License

This project is MIT licensed.

About

A modern and feature-rich boilerplate for building cross-platform desktop applications with Electron, React, and Express.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published