Julia Script running with SQL datas


#1

Hi,

I’m currently working on a web app for a college. In this app, students have to rank a list of classes (front in React). Datas and rankings are send to a Node.js - MySQL - Sequelize backend, and we found a .jl algorithm that maximize students’ satisfaction.

We want to add a route in the backend and run the algorithm when all the students sent their choices. How can we do that?

Thank you in advance !


#2

Write the data out to a csv file, and shell out to julia from your NodeJS application? Might be the simplest way to do this.


#3

Maybe HTTP.jl can create a algorithm server for you.


#4

Problem with HTTP.jl is that it’s not ready for production…


#5

How do you do this? With shelljs?


#6

No, https://nodejs.org/api/child_process.html#child_process_child_process