Skip to content

lubeschanin/logon_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README.md

Logon Tracking App

The Logon Tracking App is a simple web application built with FastAPI and SQLite3 that allows you to track login and logoff events for clients on different servers. The app provides an API to record client login and logoff events and a dashboard to view the latest login and logoff events.

Features

  • Record client login and logoff events with the API
  • View the latest login and logoff events on the dashboard
  • Store data in an SQLite3 database

Installation

  1. Clone the repository:

    git clone https://github.com/lubeschanin/logon_app.git
    cd logon-tracking-app
  2. Create a virtual environment and install dependencies:

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
    pip install -r requirements.txt
  3. Run the FastAPI server:

    uvicorn main:app --host 0.0.0.0 --port 8001

    The server will be available at http://localhost:8001.

Usage

API

  1. Record a client login:

    POST /api/login
    {
        "clientname": "string",
        "servername": "string",
        "time": "string"
    }
  2. Record a client logoff:

    POST /api/logoff
    {
        "clientname": "string",
        "servername": "string",
        "time": "string"
    }
    

Dashboard

Visit http://localhost:8001/dashboard to view the latest login and logoff events for clients on different servers.

Contributing

We welcome contributions to the Logon Tracking App! Please feel free to submit a pull request or open an issue if you encounter any problems or have suggestions for improvements.

License

This project is licensed under the GNU General Public License version 2 (GPLv2)

About

The Logon Tracking App is a simple web application built with FastAPI and SQLite3 that allows you to track login and logoff events for clients on different servers. The app provides an API to record client login and logoff events and a dashboard to view the latest login and logoff events.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors