GithubHelp home page GithubHelp logo

Comments (8)

jlkalberer avatar jlkalberer commented on August 16, 2024

Hi,

for the most part I just use console.log and don't put breakpoints in.

Babel is just the transpiler so when you're working you'll want to always work in the src directory. If you need to debug spark-protocol as well, we use npm link so that the node_module references your spark-protocol on disk. Then when I'm running npm start in spark-server I run npm start in spark-protocol as well so it build any changes there.

What exactly are you trying to debug?

from spark-server.

straccio avatar straccio commented on August 16, 2024

Solved with this guide.
https://www.youtube.com/watch?v=gxCCXXcqJfw

now i check how to use spark-protocol sources.

from spark-server.

jlkalberer avatar jlkalberer commented on August 16, 2024

Ahh.. you will probably need to hack on some things to make that work since we use the transpiled source (dist folder) when running spark-protocol in spark-server

from spark-server.

AntonPuko avatar AntonPuko commented on August 16, 2024

this should work:

  1. setup the webstorm debugger for spark-server project, for node interperter choose ./node_modules/.bin/babel-node(.cmd for windows)
  2. in spark-protocol: npm link and in package.json change main from ./dist/index.js to ./src.index.js
  3. in spark-server: npm link spark-protocol
  4. run the debugger

from spark-server.

straccio avatar straccio commented on August 16, 2024

Tnx, now i can debug!

from spark-server.

straccio avatar straccio commented on August 16, 2024

Can i contribute to this repository?

from spark-server.

jlkalberer avatar jlkalberer commented on August 16, 2024

Yeah, we'd love any additional help. What feature are you planning on building?

from spark-server.

straccio avatar straccio commented on August 16, 2024

Actually i need to put the data outs from devices in an "abstract container".
The container can be Mongo DB or anything else (in this moment i think fluentd + kibana).
I'm building a smarthome with particle photons and other devices that they connect in the same way to spark-server.

Anyway i can help to add "cluster/balancing" features, i have done that several times with others programs using ZeroMQ or memcache to share resources inside and outside the "server" and keepalived to balance or distribute the load over a fleet.

from spark-server.

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.