https://github.com/anjupriya-v/current-location-tracker
Tech stacks used : Javascript and Firebase
https://github.com/anjupriya-v/current-location-tracker
css firebase google google-map-javascript google-maps-api html javascipt
Last synced: about 2 months ago
JSON representation
Tech stacks used : Javascript and Firebase
- Host: GitHub
- URL: https://github.com/anjupriya-v/current-location-tracker
- Owner: anjupriya-v
- Created: 2022-09-25T10:42:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-14T06:25:38.000Z (over 3 years ago)
- Last Synced: 2025-01-23T19:38:51.847Z (over 1 year ago)
- Topics: css, firebase, google, google-map-javascript, google-maps-api, html, javascipt
- Language: HTML
- Homepage:
- Size: 438 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Current Location Tracker
## Tech Stacks used:
- HTML
- CSS
- Javascript
- Firebase
- Google Maps API
## Demo Video 👇
https://user-images.githubusercontent.com/84177086/211191693-ea7989d8-e201-4d2a-b2d5-90bb4f59aaa5.mp4
## :point_down:Steps to initialize the project:
### Clone the repository
```
$ git clone https://github.com/anjupriya-v/current-location-tracker.git
```
### Redirect to the cloned repo directory
### set up the firebase:
- Redirect to this site
[Firebase](https://console.firebase.google.com/)
- click on add project
- enter your project name as current-location-tracker and continue
- This project doesn't requires analytics and disable it and continue
- Now the project is created
- This is the web project. so, click on the web icon (>)
- Then enter the web app name as current-location-tracker and register it.
- It shows the npm code for firebase initialization and copy it.Then paste it instead of below code. This code is present in /src/index.js.

- Then click continue to console.
- In the side menu bar, inside the build option, click on firestore database,
- Then Click on create database and check on start in production mode and click next.
- Then provide the cloud firestore location and click on enable.
- click on start collection and give collection ID as current-location-tracker.
- Then provide the document id or auto generate it and give the field values if you want or you can give it from frontend.
### set up the google map api.
- Go to this link [google map api](https://mapsplatform.google.com/)
- click on get started and and make sure you have enable the billing for best user experience and work on many features.
- Once you’ve confirmed your billing is up-to-date, click on the Google Cloud Platform home in upper left corner again.
- Hover to APIs & Services and go to Credentials.
- If you want to use an existing project, please select it from the list. Otherwise, select ‘Create a new project’ and enter a project name.
- Click the Close button in the API key dialogue. Your new API key will be listed on the Credentials page under API keys.
- Click Create credentials and select API key. You will see a new dialog that displays the newly created API key.
- for restricting the api key, refer this [API restriction](https://developers.google.com/maps/documentation/javascript/get-api-key)
- Paste the api key instead of YOUR_API_KEY. This code is in `/src/Script.js`

### Open up the terminal
### Install the dependencies
```
npm install
```
### For running the web pack.
```
npm run build
```
### Then for starting the project, use the live server in visual studio code.