Skip to content

Charlesmurage/gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple photo gallery web application to showcase beautiful pictures and designs

June 17th, 2019

Description

Gallery is a simple photo gallery web application to showcase beautiful pictures and designs. Users get to view photos updated by the site admin. Users can see photos based on the location, by clicking on the listed locations in the menu. They can also copy the link to a photo to paste at their discretion. The search functionality will search photos based on the categories.

Set Up and Installations

Prerequisites

  1. Ubuntu Software
  2. Python3.6
  3. Postgres
  4. python virtualenv

Clone the Repo

Run the following command on the terminal: git clone https://github.com/charlesmurage/gallery.git && cd gallery

Activate virtual environment

Activate virtual environment using python3.6 as default handler

virtualenv -p /usr/bin/python3.6 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 = 'zoom'
USER = '<Username>'
PASSWORD = '<password>'
DEBUG = True

Run initial Migration

python3.6 manage.py makemigrations album
python3.6 manage.py migrate

Run the app

python3.6 manage.py runserver

Open terminal on localhost:8000

Known bugs

Copy functionality does not work

Technologies used

- Python 3.6
- HTML
- Bootstrap 4
- JavaScript
- Heroku
- Postgresql

Support and contact details

Contact me on muragemaina@gmail.com for any comments, reviews or advice.

License

Licensed under the (license)[MIT] Copyright (c) Charles Maina

About

This is an application that displays photos you have uploaded.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published