0

I'm trying to build a simple web app using Angular JS, and would like to use functions from the Node.JS scipy module. I'm a bit confused to how I would do this?

I've tried setting up a web server using Node, Express and SocketIO, but I'm not sure where I should be initialising the scipy module, and how do I use its function inside my app.js file for AngularJS.

I'm just a bit confused in general as to how one can use the different node modules in any web app using something like Angular JS. Ideally, I'd like to use the simplest and fastest way, so I can prototype different applications quickly.

5
  • Thinking about this. Maybe start here: gist.github.com/sevcsik/9207267 Commented Nov 2, 2015 at 14:23
  • And based on this SO, I'm not sure if it is possible to load the module directly. You may have to copy and paste code: stackoverflow.com/questions/29710239/… Commented Nov 2, 2015 at 14:25
  • This looks to be the most helpful: blog.codecentric.de/en/2014/02/cross-platform-javascript Commented Nov 2, 2015 at 14:26
  • In the specific case of scipy-node, you're going to have some serious issues modifying it to run in a browser, because some of the module is written in Python, not JavaScript. Commented Nov 2, 2015 at 14:28
  • So it seems that using NodeJS modules with AngularJS isn't the most of ideal combinations... what would really be the best way to implement a NodeJS module's functionality into a web app? Thanks for all the help so far! Commented Nov 2, 2015 at 15:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.