Skip to content

This is a personal gallery application to display photos for others to see. Its built using Django Framework

License

Notifications You must be signed in to change notification settings

sircollo/igallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iGallery

Author

Collins Sirwani

Description

This is a personal gallery application to display photos for others to see. Its built using Django Framework

Prerequisites

You need to install the following:

  Django - 4.0.4
  Virtual Environment

Installation

  -Git clone https://github.com/sircollo/igallery

  -cd igallery

  -install virtual env

  -pip install -r requirements.txt

  -python3.8 manage.py runserver

Technologies Used

  • Python3.8
  • Django 4.0.4
  • Bootstrap
  • PostgreSQL
  • CSS
  • Heroku

Running tests

  -python3.8 manage.py test gallery

Breakdown of tests

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.

User Story

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.

BDD

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

Deployment

Read here on how to Deploy

Preview

Live Link

License

MIT License

Copyright (c) 2022

About

This is a personal gallery application to display photos for others to see. Its built using Django Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published