Giter Club home page Giter Club logo

museum-search's Introduction

museum-search

Build Status Test Coverage Maintainability

Multi-container application providing a UI and GraphQL API to search museum names and locations.

  • Filter the search results in the list and map UI using a keyword search.

  • Zoom in on the map to get museum counts by more precise areas and see labeled pins on the map for individual museums.

  • Hover over a museum item on the list to highlight that museum on the map. Click on the list item to zoom the map to that museum.

Screenshot

Stack

This application runs on a multi-container stack including:

  • Front-end: My TypeScript/React application with a list+map UI using react-apollo to query the back-end.
  • Back-end: My TypeScript/Node.js application using apollo-server to provide a GraphQL API for searching museums.
  • ElasticSearch: A third-party search engine I use to search+filter museums by keyword and geospatial criteria.

Continuous Integration / Continuous Delivery

This repo uses Travis for continuous integration and continuous delivery.

On every commit and pull request, Travis runs the test suite, and reports success/failure and test coverage. It sends the test reports to CodeClimate, which provides code quality analysis and test coverage reports.

On every tagged commit to master, Travis builds and pushes the API and client docker images to Docker Hub with the Git tag as the Docker tag.

API Docker image

Client Docker image

To launch:

From this repo's top directory, run:

docker-compose up

This will launch the application with no data.

To add data:

This can be done while the app is running.

  1. Get "museums.csv" from https://www.kaggle.com/imls/museum-directory
  2. Put museums.csv in the "data" directory at the top of this repo.
  3. From this repo's top directory, run:
docker-compose run -e MUSEUMS_CSV=/data/museums.csv museum-api-migrate
  • Note: The "/data/museums.csv" in this command refers to a path inside the museum-api-migrate container, but the "data" directory in this path is a volume that links to this repo's "data" directory. This is how the museum-api-migrate container can read the csv file that is pasted into this repo's data directory.

Access the front-end application:

Go to <dockerhost> in your browser, where <dockerhost> is the host IP running docker. This could be localhost, or 192.168.99.100 for docker-machine on Windows.

Access the GraphQL Playground UI:

Go to <dockerhost>:4000 in your browser, where <dockerhost> is the host IP running docker. This could be localhost, or 192.168.99.100 for docker-machine on Windows.

museum-search's People

Stargazers

 avatar  avatar

Watchers

 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.