Coder Social home page Coder Social logo

gpstracker's Introduction

Real Time gps tracking system for Android devices

alt text

This project is a combination of an android application that tracks users by gps and a web application that displays users current location in real time.

Getting Started

Clone the git repo in a desired location in your local machine.The root directory contain two main sub directories. The directory map is related with the web application and the directory abc is related with the react-native mobile application

Prerequisites

To run the web application you don't need to install anything specific since it is developed using basic web technologies.

Firebase is used as the databse.So before the full implementation you need to create a firebase account and create a project in firebase and set up the required configurations.

Setting up a firebase project

You can refer the firebase offcial documentation. (https://firebase.google.com/docs/android/setup)

Conneting the firebase project with your local project(mobile application)

You need to go to directory abc/node_modules/react-native-background-location-tracker/android/src/main/java/com/backgroundlocationtracker/. Open the java file LocationService.java.

At the top of the file include the following lines

import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;

And make a refrence to the databse using your database information(See official documentation)

Connecting the firebase project with your local project(web application)

You need to go to directory map in your root directory and open the file app.js.Include the following lines at the top of the file by replacing the fields with your firebase project information.

var config = {
    apiKey: "AIzaSyC9RiCeNdc_AmjLlkNjfeFo4Ok_QhvuKGs",
    authDomain: "androidtracker-16411.firebaseapp.com",
    databaseURL: "https://androidtracker-16411.firebaseio.com",
    projectId: "androidtracker-16411",
    storageBucket: "androidtracker-16411.appspot.com",
    messagingSenderId: "344668856531"
  };
  firebase.initializeApp(config);

Installing

A step by step series of examples that tell you how to get a development env running with react-native.

You can refer the official react-native documentation from the following link.

(https://facebook.github.io/react-native/docs/getting-started.html)

Running the tests

To be updated in the readme in the next version

Break down into end to end tests

To be updated in the readme in the next version

And coding style tests

To be updated in the readme in the next version

Deployment

Warning

This project is in the debug version. Firebase API is free up to it's threshold values. Exceeding the limits will disable the firebase connection.This is an open source project and not to be used for commercial purposes.Firebase is not available for free for commercial purposes.

Built With

Contributing

To be updated in the readme in the next version

Versioning

To be updated in the readme in the next version

Authors

  • Lahiru Udayanga - Initial work - Github

License

To be updated in the readme in the next version

Acknowledgments

  • Hat tip to anyone whose code was used
  • Special thanks to Dr.Uthayasanker Thayasivam,Senior Lecturer of University of Moratuwa,Sri Lanka for the guidance.

gpstracker's People

Contributors

nomadxd avatar

Watchers

James Cloos 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.