Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/esimov/triangle-app
Desktop application for Triangle.
https://github.com/esimov/triangle-app
delaunay-triangulation electron electron-app golang reactjs triangle triangulation
Last synced: 4 months ago
JSON representation
Desktop application for Triangle.
- Host: GitHub
- URL: https://github.com/esimov/triangle-app
- Owner: esimov
- License: apache-2.0
- Created: 2017-10-26T19:11:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-09T17:27:56.000Z (about 1 year ago)
- Last Synced: 2024-07-31T19:36:25.035Z (6 months ago)
- Topics: delaunay-triangulation, electron, electron-app, golang, reactjs, triangle, triangulation
- Language: JavaScript
- Homepage: https://github.com/esimov/triangle
- Size: 8.07 MB
- Stars: 35
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ![Triangle logo](https://user-images.githubusercontent.com/883386/32769128-4d9625c6-c923-11e7-9a96-030f2f0efff3.png)
Triangle is a desktop application for https://github.com/esimov/triangle built on top of `electron`. It communicates with a backend server written in Go. For this reason you have to make sure Go is installed on your local environment.
## Install Go
After instalation set your `GOPATH`, and make sure `$GOPATH/bin` is on your `PATH`.
```bash
$ export GOPATH="$HOME/go"
$ export PATH="$PATH:$GOPATH/bin"
```## Install & build the application
In case you do not want to build the application yourself you can jump straight to the [release](https://github.com/esimov/triangle-app/releases) page and download the executable file. **Windows**, **MacOS** and **Ubuntu** are supported. Otherwise, you can build the application yourself.### Install
```bash
$ git clone https://github.com/esimov/triangle-app
$ yarn install
```
> Note: the app was compiled, bundled and build using node.js v8.9.1. It's strongly recommend to use `yarn` instead of `npm` (I got some strange issues during the build process using `npm`).The following commands are supported:
```bash
$ yarn run
- build
react-scripts build
- dev
nf start -p 3000
- dist
yarn run build && electron-builder
- eject
react-scripts eject
- electron
electron .
- make
electron-forge make
- pack
electron-builder --dir
- package
electron-forge package
- publish
electron-forge publish
- start
react-scripts start
```
### Usage:
* To run the electron application:
```bash
$ yarn run dev
```
* To bundle the application with webpack:
```bash
$ yarn run build
```
> Note: this is required in case you wish to start the electron application with `$ electron` command.* To build the binary files:
```bash
$ yarn run dist
```
This command generates the binary files depending on the current operating system.#### Runing the web server
Open the terminal and select the `server` folder from the application root directory then type:```bash
$ go run server.go triangle.go
```#### Examples
## License
This project is under the Apache License 2.0. See the [LICENSE](https://github.com/esimov/triangle-app/blob/master/LICENSE) file for the full license text.