Skip to content

Petsagram, an Instagram clone, is a pet themed social media application, that allows user to share cool pet images, and follow their favorite pets.

Notifications You must be signed in to change notification settings

BrandonCope/Petsagram

Repository files navigation

Petsagram

Petsagram is a clone of Instagram but made for sharing and interacting with people's pictures of pets! It was built with Flask and React.js.

Share your pets now on Petsagram!

List of features needed for the Minimum Viable Product (MVP) and its CRUD features

List of user stories for each MVP

Schema of how our PostgreSQL database will be set up

API routes that will be used by our backend server

Frontend Routes that the client can access while interacting with Petsagram app

Petsagrams's redux state shape for our react frontend

Screenshots

Welcome:

image

Home:

image

User's Profile:

image

Technical Details

Petsagram users can follow other users to view that user's posts on their Following Feed. By clicking between Public Feed and Following Feed, the contents are filtered dynamically.

Following Feed is made possible by

@follow_routes.route('/', methods=['POST'])
def  post_follows():
    form  =  FollowForm()
    form['csrf_token'].data =  request.cookies['csrf_token']
    if  form.validate_on_submit():
    
	    user  =  User.query.get(form.data['user_id'])
	    target  = User.query.get(form.data['target_id'])
	    
	    user.followings.append(target)
	    
	    db.session.commit()
	    
	    return  user.to_dict_follow()

With this many-to-many relationship, querying specific users into the Following Feed with a simple Follow button is seamless and will show up on their Following List on their User Profile.

Features

  • Create/ delete/ edit posts
  • Like/ Unlike posts
  • See list of users who liked the post
  • Add/ edit/ delete comments on posts
  • View posts on Following Feed
  • Follow users on Public Feed
  • Unfollow users
  • See lists of followers and followings on User Profile
  • Can search for a user of their username

Possible Features

  • #Hash-tags
  • Direct messaging with websockets

Technologies Used

  • React.js
  • Python
  • Flask
  • Heroku
  • Docker
  • PostgreSQL

About

Petsagram, an Instagram clone, is a pet themed social media application, that allows user to share cool pet images, and follow their favorite pets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •