GithubHelp home page GithubHelp logo

3llio7 / clickstat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itsmmdoha/clickstat

0.0 0.0 0.0 170 KB

A url shortener with gps tracking feature.

Home Page: https://clickstat.xyz

License: GNU General Public License v3.0

JavaScript 3.60% Python 29.29% CSS 19.15% HTML 47.95%

clickstat's Introduction

Clickstat

preview Clickstat is a URL shortener with IP and GPS logging. It logs information like IP address User-Agent and GPS-Coordinates if GPS Tracking is enabled. Access it at clickstat.xyz

Features

  1. IP Logging
  2. User-Agent Logging
  3. GPS Loggin
  4. IP lookup

Run Locally

steps:

  1. Setup PostgreSQL
  2. Get API token from ipinfo.io
  3. Set Environment Variables
  4. Install Requirements
  5. Run main.py

Step1:

Install PostgreSQL and Collect the collect/set your database credentials

Step2:

This Flask app uses the ipinfo.io API. Get your API token from here..

Step3:

The flask app collects the API and database credentials from your Environment Variables. To set the Variables, add the following lines to your .bashrc or .zshrc file

# Databse Creds
export PGPASSWORD='your_database_password'
export PGHOST='your_host'
export PGUSER='your_username'
export PGPORT='your_port_number'
export PGDATABASE='your_database_name'
# API token
export API_TOKEN='your ipinfo.io api token'

Make sure to replace accordingly with the actual credentials. After adding these lines, source the file by

source .bashrc

or by

source .zshrc

if you're using zsh.

Step4:

Now it's time to install the Requirements. Go to the clickstat directory and type,

pip install -r requirements.txt

Step5:

Everything is set-up! Now just run the main.py file with python3.

clickstat's People

Contributors

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