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.
- 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
-
Clone the repository:
git clone https://github.com/lubeschanin/logon_app.git cd logon-tracking-app -
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
-
Run the FastAPI server:
uvicorn main:app --host 0.0.0.0 --port 8001
The server will be available at http://localhost:8001.
-
Record a client login:
POST /api/login { "clientname": "string", "servername": "string", "time": "string" }
-
Record a client logoff:
POST /api/logoff { "clientname": "string", "servername": "string", "time": "string" }
Visit http://localhost:8001/dashboard to view the latest login and logoff events for clients on different servers.
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.
This project is licensed under the GNU General Public License version 2 (GPLv2)