How do I read server-side files from the client side?

Hello everyone, this is more of a theoretical question for the future of my project, so I don’t really have any code to share.

Right now I have some stuff set up to log visits, stats, etc to a file in the server side. Is it possible to graph the data with ChartJs or some similar library by sendingto/accessing it from the client side?

You could try making an api. Basically, set up a auth, (I can make one for you one.) and request it. I don’t know much html, but I do know JS.

Do you have links to any tutorials or such to building APIs?

1 Like

Search on Google or YouTube for “creating REST APIs” and you’ll get what you want :slightly_smiling_face:

1 Like

Enjoy the solution, haha :smiley:

1 Like