Git Product home page Git Product logo

photoapp's Introduction

Photoapp

A python app that lets one to see a gallery with photos with their descriptions

Date of Current Version (March 5th,2019)

By Joy Wendo

Description

This is a Django application which allows users to view photos which can be filtered into their different categories and locations. Try it out : https://joygallery.herokuapp.com/

Prerequisites

You need the following to work on the project: -

  • Python version 3.6
  • Pip
  • venv
  • A text Editor(vscode preferably)

Setup/Installation Requirements

  • To start using this project use the following commands:
$ git clone https://github.com/joyjoie/photoapp
$ cd ip
  • create a virtual environment
$ python3.6 -m venv virtual
  • navigate into the virtual environment
$ source virtual/bin/activate
  • while in the Virtual environment install the dependencies found in the requirements.txt file
(virtual)$ pip install -r requirements.txt
  • create a .env file and in it input the following:
SECRET_KEY=''
DEBUG=True #Set To False in Production
DB_NAME='<Your DB Name>'
DB_USER='<Your DB Username>'
DB_PASSWORD='<Your DB Password>'
DB_HOST='127.0.0.1'
MODE='dev' #set to prod in production
ALLOWED_HOSTS=['*']
DISABLE_COLLECTSTATIC=1
  • add the .env file into the .gitignore
  • create a database called photo
(virtual)$ psql
joy=# CREATE DATABASE photo;
  • make migrations
(virtual)$ python3.6 manage.py makemigrations gallery
(virtual)$ python3.6 manage.py migrate
  • to run the project enter this command
(virtual)$ python3.6 manage.py runserver

Behaviour Driven Development

Behaviour Input Output
Home - -
View Images Click on View Image A smaller image appears with the image name, description and date published
Search Nature Images in the Nature category are Displayed

Link to Live Website

Here is a link to the live website: https://joygallery.herokuapp.com/

Known Bugs

None known at the moment.

Technologies Used

  • HTML
  • JavaScript
  • CSS
  • Python

License

MIT License Copyright (c) 2019 Joy Wendo

photoapp's People

Contributors

joywendo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.