Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

271
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda