Giter Club home page Giter Club logo

home-sweet-127.0.0.1's Introduction

127.0.0.1 Sweet 127.0.0.1 Build Status

127.0.0.1 Sweet 127.0.0.1 (a play on 127.0.0.1, localhost) is a tastefully simple app for getting the domain or IP address of any website you can imagine, using ipinfo.io and googlemaps api's.

alt text

Motivation

I've always thought tools like speedtest.net that return your specific network information and location to be super cool, so I wanted to figure out how they actually work!

Features

  • RESTish API (not fully RESTful, only serves GET, POST requests) GET request to the /api endpoint returns a JSON response for your own IP, and a POST request to the /api endpoint, which must include the domain/ IP as the variable "body" in the JSON form body, returns a JSON response for the requested domain.
  • Returns and maps the domain/ IP location information on Google Maps along with additional meta-data related to the IP
  • GET endpoint: https://home-sweet-home-ip.herokuapp.com/api
  • POST endpoint: https://home-sweet-home-ip.herokuapp.com/api with {"body" : "domain"} as request.body

Technology

  • React and JavaScript on the frontend
  • Styled with React-Bootstrap
  • NodeJS for runtime environment
  • Express for the server
  • Axios for promise-based requests to external APIs
  • IPInfo.io and GoogleMaps APIs for data
  • Hosted with Heroku
  • Git and Github for version control
  • Travis for continuous integration

Usage

Clone the repository and create a .env file in the project root and add in your api keys from IPinfo.io and GoogleMapsAPI

REACT_APP_MAPS_API_KEY="YOUR_API_KEY"
ipinfoToken="YOUR_API_KEY"

To deploy locally and run server and client with concurrently:

npm run dev

License

The project is licensed under the MIT License.

home-sweet-127.0.0.1's People

Contributors

techsolutionaaa avatar

Stargazers

Nguyễn Hải Nam avatar Russ⚡ avatar  avatar

Watchers

 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.