creative-tutorials / electron-app

Simplifying Electron with Typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Electron Starter App with Bun

This repository provides a well-structured, ready-to-use starter project for building desktop applications using Electron and the blazing-fast Bun JavaScript runtime.

Features:

  • Electron Integration: A streamlined setup for building cross-platform desktop apps with native functionalities.
  • Typescript Support: Benefit from type safety and improved code maintainability with built-in Typescript support.
  • Bun Integration: Make use of Bun’s outstanding performance for more efficient experience and that would make applications faster.

Getting Started:

  1. Prerequisites:

  2. Clone the Repository:

gh repo clone creative-tutorials/electron-app
  1. Install Dependencies
bun install
  1. Run the app
bun run start

Note

This command starts the development server and opens the application in a new window.

Project Structure:

  • main.js: The primary entry point of the application. It creates the Electron window and handles its lifecycle.
  • index.html: This is the template for the Electron window.
  • package.json: Contains project metadata, dependencies, and scripts.

Typescript Setup

The project utilizes Typescript for enhanced code clarity and maintainability. You can leverage code editors like VS Code or editors with Typescript plugins to benefit from type checking and code completion.

Bun Integration

For faster development and the possible increase in the speed of application execution, this project is designed using Bun. You'll have a lot easier time developing your project because of Bun's improved performance.

Customization

Modify the main.js file to create your desired functionality. The package.json file allows you to personalize project details and scripts.

Contributing

We welcome contributions to this project! Feel free to submit pull requests with bug fixes, enhancements, or new features.

License

This project is licensed under the MIT License (see LICENSE file).

Tip

This Readme provides a comprehensive guide to utilizing your starter project effectively. Happy Electron development with Bun!

About

Simplifying Electron with Typescript

License:MIT License


Languages

Language:JavaScript 83.0%Language:HTML 14.3%Language:CSS 2.0%Language:TypeScript 0.6%