Giter Club home page Giter Club logo

Comments (2)

lashex avatar lashex commented on August 11, 2024

I am also running into this exact same issue. I tried copying the files that got installed by Bower into bower_components into the static/js folder, then changed over to:

ui.render_layout(app, "./static/js/layout.js")
...but had no luck.

More broadly, the "Basic" example is basic in its explanation but it is pretty hard to follow if you're new to the whole of Pyxley's dependencies. It really assumes that the reader knows a lot about the other environments before it actually feels basic.

FWIW - here are other examples I had to figure out:

  • where do I get the right bower.json for the basic project I am building?
  • where do I get the right package.json for the basic project I am building?

Here's what I ended up going with:
bower.json

{
  "name": "test_ui",
  "authors": [
    "Brett Francis"
  ],
  "description": "the first research UI",
  "main": "",
  "moduleType": [
    "node"
  ],
  "keywords": [
    "research"
  ],
  "license": "Commercial",
  "homepage": "",
  "private": true,
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "bootstrap": "~3.3.4",
    "react": "~0.13.1",
    "classnames": "~2.1.1",
    "d3": "~3.5.5",
    "nvd3": "~1.7.1",
    "react-bootstrap": "~0.22.6",
    "jquery": "~2.1.3",
    "datatables": "~1.10.6",
    "datamaps": "~0.4.0",
    "metrics-graphics": "~2.5.0",
    "pyxley": "~0.0.3"
  },
  "resolutions": {
    "d3": "~3.5.5"
  }
}

package.json

{
  "name": "test_ui",
  "version": "0.0.1",
  "description": "the first research UI",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [
    "research"
  ],
  "author": "Brett Francis",
  "license": "Commercial"
}

from pyxley.

banerjed avatar banerjed commented on August 11, 2024

layout.js is actually generated on the fly by the code during startup based on the following code in app.py:

sb = ui.render_layout(app, "./static/layout.js")

from pyxley.

Related Issues (20)

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.