lumenwrites / fictionhub_old

The perfect place to publish, discover and discuss awesome fiction
http://fictionhub.io
18 stars 4 forks source link

JSON interface for stories #8

Closed tsheinen closed 9 years ago

tsheinen commented 9 years ago

I needed a way to get the story data for my epub code and by the time I realized I could just access it directly I was already halfway through. I guess it could still be useful for plugins or something. Idk

lumenwrites commented 9 years ago

Thanks! Though in the future I will most likely replace it with REST API.

Btw, what do you mean by "access it directly"? Like by parsing html?

tsheinen commented 9 years ago

No, I was planning on accessing the db.

lumenwrites commented 9 years ago

Oh, got it. Well, it probably would be best to access it through api. Also, since people requested it, I am planning to include the "download pdf/epub" feature in the future.

tsheinen commented 9 years ago

Yeah, that's what I was working on. An ebook download button.

lumenwrites commented 9 years ago

That's really cool =)

lumenwrites commented 9 years ago

Now that I think about it, in this case of course it makes sense to access db directly. I just thought you were making a standalone script at first.

tsheinen commented 9 years ago

Ah. Have you thought about whether or not we should store the files or not? Preliminary tests have it running quick enough that it probably isn't necessary but mass cloud storage isn't particularly expensive. Google cloud storage is a couple cents per GB a month.

lumenwrites commented 9 years ago

I think it's better to start with the simplest version at first, the one that requires the least code and is easiest to implement, which is probably generating it on request, and then move on to storing files when necessary. Though if the amount of complexity/effort is similar either way, then it's best to store files.