Code Monkey home page Code Monkey logo

react-gallery-td-project-7's Introduction

React Gallery

This app uses React to display a gallery comprised of photos fetched from the Flickr API

React

This project was bootstrapped with Create React App.

Installation and Getting Started

After cloning this repo, move to the root of this directory React-Gallery-TD-Project-7/ in your terminal or shell and run npm install to install all the project dependencies. Once that is done, you can launch the app with npm install. The app should be running on localhost:3000

config.js

This app requires an API key from Flickr that is personal to each Flickr user. You can apply for one at https://www.flickr.com/services/apps/create/apply/ . Once you can an API key, create a config.js in the src folder, declare a variable apiKey and assign your API key to it. Then make sure you export the key with export default apiKey and you should be all set!

Components

  • App.js - This stateful component houses the main getPhotos method to fetch the photos and stores the main rendering of all the other components
  • Nav.js - This stateless component renders the navigation links
  • SearchField.js - This stateful component renders the search bar and handles the logic for when a user searches for images
  • PhotoContainer.js - This stateful component renders the photo gallery or messages to relay to the user that content is loading or if no results are returned from their search
  • Photo.js - This stateless component renders the photo component that is part of the array that is rendered in PhotoContainer. This takes data fed to it from App.js's getPhotos method and interpolates that data into a url to display the photo from Flickr
  • NotFound - This stateless component renders a user friendly page to show a 404 page

react-gallery-td-project-7's People

Contributors

codenuggets 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.