Giter Club home page Giter Club logo

live-location-tracker's Introduction

Live Location Tracker


This is a live location tracker project, taken up during the May 2018 Python Pune Meetup hackathon. Please look at the comment titled Live Location and trip tracking through phone app in the following link: datameet-pune/datameet-pune.github.io#15

Development Setup

Clone this repo

$ git clone [email protected]:screwgoth/live-location-tracker.git
$ cd live-location-tracker

Create virtual environment (using virtualenvwrapper)

$ mkvirtualenv llt
$ workon llt

Install Django and other Python requirements

(llt)$ pip install -r requirements.txt

Start MySQL Server

You can use any MySQL server. In order to user a Docker container of MySQL DB, use the following command

$ docker run --name llt-db -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=llt-db -p 3306:3306 -d mysql:latest --default-authentication-plugin=mysql_native_password

In any case, please update the DATABASES section in the settings.py under the livelocationtracker folder with appropriate Database name, user, password, host IP and port. The current values are assuming you are using MySQL server using Docker as given above.

Start Django Server

(llt)$ python manage.py makemigrations
(llt)$ python manage.py migrate
(llt)$ python manage.py createsuperuser --username=admin [email protected]
(llt)$ python manage.py runserver 0.0.0.0:8000

You can open your browser to following URLs:

Contributing

  • If you want to contribute to the project, first start by creating a Issue or choosing one from the existing issue.
  • Fork the repo, create a new branch with your fix and send a Pull Request.
  • Alternatively, you can mail me at raseelbhagat [at] gmail [dot] com if you want to get involved.

live-location-tracker's People

Contributors

screwgoth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

live-location-tracker's Issues

Dockerize the application

Add a Dockerfile to build the Frontend and backend.
Add docker-compose files for bringing up a cluster
Test with Docker Swarm and/or Kubernetes

Create Webhook for Location Model

Location (latitude and Longitude) is updated in our model in the variable interval. So we will create webhook to notify our webapp about location.

Login and Logout functionality not working properly

Following are some of the issues:

  • Currently, when you click on Logout, you currently get redirected to Login page. But it has not truly logged out. You can still go to localhost:8000/dashboard page, it is accessible. This should not be possible.
  • When you click on Sign-in page, login page should be showed if user is logged out. If user is already logged in, he should be redirected to the dashboard page.

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.