GithubHelp home page GithubHelp logo

esimov / triangle-app Goto Github PK

View Code? Open in Web Editor NEW
35.0 4.0 2.0 8.26 MB

Desktop application for Triangle.

Home Page: https://github.com/esimov/triangle

License: Apache License 2.0

HTML 1.73% JavaScript 80.06% CSS 5.43% Go 12.71% Procfile 0.07%
electron electron-app reactjs golang delaunay-triangulation triangulation triangle

triangle-app's Introduction

Triangle logo

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.

$ 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 page and download the executable file. Windows, MacOS and Ubuntu are supported. Otherwise, you can build the application yourself.

Install

$ 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:

$ 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:
$ yarn run dev
  • To bundle the application with webpack:
$ yarn run build

Note: this is required in case you wish to start the electron application with $ electron command.

  • To build the binary files:
$ 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:

$ go run server.go triangle.go

Examples

License

This project is under the Apache License 2.0. See the LICENSE file for the full license text.

triangle-app's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

triangle-app's Issues

Attempting to load up the go server

On attempting to load up the go server I get the following errors:
package command-line-arguments imports github.com/bmizerany/pat imports github.com/bmizerany/pat: import cycle not allowed

Any idea what I'm doing wrong?

Server error

I downloaded direactly the exe. file but appares the server error.
Is this App still running?
Also the button to generate/ cancel only can appare half in the interface.
Very curious about it. I think its effect is very dynamic and artistic so really want to try it.
Thank you in anticipate!

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.