A personal gallery application that displays photos for others to see.
You can preview the deployed application here ๐๐พ Flickr
- View different photos that interest me.
- Click on a single photo to expand it and also view the details of the photo. The photo details must appear on a modal within the same route as the main page.
- 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.
The program lets the admin upload photos
- Example input: Submit image form
- Example output: Image is shown on website
The program lets the user search for an image based on category
- Example input: Submit search form
- Example output: displays results based on search term
The program lets the user select images based on a location
- Example input: User selects specific location
- Example output: displays images for location selected
Click on the any of the buttons to get instructions on how to install the technology on your local machine.
To access this application locally on your machine, you'll need to clone it by typing this command to your terminal: git clone https://github.com/maxwaiyaki/gallery.git
.
You will then need to create a virtual enviroment inside your application python3.6 -m venv virtual
and activate it source virtual/bin/activate
for you to install the dependacies of this application. Run the command pip install -r requirements.txt
in your virtual enviroment to install all the required dependancies. You will also need to create a .env file using the format below.
Server the application using python3.6 manage.py runserver
to view it on your local web browser.
#don't share your .env settings make sure you ignore them in your .gitignore file
SECRET_KEY='<Your SECRET_KEY>'
DEBUG=True #set to false in production
DB_NAME='<gallery>'
DB_USER='<YOUR DB USERNAME>'
DB_PASSWORD='<YOUR DB USERNAME>'
DB_HOST='127.0.0.1'
MODE='dev' #set to 'prod' in production
ALLOWED_HOSTS='.localhost', '.herokuapp.com', '.127.0.0.1'
DISABLE_COLLECTSTATIC=1
There are no known bugs yet but if you encounter a bug(s) create an issue stating the problem(s).
Maxwell Waiyaki ยฉ๏ธ 2018