This is a solution to the IP address tracker challenge on Frontend Mentor.
Live view: https://simonemandola.github.io/ip-address-tracker/public
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
- Live Site URL: View online
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- Vanilla JavaScript
- Gulp
- npm
Install packaje-lock.json
npm init
The Installation will be global (⚠ If it hasn't been installed yet)
npm install --global gulp-cli
In the project folder, run the command (If it has already been installed globally)
npm install gulp
Copy and paste all dependecies
npm i browser-sync gulp-exec gulp-sourcemaps gulp-babel gulp-uglify gulp-rename gulp-concat gulp-dart-sass gulp-htmlmin gulp-iconfont
If you are not using framework you need 'babel/core'
npm install @babel/core --save
also you need 'babel/preset-env'
npm i @babel/preset-env
On Windows
Line 41~ "gulpfile.js"
.pipe(exec('rmdir dist'))
In the root directory create gulpfile.js
In project folder, run the command (develop mode)
gulp dev
Create 'src' dir in the root of project and add 'assets' dir
If you don't use any framework, in root dir add index.html
In src directory add main.js, then import all .js files
In 'root' dir add .gitignore
- Leafletjs - Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps. forward.
- Mapbox - OpenStreetMap.
- IP Geolocation API - IP Geolocation API allows you to locate and identify website visitors by IP address. IP location helps prevent fraud, customize web experiences, and maintain regulatory compliance.
- Website - Simone Mandola
- Frontend Mentor - @simonemandola