Giter Club home page Giter Club logo

react-gallery-props's Introduction

PROJECT NAME

React Photo Gallery

Description

Duration: 2 Days

This is Joel Roske's full stack React App.

Screen Shot

Joel Roske React Gallery

Prerequisites

Installation

  1. Create a database named react_gallery.
  2. The queries in the database.sql file are set up to create all the necessary tables and populate the needed data to allow the application to run correctly. The project is built on Postgres, so you will need to make sure to have that installed. We recommend using Postico to run those queries as that was used to create the queries.
  3. Open up your editor of choice and run an npm install
  • Make sure you also have express, axios, and pg installed
  1. Run npm run server in your first terminal
  2. Run npm run client in your second terminal
  3. The npm run client command will open up a new browser tab for you!

Usage

  1. On loading the page, the user will see a transparent form to add a photo to the gallery. If you have already set up your database and inserted the provided images, then you will see a column of those images via an Axios GET request.
  2. The photos come in to focus when the user mouses over them, to keep focus to one image at a time.
  3. Adding an image URL and description will add the image to the top of the feed after the user clicks the 'Add' button. This is done via an Axios POST request.
  4. If the user clicks an image, the image is replaced by the image description via ternary conditional rendering. The user can click the description to see the photo again.
  5. Users can 'like' photos by clicking the blue button with the thumbs up. Next to this button is the number of likes it already has. This is done with an Axios PUT request.
  6. Users can delete images from the feed by clicking the red button with the bin. An alert will pop up asking the user to confirm deletion. If cancel is clicked, nothing happens. If OK is clicked, an Axios DELETE request deletes the image from the database and the DOM.

Built With

The full stack! React, JSX, Javascript, CSS, Axios, Node, Express, Material UI, and Postgres with SQL.

Acknowledgement

Thanks to Prime Digital Academy who equipped and helped me to make this application a reality, well as the members of my cohort, Paxos.

Support

If you have suggestions or issues, please email me at [email protected]

react-gallery-props's People

Contributors

christopher-black avatar doctorhowser avatar jroske1120 avatar kdszafranski avatar lukeschlangen avatar mbmosman avatar myronschippers avatar

Stargazers

 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.