Git Product home page Git Product logo

electron-react-webpack-starterkit's Introduction

electron-react-webpack-starterkit

Electron & React & Webpack 4 template for a quick development and prototyping.

Install

# Clone the repository
$ git clone https://github.com/Patrick-W-McMahon/electron-react-webpack-staterkit my-app

# Go into the repository
$ cd my-app

# Install dependencies
$ npm install

Develop

Just run this command to start developing with hot reloading.

$ npm run dev

What's included

  • React
  • JSX support for React.
  • CSS modules support.
  • JS, CSS and assets automatic bundling.
  • Hot reloading via Webpack 4.

Folder structure

├── my-app/                             # Project root

    ├── build/                          # Webpack 4 will manage this folder for you
        ├── bundle.css                  # Bundled CSS
        ├── bundle.js                   # Bundled JS
        ├── images                      # images will be copied here

    ├── public
        ├── images/                     # public images

    ├── src/
            ├── assets/                 # assets for the project
            ├── components/             # React Components
            ├── containers/             # React Containers

            ├── App.jsx                 # React main component where everything is tied up
            ├── renderer_process.js     # Electron's renderer-process, where your React app is called.
            ├── global.css              # Global CSS and global constants go here

    ├── templates/                      # Templates 
        ├── index.hbs                   # This HTML only uses build/ folder's files

    ├── main_process.js                 # Electron's main process. Application Starting point.
    ├── package.json
    ├── webpack.config.js               # Webpack 4 setup

electron-react-webpack-starterkit's People

Contributors

patrick-w-mcmahon avatar

Watchers

 avatar  avatar

electron-react-webpack-starterkit's Issues

Electron build fails on Windows 10

Describe the bug
When attempting to setup and build the project on Windows 10 it fails to process the react tag located in renderer_process.js

To Reproduce

  1. Install project
  2. When running the build process it will fail

Expected behavior
The project should build and run the electron window the same way it does when building on linux.

Screenshots
not added

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Electron
  • Version NA

Smartphone (please complete the following information):

  • Device: NA
  • OS: NA
  • Browser NA
  • Version NA

Additional context
nothing added

Update Electron

Describe the bug
The current version of Electron has security issues.

expected
The modules should all be updated to the latest versions and all security bugs should be confirmed fixed.

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.