Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

268
Vistas
How to fetch data as .csv file from client with node.js application

i have written a game in javascript with the p5.js library. Now i want to host the game on a server to conduct a survey on a service like amazon turk. Ideally the clients recieve a URL to the game and play it while in-game actions are tracked and stored in node.js or on the server and exported as a .csv file once they are done playing. After they finish the game the csv. file should be sent automatically to a location that i can then access. I have zero experience in server hosting or similar topics.

So a couple questions arise:

  1. Is a hosting service like Heroku suitable for hosting the game?
  2. Do i need to use node.js to make this happen?
  3. Which of those two would extract the data and store it to a csv? And where is the file stored?
  4. How do i get or access the csv. after?
  5. Any alternative takes to solve the problem?

Thanks alot in advance!

  • github repository: https://github.com/luuuucaaa/schaeffers-charade
  • game on github pages: https://luuuucaaa.github.io/schaeffers-charade/
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If I were you, I would do it like below:

Host Since your project is basically a html & JavaScript static contents, AWS S3's static hosting would be sufficient (Also, the current git hub pages is another option if you just want to host it).

Hosting on node.js environment is also available using webpack serving, but it requires additional works. (but if you require other npm packages to generate .csv file, you need webpack anyway to bundle js file and attach it to html)

Data Storing Two ways are considerable, the first is to store it on the filesystem. Generate .csv via JS script within your app, and save it where the app is hosted (if you go with s3, you can access it afterwards, but I'm not sure if it can write objects by script)

The second is to post the data to another API endpoint. (for example building an API Gateway on AWS that triggers Lambda, which stores it on S3)

It's merely an example and I don't know exactly what you want to achieve, but take it into considerations. Good luck. Cool game BTW.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda