Skip to content

chepceline/photo-gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Gallery is a web application to showcase beautiful pictures. Users get can view photos uploaded by admin. Users can see photos based on the category, by clicking on the listed locations in the menu. They can also copy the link to a photo to paste at their discretion. They can also search for photos based on the categories.

Features

  • The home page allows users to see various images:
  • User can see all images per category they were taken
  • Users can also search for images based on categories

View Live Site here

https://celgallery.herokuapp.com/

Technologies Used

- Python 3.8
- Django MVC framework
- HTML, CSS and Bootstrap
- JavaScript
- Postgressql
- Heroku

Prerequisite

The Gallery project requires a prerequisite understanding of the following:

  • Django Framework
  • Python3.8
  • Postgres
  • Python virtualenv

Setup and installation

Clone the Repo from

https://github.com/chepceline/photo-gallery.git

Activate virtual environment

Activate virtual environment using python3.6 as default handler virtualenv -p /usr/bin/python3.8 venv && source venv/bin/activate

Install dependancies

Install dependancies that will create an environment for the app to run pip3 install -r requirements.txt

Create the Database

- psql
- CREATE DATABASE gallery;

.env file

Create .env file and paste paste the following filling where appropriate:

SECRET_KEY = '<Secret_key>'
DBNAME = 'gallery'
USER = '<Username>'
PASSWORD = '<password>'
DEBUG = True

Run initial Migration

python3.8 manage.py makemigrations gallery
python3.8 manage.py migrate

Run the app

python3.8 manage.py runserver
Open terminal on localhost:8000

Contributors

- Damaris Chepchirchir

Contact Information

chepceline25@gmail.com