I want to build comic book reading website that it has thousands of images on the server. Each series has hundreds of chapters and each chapter has tens of images. So I want to display these images on my website. How can we do this with less effort?
I am using AngularJS for the frontend, and for the API its Slim Framework.
I read that storing the img paths on the database is better solution. So its good to query all the image paths to MYSQL? Like http://mywebsite.com/mangas/naruto/23/001.jpg
. Or use some sort of regular expression. But every image has different extensions. Some of it .png
, some of it.jpg
and some of it 3 digits naming, some of it 2 digits naming.
-And what about when I upload a new chapter. Do I have to query all the images again?
-So is there a solution for me like this: I upload chapter wtih SFTP and then automatically my website updates itself and the chapter I uploaded appear on my website. Is somemthing like this achievable?