Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bittricky/ip-address-tracker
Simple IP Address Tracker App
https://github.com/bittricky/ip-address-tracker
nextjs react tailwind typescript
Last synced: 4 days ago
JSON representation
Simple IP Address Tracker App
- Host: GitHub
- URL: https://github.com/bittricky/ip-address-tracker
- Owner: bittricky
- Created: 2024-04-05T16:35:27.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-08T15:40:41.000Z (7 months ago)
- Last Synced: 2024-05-28T16:11:24.759Z (6 months ago)
- Topics: nextjs, react, tailwind, typescript
- Language: TypeScript
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IP Address Tracker
> Simple application to get the geolocation of an IP Address
### Prerequisites
Ensure you have the following installed on your system
- Node.js: ver. 14.x or newer
- npm(Node Package Manager) or YarnOnce you have these system dependencies installed, run the following to install the necessary packages.
```
$ npm install
```or
```
$ yarn install
```### Environment configuration
The application utilizes [geo.ipify.org](https://geo.ipify.org/) API to geolocate the location from the ip address. You will need to have an API key from the service to make successful request.
Once you have acquired an API key for geo.ipify.org add a `.env` file to the root of the project directory.
```
IPIFY_API_KEY=
```### Development
Run the development server:
```
$ npm run dev
```or
```
$ yarn dev
```This will start the server on [port 3000](https://localhost:3000). Open this url in your browser to view the application.
### Production
To create a production build of the application:
```
$ npm run build
```or
```
$ yarn build
```After the build completes, you can start the production server by running:
```
$ npm start
```or
```
$ yarn start
```