sidenode: still working on a cool logo
What is Reactron?
Reactron is the starting point for your new desktop application.
Why would I need this?
It will save you the time of mixing together Electron and React and you can start coding your dekstop application in matter of seconds.
How do I get started with Reactron?
It's quite simple, just do the following:
git clone https://github.com/alexvcasillas/reactron.git && cd reactron
yarn
sidenote: electron-bundler works better withyarnpkg
thannpm
yarn dev
- Develop you application
yarn parcel-build
yarn pack
Development
The development is easy, you will code you application with React from the entry point located at /src
. Your application should be located there so Parcel knows where to start building things for you.
You won't need to configure enything since Parcel will do all of this for you. Zero conf React development with everything you need.
Production
When it comes to production is also very easy. First you will se a config.js
file at the root of your application that contains the following structure:
const environment = 'DEVELOPMENT';
module.exports = {
environment,
};
Simply replace the DEVELOPMENT
literal with the PRODUCTION
and you're ready to run yarn parcel-build
and then yarn pack
to distribute your app in production mode.
Contributing
Contributions are always welcome, if you find something that could be improved and would make a difference, go ahead, open an issue then PR your proposals. I'll be glad to check it with you and add it to the codebase.