GithubHelp home page GithubHelp logo

carnaux / react-electron-parcel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucascassiano/react-electron-parcel

1.0 1.0 0.0 203.36 MB

Template for modern desktop apps using React, bundled with Parcel and packaged by Electron

License: MIT License

JavaScript 0.30% HTML 99.60% CSS 0.09%

react-electron-parcel's Introduction

react-electron-parcel

Simple Barebones app running React, Electron and Parcel in a simple but highly efficient way.

This boilerplate is focused in agile desktop apps development. screenshot

Setup

screenshot

git clone https://github.com/lucascassiano/react-electron-parcel/ app
cd app
npm install 
npm start

App structure

engine
    index.js
    sys
        /*system modules*/
        ...
        //Add your low-level functions here
    app
        /*compiled front-end files*/
        App.js
        index.html
src
    /*ES6 ~uncompiled~ files*/
    App.js //Main React Component
    index.html //HTML entry
    index.js //react-dom renderer
    ... //add all your UI files here

Real-time code Updates

This boilerplate uses babel-register to compile from ES6 to ES5 in real-time. Also it uses Parcel, watching the /src/ directory.

React Components hot reload

//.babelrc
{
"plugins":["react-hot-loader/babel"]
}

Exporting Applications

npm run package

or to package to specific OS:

npm run build
npm run package:mac
npm run package:win
npm run package:linux

CSS, SVG and Images

Parcel handles all files bundling, so you can use inline file imports.

import logo from "./logo.svg"

<img src={logo}/>

Extra Info

  • ๐Ÿšจ Using Electron @ 3.0 beta

react-electron-parcel's People

Contributors

lucascassiano avatar

Stargazers

Marcus Vinicius Bezerra Silva avatar

Watchers

James Cloos 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.