Giter VIP home page Giter VIP logo

flowforfrank / react-electron-parcel-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 6.0 145 KB

๐Ÿ“ฆ๐Ÿš€ A minimal boilerplate for Electron with React, built by Parcel with hot reload ๐Ÿ”ฅ

Home Page: https://webtips.dev

HTML 10.05% JavaScript 69.15% SCSS 20.79%
react reactjs electron electronjs electron-app parcel parcel-bundler parceljs boilerplate boilerplate-template

react-electron-parcel-boilerplate's Introduction

Boilerplate for React + Electron + Parcel

A minimal boilerplate for React + Electron, built with Parcel. ๐Ÿ“ฆ๐Ÿš€

๐Ÿƒโ€โ™‚๏ธ Getting Started

Run the following commands to start the project:

  • git clone https://github.com/flowforfrank/react-electron-parcel-boilerplate.git
  • npm i
  • npm run start

The electron command in the package.json file is only used internally by the boilerplate to launch electron.

๐Ÿ—๏ธ How to Build the Project

Run npm run build. This will create a dist folder with:

  • A folder called app-win32-ia32 containing the executable file
  • A folder called installer containing the setup files to install the app

๐ŸŒณ The Project Structure

  • ๐Ÿ“ public: Holds all your public assets, such as styles, images or fonts. Also holds the index.html
  • ๐Ÿ“ scripts: Holds the start and build script. This is where you can configure the setup
  • ๐Ÿ“‚ src
    • ๐Ÿ“ components: A place to hold your React components
    • ๐Ÿ“ electron: Includes the start scripts for a dev and prod Electron build

๐Ÿ“š Further Guide

If you are interested in further details, or you want to reconfigure the scripts, or you just simply want to read about the implementation, you can do so on webtips.dev. ๐Ÿ“ฆ๐Ÿš€

Boilerplate for React + Electron + Parcel

react-electron-parcel-boilerplate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-electron-parcel-boilerplate's Issues

Cannot statically evaluate fs argument

anyway to include
const remote = require("electron").remote; inside the index.js ?
cuz i'm getting stuck at Cannot statically evaluate fs argument error fs.existsSync is not a function
help ?

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.