GithubHelp home page GithubHelp logo

johnedma / forthegram Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 43.68 MB

Home Page: https://petstagram2.herokuapp.com/

Shell 0.12% Dockerfile 0.52% HTML 0.80% JavaScript 57.02% CSS 3.74% Python 37.49% Mako 0.32%

forthegram's Introduction

Petstagram

Landing Page

Description

A fun spin on Instagram where the animals are the users.

Features MVP

  • User Auth
  • Images
  • Likes
  • Commenting on Images
  • Following & Photo feed

Stretch Goals

  • Direct Messaging
  • hashtags

Database

Overall Structure

Front End

We used React and JavaScript on the front end. Using React hooks let us utilize state and context to keep our app from having to refresh.

Back End

We used Python's Flask framework on our back end. We used the following endpoints to make our app RESTful

  1. Main:

    • GET / - All posts from accounts user follows
  2. Blueprint: 'users', url_prefix = "/api/users"

    • GET /:id - Get all user info
    • POST / - Create new user
    • PUT /:id - Edit user info
    • DELETE /:id - Delete user
  3. Blueprint: 'posts', url_prefix = "/api/posts"

    • GET /:id - Get one post
    • POST / - Create a new post
    • PUT /:id - Edit a post
    • DELETE /:id - Delete a post
  4. Blueprint: 'comments', url_prefix = "/api/comments"

    • GET /:id - Get all comments for post at id
    • POST /:id - Comment on a post at id
    • DELETE /:id/:id2 - Delete comment(id2) from post at id
  5. Blueprint: 'likes', url_prefix = "/api/likes"

    • GET /:id - Get all likes for post at id
    • POST /:id - Like a post at id
    • DELETE /:id - Unlike post at id
  6. Blueprint: 'following', url_prefix = "api/following"

    • GET / - All accounts the user is following
    • POST / - Follow someone
    • DELETE / - unfollow someone
  7. Blueprint: 'followers', url_prefix = "api/followers"

    • GET /:id - Get all followers for user

Libraries

  • React.js
  • Flask
  • Flask-Cors
  • Flask-SQLAlchemy
  • SQLAlchemy
  • Werkzeug
  • Alembic
  • Flask-Migrate
  • Flask-Login

Primary Components

User Authorization

We used Flask-Login on our back end to keep track of our user authorization. On the front end, we used protected routes to re-route to the log-in/ sign-up page.

User Login

Profile Page

Keeping track of our users and state we were able to render a users profile with all of their posts.

Profile Page

forthegram's People

Contributors

acyg2212 avatar johnedma avatar pknipp avatar tynawilliam avatar

Stargazers

 avatar

Watchers

 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.