Coder Social home page Coder Social logo

erikaguthrie / nasa-path-finder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from putstrln/nasa-path-finder

0.0 1.0 0.0 21.29 MB

An app to find the shortest path between points in a 3D model of ISS

Home Page: https://lovetostrike.github.io/nasa-path-finder/

License: The Unlicense

JavaScript 42.54% Python 0.59% Java 23.60% CSS 30.04% HTML 3.24%

nasa-path-finder's Introduction

CircleCI

Demo

Demo is available at https://lovetostrike.github.io/nasa-path-finder/demo.html.

Development

Install yarn if you don't have it, https://yarnpkg.com/lang/en/docs/install/#linux-tab.

Install java 8 & maven for your platform.

Frontend

Install yarn dependencies if you haven't,

yarn

Start dev frontend server

yarn start

Backend

  • Prior to building for the backend, ensure file paths within CreateNodes.java point to the correct locations for the source files.
  • CreateNodes.java lives in server/src/main/java/com/nasa/.

In another terminal, start dev backend server, (you need to run this every code change since it's Java). We can improve it to watch the files changes and use hot swap.

To build, yarn compile

To run, yarn start:server

To do both, yarn compile:start:server

Go to http://localhost:3000 to see the app.

Production Deployment

Web build

To build for web

yarn build
yarn start:web & yarn start:server

and you get the static files under public which can be deployed on any server.

Docker build

There's a docker image with a web server if you want the app to work out-of-the-box and skip any setup.

For linux and mac, Install docker for your box and

docker run -p 8080:8080 -p 3000:3000 lovetostrike/nasa-path-finder

Now it will be available at http://localhost:3000.

For windows, install docker https://docs.docker.com/toolbox/toolbox_install_windows/. Open up kitematic. Search for nasa-path-finder and download it. In the settings, it should look something like this:

In the preview window, clicking popup button will launch the app in the browser. Port Config. Make sure both docker & published ip has 8080 port open. Save and restart the container.

Test

yarn test

Structure

Continuous Delivery

There are both OS and web builds available. Web build is just a static html/js/css and OS builds use electron for different distributions.

Builds are executed on every merge at https://circleci.com/gh/lovetostrike/nasa-path-finder/ and on successful build, docker image is built at https://hub.docker.com/r/lovetostrike/nasa-path-finder/. The latest web build is hosted on the demo page.

nasa-path-finder's People

Contributors

putstrln avatar jadovan avatar erikaguthrie avatar

Watchers

James Cloos avatar

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.