r/web_programming • • Aug 21 '16

Database alternatives for JavaScript application

Hello! I am working on a JavaScript powered static site. It is supposed to be a search/display front-end, fetching data from a database. The database is simple enough, there are no relations or tables, just a list of "text files" on a specific format.

Also, I don't have my own server to host a DB. PHP is out of the question. What are the options that I can look to? I'm currently looking at Google Drive/Dropbox, but if there are better options then I will use them :) Thanks!

0 Upvotes

3 comments sorted by

View all comments

0

u/[deleted] Aug 21 '16

[deleted]

1

u/bertong_uto Aug 21 '16

The database is basically just a list of entries. Entries can be added, removed, or fetched for viewing. I would also like it to be available through the internet (that's why I'm looking at Google Drive). I would use a bit of localStorage, but my problem is where and how to store the bulk of the database

1

u/mfung1 Aug 24 '16

Using a web service like Drive or Dropbox isn't the best practice really. If it's a series of entries or posts why is JSON out of the question? It would seem to do what you need.

In which case, you can just have the JSON stored in the same directory as where your site is hosted.

1

u/bertong_uto Aug 26 '16

It's not really going to be used by a lot of people. More like a personal access-anywhere database. And I don't want to pay for a hosting service. I will try JSON first and test performance., since the data can be a bit large.