GithubHelp home page GithubHelp logo

t1seungy / cheermeapp-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bonzanini/cheermeapp-demo

0.0 1.0 0.0 10 KB

Small demo for a "search-as-you-type" app in AngularJS + Python/Flask + Elasticsearch

License: MIT License

Makefile 7.80% Python 39.40% JavaScript 37.71% HTML 15.09%

cheermeapp-demo's Introduction

CheerMeApp Demo

Prototyped during International Beer Day 2015, CheerMeApp is a demo developed to showcase a "search-as-you-type" application in AngularJS + Flask + Elasticsearch.

Please notice this is experimental (use at your own risk). Also see "Known Limitations" below.

I also wrote a blog post about this, that walks you through the code.

Installation

Assumptions:

  • Elasticsearch is running locally (localhost:9200)
  • Tested on Elasticsearch 1.* (the mapping doesn't work on Elasticsearch 2.*)
  • Tested on Python 3.4
  • Use virtualenv to install Python dependencies

Clone repo, install virtualenv, install Python dependencies:

git clone https://github.com/bonzanini/CheerMeApp-demo
cd CheerMeApp-demo
virtualenv venv
source ./venv/bin/activate
pip install -r requirements.txt

Create basic database (use data from data/beers.data):

make index

Run backend service:

make backend

Run frontend service:

make frontend

Point your browser to:

http://localhost:8000

and search for a beer.

Known Limitations

  • After creating/deleting new items, the item list occasionally doesn't refresh correctly.
  • When the search bar is emptied, previous results are not cleared until a new search is issued.
  • No functionality to edit items yet.
  • No functionality to insert/edit/delete styles/categories yet.
  • UI: should ask "Are you very very sure?" before deleting items.
  • No caching (each keystroke is an Elasticsearch query) yet.
  • No pagination yet.
  • Elasticsearch 2.* is not yet supported

License

The textual data in data/* have been retrieved from the producers' websites in August 2015.

The code is under MIT license, see LICENSE.

cheermeapp-demo's People

Contributors

bonzanini avatar

Watchers

 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.