Giter Site home page Giter Site logo

elenamlopez / iptracker-vue3 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 501 KB

Just for fun IP Tracker, done with Vue.js-3, Tailwind, Leaflet, and Open Street Maps

License: MIT License

JavaScript 22.50% HTML 17.73% Vue 58.83% CSS 0.94%
vuejs3 leaftlet tailwindcss openstreetmap

iptracker-vue3's Introduction

πŸ—ΊοΈ IP Tracker

Captura de pantalla 2021-11-21 a las 18 55 36

This is an IP tracker. After installing and running the project you must create a .env file in the root folder to add your tokens for Mapbox and IP Geolocation API. If you going to fork this repo and work over it, please use a .env.local file to store these tokens. In this way, you will not upload your tokens to GitHub (you can use secrets or another way, but is the simplest one).

Steps:

  1. Go to Mapbox and create your account.
  2. Get your Mapbox Token
  3. Create your .env (or .env.local) file in root folder (same level where package.json file is)
  4. Type inside this file:
VUE_APP_TOKEN="put-here-your-token"
  1. Go to IP Geolocation API and create an account.
  2. Go to Docs and select the API Type 2: Country + City tab. There you will find an URL, you must take this one.
  3. Type inside your .env (or .env.local) file this URL like this:
VUE_APP_GET_IP_URL="https://geo.ipify.org/api/v2/country,city?apiKey=yourApiKey="
  1. Save this .env (or .en.local) file and restart the server.

This is enough to start to work, now you can search any IP Address ;)

Hope you like it!! πŸ˜ƒ

How was done?

Using Open Street Map and Leaflet. For the CSS I was investigating with Tailwind, it is nice!

The coordinates from geo.ipify sometimes are not exactly in the correct place, but they are really approximated, so if you know an alternative please let me know in an Issue or something. Thank you a lot for this!!! 😸

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

iptracker-vue3's People

Contributors

elenamlopez avatar

Stargazers

 avatar

Watchers

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