/prism-gallery

A photo gallery made with Django. Displays photos and provides a preview modal with extra information.

Primary LanguagePythonMIT LicenseMIT

Prism Gallery

Description

A Django web application that displays photos. Photos can be filtered based on location and searched by category.

BDD

-User clicks on gallery button to view all images -User views images by location dropdown. -User searches for images by category. -User hovers over an image to expand it and show details. -User can click on copy button on the expanded pop up to copy image link

Technologies and Tools

  • Django
  • Postgresql
  • Python

Setting up the project locally

  1. Clone the repository
git clone git@github.com:githaefrancis/prism-gallery.git
  1. Navigate to the project folder
cd PRISM-GALLERY
  1. Create database

  2. Create .env file

export DB_NAME=<name_of_db>

export DB_USER='db_user'

export DB_PASSWORD='db_password'
export SECRET_KEY='secret_key'


export DEBUG='False'

export DB_HOST='127.0.0.1'

export MODE='dev'

export ALLOWED_HOSTS='.localhost','.heroku.com','.127.0.0.1'

export DISABLE_COLLECTSTATIC=1

  1. Load .env
source .env

  1. Migrate models
python3 manage.py migrate
  1. Run the app
python3 manage.py runserver

Livelink

Prism Gallery

Contact

Email: mureithigithae@gmail.com

License

This project is under the MIT License click here for more information

© 2022 Francis Githae