简体   繁体   中英

How can I setup a Node.js server to process data sent to it, and return the result?

I would like to setup a service on my server that is capable of accepting data (either json or csv), processing it, and returning the results. Preferrably I would like to send the data from an application I will make in Electron. The processing takes around 10-15 seconds.

Application sends input -> Server receives input, processes data, and returns result -> Application displays results

I think an API is what I'm after, but guides I have been looking at seem more focused to return a static response rather than processed data.

I would like to setup a service on my server that is capable of accepting data (either json or csv), processing it, and returning the results. Preferrably I would like to send the data from an application I will make in Electron. The processing takes around 10-15 seconds.

Application sends input -> Server receives input, processes data, and returns result -> Application displays results

I think an API is what I'm after, but guides I have been looking at seem more focused to return a static response rather than processed data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM