This is a personal gallery application to display photos for others to see. Its built using Django Framework
You need to install the following:
Django - 4.0.4
Virtual Environment
-Git clone https://github.com/sircollo/igallery
-cd igallery
-install virtual env
-pip install -r requirements.txt
-python3.8 manage.py runserver
- Python3.8
- Django 4.0.4
- Bootstrap
- PostgreSQL
- CSS
- Heroku
-python3.8 manage.py test gallery
Unittest to test model classes methods like save, update and delete. e.g
def test_save_method(self):
self.image.save_image()
images = Image.objects.all()
self.assertTrue(len(images)>0)
The above tests if an image instance can be saved.
A user can:
- View different photos that interest me.
- Click on a single photo to expand it and view its details
- Search for different categories of photos. (ie. Travel, Food)
- Copy a link to the photo to share with my friends.
- View photos based on the location they were taken.
Feature: Test images can be added in the Django Admin
Scenario: Django Admin can add new images
Given I am on the Django Admin
When I click on the "Add" button
Then I am on the add new image input form
Then I add new image details
Then I click save
Read here on how to Deploy
Copyright (c) 2022