Git Product home page Git Product logo

electronnodereact's Introduction

Description

This project is an innovative integration of multiple cutting-edge technologies, tailored for efficient and robust desktop application development. At its core, it leverages Electron, a powerful framework that allows for the building of native desktop applications using web technologies, combining the performance of a desktop application with the ease of development found in web applications. For the frontend, React is employed, renowned for its efficiency and flexibility in building dynamic user interfaces with its component-based architecture. The backend is powered by Node.js, an asynchronous, event-driven JavaScript runtime designed to build scalable network applications, ensuring that the server-side of the application is fast, scalable, and easy to maintain. Data persistence and management are handled by SQLite, a lightweight yet highly reliable database, which offers a perfect balance between simplicity, performance, and functionality, making it ideal for desktop applications where a full-scale DBMS might be unnecessary. This amalgamation of technologies โ€“ Electron, React, Node.js, and SQLite โ€“ provides a robust platform for developing feature-rich, high-performance, and scalable desktop applications.

How to Run the Project

This guide outlines the steps to run and build the project, including backend, frontend, and packaging for distribution.

Running the Backend

To start the backend server, execute:

npm run start-backend

Running the Frontend for Development

To run the React application in development mode, follow these steps:

cd app/frontend
npm run start

Building the Project

To build the project, you need to build the React app first and then run the Electron app.

Build React App

cd app/frontend
npm run build

Run Electron App

In the root directory, you can start the Electron app with hot reload or a standard start:

  • For hot reload:

    npm run dev
  • For standard start (restart required after changes):

    npm start

Packaging for Distribution

To create an executable file for distribution:

npm run dist

Building for Windows

If you need to build for Windows, add the following script to your package.json:

"scripts": {
  "dist:win": "electron-builder --win --x64",
  // ... other scripts
}

Using Wine

Electron-builder can use Wine to build Windows targets on non-Windows platforms. First, install Wine:

brew install --cask wine-stable

Then, run the build script for Windows:

npm run dist:win

electronnodereact's People

Contributors

sadeghianme avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.