CocoLi7777 / img-display

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Artworks Display Board

Content

Introduction

This project is to build an image works display board and provide the function of filtering to help the user find the work easily.

The tasks are:

  1. Consume a GraphQL API and retrieve the works data.
  2. Display the small thumb image of every work, and the information of camera make and model.
  3. The user can filter the works by camera make and model.
  4. Display "Unknown Model" and "Unknown Make" as the model or make for works which are excluded in API.

Details:

Highlights

  • Using React to create reusable components.
  • Responsive UI design, mobile friendly.
  • Spinner solution used when data loading.
  • Alert solution used when improper filtering.
  • Friendly error information will be appearing when there is the error occured.
  • Reset button provided.

Running unit test

  1. run npm start first and keep the program running

  2. npm run test to launch the test

  3. Using Jest and Enzyme to have unit testing Test Image 1

Prerequisites

  1. Node.js - Download and Install Node.js.

  2. NPM - Install NPM for all dependencies both in server and client.

Quick Start

Install dependencies : npm install

Running locally

Run the client : npm start

Run the unit test: npm run test

About


Languages

Language:JavaScript 90.6%Language:HTML 6.3%Language:CSS 3.1%