GithubHelp home page GithubHelp logo

ethan-barr / react-electron Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 203 KB

This is a boilerplate project that demonstrates how to integrate React with Electron to build a cross-platform desktop application. It provides a preloader component for a better user experience during app loading.

License: MIT License

JavaScript 86.95% HTML 6.81% CSS 6.24%
boilerplate-template electron reactjs

react-electron's Introduction

React Electron Boilerplate

This is a boilerplate project that demonstrates how to integrate React with Electron to build a cross-platform desktop application. It provides a preloader component for a better user experience during app loading.

Getting Started

To get started with this project, follow these steps:

Prerequisites

  • Node.js and npm installed on your machine.

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/Ethan-Barr/react-electron.git
  2. Navigate to the project directory:

    cd react-electron
  3. Install the dependencies:

    npm install

Development

To run the project in development mode:

npm run dev

This command starts the React development server with hot reloading and opens the Electron app with the React app loaded. Any changes you make to the code will automatically be reflected in the app. You will also be able to access the changes on localhost:3000.

Production

To build the project for production:

npm run build

This command builds the React app for production into the build directory.

To start the Electron app in production mode:

npm run electron

Project Structure

react-electron/
├── build/
├── node_modules/
├── public/
│   └── index.html
├── src/
│   ├── App.css
│   ├── App.js
│   ├── index.css
│   ├── index.js
│   └── ...
├── main.js
└── package.json
  • build/: Contains the production build of the React app.
  • node_modules/: Contains the project dependencies.
  • public/: Contains the HTML template file.
  • src/: Contains the React components and stylesheets.
  • main.js: Electron main process file.
  • package.json: Project configuration and dependencies.

Built With

  • React - JavaScript library for building user interfaces.
  • Electron - Framework for building cross-platform desktop applications with web technologies.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

react-electron's People

Contributors

ethan-barr 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.