Git Product home page Git Product logo

via_project's Introduction

Pub tracker

Semestral project for the A4M33VIA subject at FEE CTU.

The goal of this application is to easily find nearby restaurants visited by the user and his facebook friends. While visiting a restaurant user can rate it and add a comment about it. He can also see a restaurant with at least one review from his facebook friends. The application will show to the user a restaurants average review and commentary from his friends.

Application can be visited here.

Features

  • Facebook interaction (login and friends)
  • Review and comment a visited restaurant
  • Find a restaurant visited by your friends
  • Check friends average review and comments for restaurant
  • Basic restaurants information (website, address, location)

Branches

This application is implemented in two branches, which dived it to server and client part.

master

Server (backend) part is implemented with Node.js. It's purpose is to store user's reviews and comments into the document database MongoDB. It provide an RestFull API to work with this database.

Server is deployed on Heroku cloud platform and it's available on this address. It is communicating with database deployed on mLab platform.

API

GET user info
/user/:fbId

Returns info about the user by it's facebookId

POST create user
/user

Create a user from post data. Post data must be in this format and all of shown fields are required.

{
    "fbId": "testId",
    "name": "testName",
    "email": "[email protected]"
}
POST add visited place by user
/user/:fbId/addPlace

Add a visited place to specific user defined by it's facebookId. Post data must be in this format and all of shown field are required.

{
    "placeId": "placeId from google API", 
    "comment": "test comment", 
    "stars": "3"
}
POST visited by friends
/friends/visited

This endpoint execute a mapReduce function to map a visited restaurants by facebookIds of your facebook friends and match their reviews and comments to it. Required post parameter is list of facebookIds as an example.

["testFbId1", "testFbId2", "testFbId3"]

gh-pages

Client (frontend) part is implemented with jQuery framework and it uses another available APIs from Google and Facebook.

Facebook API

Facebook API is used to login user into the application and get basic information from him and his friends as Name, email and profile picture.

Google Maps API

Google Maps API is used to show current user location and nearby restaurants/pubs based on browser geolocation and render a markers for restaurant visited by the user and his friends.

Google Places API

Google places API is used to get more detailed information about restaurants.

via_project's People

Contributors

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