Giter Club home page Giter Club logo

react-mobile-search's Introduction

React Mobile Search

What's this?

An implementation of a mobile search pattern in a web-mobile React application.

What could it be useful for?

To see an example of a web-mobile search pattern ๐Ÿ“ฑ

What pattern?

You know... the user inputs a word in a searchbox, and some suggestions related to that word will be autosuggested. By tapping on the suggestion, the related results will be displayed below. Just like the web-mobile behavior of Google.

Tech Stack

- React
- Sass
- ExpressJs for the dev web server
- Webpack
- Jest
- Enzyme
- Code style compliant with eslint [airbnb stylesheet](https://github.com/airbnb/javascript/tree/master/react)

Usage

The accepted words that will match in this case are the following:

  • 'Berlin'
  • 'Skip the Line'
  • 'German'
  • 'Tour'
  • 'Museum'
  • 'Pass'
  • 'Transport'

Type any of those words in the searchbox and the suggestions will be displayed. All those words are stored on a configurable file calles 'suggested-entries.js'

Does it work in desktop?

  • ๐Ÿšซ No. Desktop and tablet layout are not considered.

Run the built application

  • Simply navigate the index.html file from your modern chrome version

Installation

Dependencies

npm install

Build the application

 npm run build

Run the application

npm start

Navigate to:

localhost:8080

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.