go-react-app

command module
v0.0.0-...-2dd1407 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 5 Imported by: 0

README

Go React App

This project is a boilerplate for building React apps for Linux, MacOS and Windows systems, through webviews. This project is an adaptation of Vic Shóstak's repository example-go-react-macos-app-1.

Installation

Clone this project into your machine.

git clone https://github.com/afonsolopez/go-react-app.git

Install if you're running OpenBSD, FreeBSD or Ubuntu "webkit2gtk" as the webview docs says. As I am running Xubuntu 20.04 on my machine this following package worked fine.

sudo apt-get install libwebkit2gtk-4.0-dev

Install all needed Go modules packages.

go get -u github.com/gobuffalo/packr
go get -u github.com/webview/webview

Usage

# Open the cloned project folder
cd go-react-app

# Clean the project, build the React app, compiles the code and runs the app.
make

# Just cleans older builds
make clean

# Builds the React app
make build

# Compiles the app
make compile

# Runs the compiled app
make run

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL