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