GithubHelp home page GithubHelp logo

parksofsanfrancisco's Introduction

ParksOfSanFrancisco

Features

  • See all the parks in SF and get their locations on the map (click on 'See all parks in SF!')
  • Filter by park type (scroll through the list and click a type to get all parks of this type displayed on the map)
  • Get itinerary from one park to another (click on 'Define Itinerary' and then click on 2 markers on the map to make the itinerary appear)

Technologies used

  • Front-end

    • The map/markers/itineraries are done using LeafletJS
    • All user interactions / animations on the Front-end are made with JQuery (I used JQuery rather than Angular, considering the size of the project)
    • Communication with back-end (fetching data from back-end API) is made with Ajax calls
  • Back-end

    • The app is written in Node.js
    • The routing is written using Express.js
    • Database : I used MongoDB as database, and MongooseJS as an ODM, to create models and manipulate data from the node application

How to run the app on a local machine (MacOSX 10.9/10.10 machine)

Challenges / Overall Feedback

  • It was a lot of fun playing around with LeafletJS, and the different functionalities it offers (i.e. routing)
  • What I found the most challenging was architecturing the JavaScript code on the front-end (public/index.js), to be able to have clean and modular code, while having functions calling each other. I am pretty happy with the structure and modularity of this code
  • Also, performance-wise, I thought it was an interesting challenge to try to balance well between calling the back-end to fetch data and storing location info directly on in the index.js file, for the UX to be more reactive (i.e. when the user picks points to define the itinerary). Therefore, I am pretty satisfied the performance of the app (except for the delay sometimes for the leaflet itinerary box to load)
  • No major difficulty building the back-end, as the back-end is pretty basic (routes in express, one model for parkLocation, parsing the data to JSON and setting it to the db)
  • If I had more time, I would like to modularize the dabatase model architecture (separate the ParkLocation into different models)

parksofsanfrancisco's People

Contributors

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