Code Monkey home page Code Monkey logo

pixpy's Introduction

Pixpy

Pixpy live

Pixpy is a full-stack photo-sharing web application. It utilizes Django + Django REST Framework for the backend Web API, a PostgreSQL database, and React.js with a Redux architecture on the frontend.

The following is a (not necessarily exhaustive) enumeration of the technologies we build upon:

Frontend

Backend

Features & Implementation

Single-Page App

Pixpy is a single-page app; all content is delivered on one static page. The UI is designed to be elegant and intuitive with a straightforward layout.

Albums

Users can see and create photo Albums from the AlbumView page.

<img src="./screenshots/new-album.png"/ width=400>

New albums show a default "empty album" cover photo. The first photo uploaded to an album is automatically set as the new album cover photo on the backend.

<img src="./screenshots/album-view.png"/ width=400>

When a new album is created, the user is immediately directed to the AlbumDetailView where they can upload photos to the album. All albums belong to a user via user_id. Only the user who initially created an album can upload photos to that album.

<img src="./screenshots/album-detail.png"/ width=400>

Photos

Users can see and add Photos from the AlbumDetailView. Photos are hosted on Cloudinary, and hold a foreign key to the album_id they belong to. When a photo is uploaded, a modal pops up displaying the photo and asks for an optional caption. Focus is automatically placed on the caption input field, which can be submitted either using the Enter key or by clicking the return button.

<img src="./screenshots/add-caption.png"/ width=400>

From the AlbumDetailView, when a user clicks on a photo, it opens in a modal displaying both the image and caption. Clicking anywhere off of the modal closes the modal.

<img src="./screenshots/photo-detail.png"/ width=400>

Users can browse and view all albums and photos, but can only add photos to their albums. This restriction is reinforced both on the frontend (the button is not displayed) as well as the backend (the photo will not be saved if the current user is not the creator of the album).

User Authentication

<img src="./screenshots/login.png"/ width=400>

Pixpy uses a JSON Web Token (JWT) authentication scheme. JWTs are a compact, self-contained mechanism for securely transmitting information between parties as digitally signed JSON objects.

When a user successfully logs in using her credentials, a JSON Web Token will be returned and persisted to local storage. This token is then passed in the Authorization header of all HTTP requests against protected resources.

Because the token is "self-contained", we are able to write stateless APIs on the backend--after validating the JWT signature, user information is read from the token and protected resources are served appropriately.

<img src="./screenshots/logged-out.png"/ width=400>

pixpy's People

Contributors

joyjing1 avatar corleyma avatar lfrodrigues avatar pedrorodriguesgomes avatar almeidarruben avatar andrealmar avatar abossard avatar briancappello avatar jenkins-aspenabs avatar fgarci03 avatar

Stargazers

Pratik Desai avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

rajansg

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.