Skip to content

Westerbay/Open-Site-Counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Site Counter

Open Site Counter is a FastAPI-based API that allows:

  • registering website visits (/register),
  • retrieving statistics and a connection graph (/get).

Features

  • SQLite storage with SQLAlchemy
  • Hashing for efficient lookups
  • /register endpoint to log visits
  • /get endpoint to return stats and connection graphs
  • frontend folder, showcasing an example of how to use the application

Requirements

  • Python 3.10+ or Docker

Installation (without Docker)

chmod +x run.sh
./run.sh

The API will be available at http://127.0.0.1:5001.

Usage with Docker

  1. Build the Docker image:
docker build -t open-site-counter .
  1. Run the container exposing port 5001:
docker run -d -p 5001:5001 open-site-counter

You can also pull and use the prebuilt Docker image from the GitHub page.

About

Open Site Counter is a FastAPI-based API that allows registering website visits and retrieving statistics.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors