You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
dependabot-preview[bot] c66f8eddfb
Bump open from 7.0.2 to 7.0.3 (#98)
5 years ago
assets Adds readme 5 years ago
src File loader improvements (#82) 5 years ago
.babelrc Adds new starter example 5 years ago
.gitignore Working base boilerplate 5 years ago
README.md Adds packer as default dep and updates readme 5 years ago
assets.d.ts Updates the boilterplate to be ready for hot-reloading 5 years ago
package-lock.json Bump open from 7.0.2 to 7.0.3 (#98) 5 years ago
package.json Bump open from 7.0.2 to 7.0.3 (#98) 5 years ago
tsconfig.json Adds readme 5 years ago
webpack.config.js bump dependencies and update webpack config 5 years ago

README.md

react-nodegui-starter

Clone and run for a quick way to see React NodeGui in action.

logo

To Use

To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
git clone https://github.com/nodegui/react-nodegui-starter
# Install CMake
brew install cmake
# Go into the repository
cd react-nodegui-starter
# Install dependencies
npm install
# Run the dev server
npm run dev
# Open andother terminal and run the app
npm start

Installation & Resources for learning React NodeGui

Packaging app as a distributable

In order to distribute your finished app, you can use @nodegui/packer

Step 1: (Run this command only once)

npx nodegui-packer --init MyAppName

This will produce the deploy directory containing the template. You can modify this to suite your needs. Like add icons, change the name, description and add other native features or dependencies. Make sure you commit this directory.

Step 2: (Run this command every time you want to build a new distributable)

Next you can run the pack command:

npm run build

This will produce the js bundle along with assets inside the ./dist directory

npx nodegui-packer --pack ./dist

This will build the distributable using @nodegui/packer based on your template. The output of the command is found under the build directory. You should gitignore the build directory.

More details about packer can be found here: https://github.com/nodegui/packer

License

MIT