Code Monkey home page Code Monkey logo

myimagesearch's Introduction

Summary

Search Image is a gallery created using React, HTML and CSS. The images were displayed using the Imgur API.

Folder Structure

├── README.md - This file.
├── package.json # npm package manager file. It's unlikely that you'll need to modify this.
├── public
│   ├── favicon.ico # React Icon
│   └── index.html # DO NOT MODIFY
└── src
    ├── App.css # Custom Styles for the app.
    ├── App.js # This is the root of the app.
    ├── App.test.js # Used for testing. Provided with Create React App.
    ├── SearchImages.js # Used for header and Search bar section.
    ├── ListOfImages.js # Used for displaying images on search.
    ├── ImageView.js # Used for displaying each image.
    ├── ImageFullView.js # Used for displaying image in a full screen.
    ├── App.test.js # Used for testing. Provided with Create React App.
    ├── utils.js 
    │   ├── ImagesAPI # A JavaScript API for the images. Instructions for the methods are below.
    ├── icons # Helpful images for your app. Use at your discretion.
    │   ├── search-solid.svg
    │   ├── times-solid.svg
    ├── index.css # Global styles.
    └── index.js # It is used for DOM rendering only.

Imgur API

ImagesAPI.js contains the methods need to perform necessary operations on the backend:

getAll

Method Signature:

getAll()
  • Returns a Promise which resolves to a JSON object containing a collection of images objects.
  • This collection represents the images currently matching the search term in the search bar of the app.

Future Enhancements

  1. Open the image in a dialog

  2. Add pagination with previous/next buttons

  3. Clean Code, improve CSS and React

  4. Append common keywords for images below search bar to search for those images

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

myimagesearch's People

Contributors

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