Giter Club home page Giter Club logo

sf_ft's Introduction

SF_FT

Searchable food truck data in San Francisco

Functional spec:

This is a prototype for an interactive San Francisco food truck finder. Users can click markers on a map, enter coordinates in a modal, or use a text search to find their favorite nearby eateries on wheels.

Technology Used:

-Language:
    -JavaScript
-Libraries:
    -jQuery
    -Bootstrap
    -BootBox
    -Google Maps
    -EasySearch
-Database Systems:
    -MongoDB
-Framework:
    -Meteor

Focus: Front-end vs. Back-end:

The focus was divided evenly.

Emphasis was placed on creating a front-end that is clean, direct, and simple tool with the user in mind. Media consumers want quick, easy, interactive tools with big buttons. The front-end was also designed specifically with KQED in mind. The links on the nav-bar, the presence of a side nav-bar, as well as the "jumbotron" image and "newsy" headline were created to mimic KQED's style.

Clicking a map-marker generates a big, bold modal that gives the end-user exactly what information they want to know about any food truck in San Francisco: the name, location, menu, and hours.

On the back-end, focus was placed on optimizing the databases, so that the reactive components of the front-end would be performant. The dataset of food trucks is indexed on the latitude and longitude fields, and a covered query (https://docs.mongodb.com/manual/core/query-optimization/) was used to fetch that data to populate the map, and for querying nearby trucks.

Using the EasySearch library and MongoDB text indexes, the app produces performant search results for a food truck's name, address, or menu. This was wedded with functionality to query the database after every keyup, which gives the front-end user a sensation of instant search results.

Architectural choices:

Given more time, I would improve the way the user interacts with the map. I would have the coordinate search remove all markers except the nearby trucks. I'd also have a MongoDB $geoNear query to find only trucks within the bounds of the map, so that 1) it's more performant, and 2) it's a less overwhelming number of markers for the user.

An additional issue is that on some browsers the map does not display its markers until the user scrolls on it. Several stackoverflow solutions were tried, and with more time, one that works will be found.

Additional notes:

Some style and code was taken from W3Schools and KQED, in order to mimic KQED's site more effectively. Comments in the code denote which pieces came from these sources.

sf_ft's People

Contributors

3ehoh avatar

Watchers

James Cloos 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.