Vue Get User Location is a project that uses the Vue.js framework to create a web application that allows users to get their current location. The application uses the Geolocation API to retrieve the user's latitude and longitude, and displays it on the screen.
The project is built using the following technologies:
- Vue.js
- Geolocation API
- Retrieves the user's current location using the Geolocation API.
- Displays the user's latitude and longitude on the screen.
To run the project locally, follow these steps:
- Clone the repository:
git clone https://github.com/BrunoSouza88/Vue_Get-User-Location.git
- Navigate to the project directory:
cd Vue_Get-User-Location
- Install the dependencies:
npm install
- Generate your own Google API key by going to Google Cloud Console. Follow these steps to generate your key:
- Sign in to your Google account.
- Click on the project drop-down and select or create a new project.
- On the left side menu, click on "Credentials".
- Click on "+ CREATE CREDENTIALS" and select "API key".
- Copy your newly generated API key.
- Replace
[Your_KEY]
in<script src='https://maps.googleapis.com/maps/api/js?libraries=places&key=[Your_KEY]'></script>
inindex.html
with your copied API key. - Replace
"YOUR KEY"
inVUE_APP_GOOGLE_API_KEY: '"YOUR KEY"'
in/config/prod.env.js
with your copied API key. - Start the development server:
npm run dev
Access the application in your browser at http://localhost:8080.
Contributions to this project are welcome. If you find any issues or have ideas for improvements, feel free to open an issue or create a pull request. Your feedback is valuable and greatly appreciated.
To contribute, follow these steps:
- Fork this repository.
- Create a new branch for your feature (git checkout -b feature/MyFeature).
- Make necessary changes and commit (git commit -m 'Adding my feature').
- Push to the created branch (git push origin feature/MyFeature).
- Open a pull request.
Be sure to adhere to the project's coding standards and practices.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or suggestions, feel free to contact me:
Bruno Souza Email: bmsouza88@gmail.com