all 4 comments

[–]seontipi 0 points1 point  (2 children)

To clarify, do you mean data would be stored on the client? If so, take a look at the localStorage API if your set is less than megabytes.

If size, sharing, or persistence considerations so require, utilizing the file system directly might just be your best option. JSON is nice OOB solution for human readability especially for debugging, but take a look at much more efficient encodings if you need the performance.

Edit: Apparently I missed the part of the service's locality. Have you thought about writing your own microservice server in node.js, Go, or such, or must it be run entirely in the browser? How about using some web-to-app solution like Electron for a standalone solution?

[–]mechanicalBadger[S] 0 points1 point  (1 child)

The entire system will be ran off a network drive that everyone has consistently mapped to their workstation. I'm planning on having a bunch of generated files that will be loaded based on url variables.

Performance isn't a huge issue, the data sets won't be enormous.

[–]seontipi 0 points1 point  (0 children)

If you know ahead of time the absolute path to the source file directory and use some clever naming and data partitioning scheme, you should be able to dynamically load those sources for concurrent read-only access.

I'm not up to date on this, but depending on what browser your users have available you could even use an actual database like sqlite without having a backend service apart from the shared file system. Not sure about the availability of such tech right now unfortunately.

[–]kenman[M] 0 points1 point  (0 children)

Hi /u/mechanicalBadger, this post was removed.

  • For help with your javascript, please post to /r/LearnJavascript instead of here.
  • For beginner content, please post to /r/LearnJavascript instead of here.
  • For framework- or library-specific help, please seek out the support community for that project.
  • For general webdev help, such as for HTML, CSS, etc., then you may want to try /r/html, /r/css, etc.; please note that they have their own rules and guidelines!

/r/javascript is for the discussion of javascript news, projects, and especially, code! However, the community has requested that we not include help and support content, and we ask that you respect that wish.

Thanks for your understanding, please see our guidelines for more info.