jsparrow.uk

AstraGal - A gallery Portfolio made in PHP
17 August 2019

AstraGal - A gallery Portfolio made in PHP

AstraGal - A gallery Portfolio made in PHP

Hello again! After spending a lot of time on HK47, I’ve decided it’s probably for the best I start focusing on web based projects again as I haven’t done one since chilternsom.co.uk. A perfect opportunity arose for this as a friend needed an online portfolio for their artwork as they will be applying to do an art degree soon. I decided to do this project in PHP, mostly because it’s what I know best and I wanted to be able to create this app from scratch by myself. I could’ve opted to use WordPress, but I felt the type of portfolio my friend wanted was more akin to an art gallery than a blog. We sat down together and came up with a very rough idea of what we wanted the final product to look like, and got as far as the basic layout of the site:

AstraGal First Guide
Amazing design skills I know

After having some more time to myself I came up with a slightly more refined, but still rough design of the homepage content:

AstraGal Concept

With these designs in mind, I started to work on the project. It didn’t take me long to have a working prototype of the frontend that could display all of the content within the database, and to make testing easier I added a small window that would pop up when logged in, that would allow the user to add posts directly on the frontend.

AstraGal Single Page Guide

So far, only posts had been modelled in the application, but I thought it’d be important to group related posts together in albums, and those albums could be grouped in categories. Later I realised having two levels of grouping wasn’t really necessary as I was only dealing with a relatively small set of data, so one level would suffice and the categories idea was dropped. Another feature I wanted to add was a selection of featured images to be displayed on the front page. This was done by letting the user choose the image to be featured in each slot and then that image’s id being stored in the database.

AstraGal Featured Page

All of the images in the above example are the same one, but this is simply because the same image id is being put in all the featured image slots. These slots can be sorted in whatever way the user wants. I also plan to add a similar section that simply displays the most recent posts on the home page.

This project is still early on and I have much to do to get it ready for proper use. This includes sorting out the backend interface and polishing up the frontend, although it’s already looking fairly decent for early days.