This is a solution to the IP address tracker challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for each page depending on their device's screen size
- See hover states for all interactive elements on the page
- See their own IP address on the map on the initial page load
- Search for any IP addresses or domains and see the key information and location
- Solution URL: https://github.com/montteiropedro/ip-address-tracker
- Live Site URL: https://mp-ipdomaintracker.netlify.app
These two videos helped me with the basics of React Leaflet.
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
# Clone this repository (via HTTPS or SSH)
$ git clone https://github.com/montteiropedro/ip-address-tracker.git
$ git clone [email protected]:montteiropedro/ip-address-tracker.git
Now, navigate inside the project folder. There you will find a file named .env.example
, from it you can easily configure your environment variables. Don't forget to rename this file to .env
, only then it will be functional.
After this we must install the project dependencies. We can do this by running the following command:
# Install dependencies (You must do this step inside the project folder)
$ npm install
With the dependencies installed we can run:
# Run app in localhost
npm run dev
# Compile and Build the app
npm run build
- LinkedIn - Pedro Monteiro
- Frontend Mentor - @montteiropedro