Coder Social home page Coder Social logo

dedop-sandbox's Introduction

dedop-sandbox

Contains DeDop Experiments and Prototypes:

  • backend - Hosts the DeDop RESTful API and WebService dedopws, which is implemented as a Falcon web app run in a CherryPy web server.
  • frontend - Hosts DeDop GUI dedopgui which is implemented as an electron Desktop application and depends on the WebService dedopws running on localhost.

backend

Build and run

  1. Install Python 3.4.
  2. Install required libs
    $ pip install h5py-2.5.0-cp34-none-win_amd64.whl
    $ pip install falcon
    $ pip install CherryPy
  1. Run
    $ cd backend
    $ python setup.py develop
    $ dedopws <L1A-data-dir>

Open browser and point to

Read more:

  • WSGI, PEP 3333
  • Falcon is a ridiculously fast, minimalist Python WSGI web framework for building cloud APIs and app backends. See http://falconframework.org/
  • CherryPy, a reliable, HTTP/1.1-compliant, WSGI thread-pooled webserver. It's 100% Python, and can even be used by Jython. See http://www.cherrypy.org/
  • Gunicorn, another popular Python Web Framework. Heavily relies on Unix, no Windows support as of version 19. See http://gunicorn.org/

frontend

Build and run

  1. Kill the dedopws if it is still running. The frontend will start a new dedopws process on its own (see config below).
  2. Install latest Node.js to get node's package manager npm.
  3. Download Cesium-1.17 and unzip into frontend/Cesium-1.17
  4. Create local file frontend/dedop-config.json but don't add this file to git! Adjust configuration parameters except the one for "serverAddress":
    {
      "serverAddress": "http://127.0.0.1:8080/",
      "serverScript": "C:\\Python34-amd64\\Scripts\\dedopws.exe",
      "serverArgs": ["D:\\EOData\\DeDop\\L1A"],
      "openDevTools": false
    }
  1. Run
    $ cd frontend
    $ npm install
    $ electron .

Read more:

Run with Visual Studio Code

File .vscode/launch.json:

/*
 * All debug configs with type "chrome" are based on the "chrome" extension,
 * see https://marketplace.visualstudio.com/items/msjsdiag.debugger-for-chrome
 */
{
    "version": "0.1.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "chrome",
            "request": "launch",
            "runtimeExecutable": "./node_modules/electron-prebuilt/dist/electron.exe",
            "runtimeArgs": ["C:\\Users\\Norman\\CloudStation\\Projects\\electron-app"]
        },
        /*
         * The following configs dont work yet, 
         * see https://github.com/atom/electron/blob/master/docs/tutorial/debugging-main-process.md
         */
        {
            /* Does not work :( */
            "name": "Debug",
            "type": "chrome",
            "request": "launch",
            "runtimeExecutable": "C:\\Users\\Norman\\AppData\\Roaming\\npm\\node_modules\\electron-prebuilt\\dist\\electron.exe",
            "runtimeArgs": ["--debug=9222", "C:\\Users\\Norman\\Desktop\\electron-app"]
        },
        {
            /* Does not work :( */
            "name": "Attach",
            "type": "chrome",
            "request": "attach",
            "port": 9222
        }

    ]
}

dedop-sandbox's People

Contributors

forman avatar hans-permana avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mzuehlke

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.