Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Connect Appery.io backend with Photoswipe gallery

Could you clarify what is your problem is? You can't get images from BD or can't apply photoswipe gallery?

Pratik Sah
Posts: 0
Joined: Wed Jun 19, 2013 5:26 am

Connect Appery.io backend with Photoswipe gallery

Yes ,
I want to get the images from backend database to be displayed in my photoswipe gallery.
I m able apply photoswipe gallery as shown in your tutorials , but i need to display my images(which are saved in my appery.io backend database) to be shown in the photoswipe gallery .

In your photoswipe gallery tutorial we are giving individual image links under the HTML tag and hence those images are displayed in the photswipe gallery . but in my case i want my photoswipe gallery to be connected to appery.io backend database , so that whatever images are saved in the database should be displayed in the photoswipe gallery .
Even when the number images in database increase, photoswipe gallery should automatically show that new image in it .

Thanks

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Connect Appery.io backend with Photoswipe gallery

"photoswipe gallery should automatically show that new image in it" - it's not possible at this moment, but we will be adding Server Code feature shortly, so you will be able to write any custom code and achive this. For now you can just get all images and make "individual image links under the HTML tag and hence those images are displayed in the photswipe gallery".

Pratik Sah
Posts: 0
Joined: Wed Jun 19, 2013 5:26 am

Connect Appery.io backend with Photoswipe gallery

Hi Marina ,

As server code is included in appery.io ..a great news .

I would like to know the procedure to create database driven image gallery using server side code.
is it possible now ?

and i also want to create user login account with validations. these username and password is account information should be saved in our backend database service.
As soon as user log in to his account using valid username and password ..he can view his home screen ..

Please help me with this !

Thanks .

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Connect Appery.io backend with Photoswipe gallery

Hello! There is no documentation on server-side code for now (we will be adding it soon). There should be necessary information.

Pratik Sah
Posts: 0
Joined: Wed Jun 19, 2013 5:26 am

Connect Appery.io backend with Photoswipe gallery

Thank You Marina ,

So is there a way out as of now ... I am trying to connect my photo database with my gallery ..i want to display all the picture which are uploaded on database to the photo gallery..

JACKSON LIANG
Posts: 0
Joined: Fri Aug 02, 2013 5:12 am

Connect Appery.io backend with Photoswipe gallery

Hi Pratik im am trying to look for the same solution as you. With no success. Appery team please teach us how to connect photoswipe with backend DB.

Anton Artyukh5836028
Posts: 0
Joined: Wed May 08, 2013 12:57 pm

Connect Appery.io backend with Photoswipe gallery

Hi Jackson,

Can you describe more specific what you want? What you mean by connection photoswipe with backend?

JACKSON LIANG
Posts: 0
Joined: Fri Aug 02, 2013 5:12 am

Connect Appery.io backend with Photoswipe gallery

The photoswipe tutorial only teaches us to display images that are already currently in the DB. If I upload a new image the gallery does not display that new image cause you need to change the HTML tag again with the correct image source. Is there anyway to teach us to NOT change the HTML tags but automatically connect photoswipe with the Backend DB so that i dont have to keep adding html image tags. Otherwise, how else would the user able to upload a new image and display that new image on the gallery?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Connect Appery.io backend with Photoswipe gallery

Hi Jackson,

Photoswipe library requires images to be available for direct link. This is impossible with Appery.io database as you have to do a POST request to API to get one image.

Return to “Issues”