Coder Social home page Coder Social logo

gnomegame's Introduction

This project was bootstrapped with Create React App.

GNOMEGAME

Basic instructions:

  • Please clone this repository
  • Install with npm install

Folder Structure

After creation, your project should look like this:

my-app/
  README.md
  .gitignore
  package-lock.json
  yarn.lock
  node_modules/
  package.json
  public/
    index.html
    favicon.ico
    manifest.json
  src/
    APi/
      BrastlewarkAPI.js
      __mocks__/
        BrastlewarkAPI.js
    components/
      Header.js
      Overlay.js
      Gnomes.js
      Friends.js
      __tests__/
        Header.js
        Overlay.js
        Gnomes.js
        Friends.js
    css/
      Assets/
        gnomehead.png
        hat-gnome.png
        nofriends.png
        orc.png
      Gnomes.css
      Header.css
      Overlay.css
      Slider.css
    App.css
    App.js
    App.test.js
    index.css
    index.js
    logo.svg
    registerServiceWorker.js
    setupTests.js

The App.js component is designed as a container that manages the state for child components and makes the Api calls.

The interaction with the API is managed by the Api.js helper file. Api calls are handled with promises and async/await features from es6/es7 js.

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

npm test

Launches the test runner in the interactive watch mode.
Basic tests are performed for all components. enzyme and jest.

For all compoenents shallow rendering and mounting tests are performed. For App.js component deeper testing is performed regarding error handling and API interaction.

Libraries

The only npm library used is rc-slider https://www.npmjs.com/package/rc-slider for easier integration of advanced filtering of numeric quantities.

Usage

On the header the user will find several filtering options for the data. The user may filter searching the name, moving the sliders for filtering by age, weight and height. Finally there is a clickable list of hair colors and professions. The filters are designed to work in conjunction to render the elements that contain all the parameteres filtered.

On clicking on each image card an overlay is rendered with the information for each gnome and his/her friends are shown.

made by: Simon Garmendia

gnomegame's People

Contributors

dependabot[bot] avatar sgarmendia 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.