GithubHelp home page GithubHelp logo

spark_locations's Introduction

SPARK LOCATIONS

The Spark Locations is a Django Application that let users follow one another. Any user can then view the places that a particular user(only whom he/she is following) had checked-in.

Models

  • Place:
    • Store the global data of places.
    • The table will be prepopulated with places around the globe(so that the users can get the list of places based on their location).
    • Places are stored as the 'PolygonField' using the Django GIS.
  • User:
    • User table contains the basic user data such as the username, first_name, last_name, email.
  • UserCheckedInPlace:
    • This table contains the details of places that the user had checked-in.
    • 'places' field represents the foreign key of place table.
  • UserFollowing:
    • This table contains the details user following and followers

Views(Pseudo-codes/methods)

  • 'current_place':
    • This method return places near a users current location.
    • The user will be providing the current location(point data- latitude and longitude).
    • The places will be fetched based the user's current location and the it will be returned.
  • 'user_checkin':
    • This method creates the user check-in data.
    • User will be selecting a place_id from the list provided based on the location.
  • 'follow_user':
    • This method creates user following data if the requested user is not following a particular user.
  • 'unfollow_user':
    • This method removes user following data if it exists for the requested user and a particular user.
  • 'user_following_list':
    • This method retrieves the list of all users whom the requested user is following.
  • 'user_checked_in_places':
    • Retrieves the list of places a particular user had checked-in.
    • The requested user will provide a user_id as input and the list of all places the user(based on user_id) had checked-in will be retrieved if only the requested user is following that particular uer.

Thank you.

spark_locations's People

Contributors

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