Giter Club home page Giter Club logo

photofeed's Introduction

Steps to setup project on your machine:

git clone https://github.com/WarrenU/photofeed.git
cd photofeed
pip install virtualenv
virtualenv env
source env/bin/activate
chmod +x ./setup.sh
_ ./setup.sh

Comments App:

  1. Model that allows for Photographers to make Comment(s) on Photo(s).
  2. ModelViewSet allows for Create, Read, Update, Delete

Photographers App:

Serves as link to django's user model, by having OneToOne w/ User. Useful for showing who authored a photo or comment. Also a point of interest for following other users. A Photographer has a location, so we are matching Photographer's locations to locations of Photo objects, in our feed endpoint, see views.py in photographers app.

  1. ModelViewSet allows for Create, Read, Update, Delete
  2. PhotographerSerializer overrides create and update to handle User & Photographer editing.
  3. To see a photographer's Feed of photos near their location & of photographers they are following, visit: /photographers/1/feed/
  4. To follow a user, you could update via Post/Patch on the Photographer endpoint: photographers/1/follow, or do a post request to: photographers/1/follow where the id in the url is who you want to follow (as a logged in user, ensured via IsAuthenticated).

Photos App:

Photos are uploaded by a Photographer, and are taken at a certain location. Provide a string to identify a location of where the Photo was. (Orange, Newport Beach, Irvine) for example.

  1. ModelViewSet allows for Create, Read, Update, Delete
  2. List view of comments is available: /photos/1/comments/, we are querying a list of Comment objects, related to Photo id 1, as per example with link: /photos/1/comments/ see views.py in photos app.

Model Diagram:

screenshot from 2018-08-31 20-22-53

photofeed's People

Contributors

warrenu avatar

Watchers

James Cloos avatar  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.