LabTrack is a comprehensive equipment management system designed for laboratory equipment tracking. It features functionalities for managing equipment, including adding, editing, searching, and bulk operations, as well as expiration alerts.
- Backend: Powered by FastAPI and MongoDB.
- Frontend: A standalone application that manages interaction with the backend.
-
Prerequisites
- Python 3.6.11 or later: Ensure Python is installed on your system.
- MongoDB: Setup Account and Clusters on MongoDB's official website.
- FastAPI: The backend is built using FastAPI. Make sure you have it installed.
-
Clone the Repository
git clone https://github.com/sayhan1610/LabTrack.git cd LabTrack
-
Create a Virtual Environment
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install Dependencies
pip install -r requirements.txt
-
Configure Environment Variables
Adjust the
MONGO_DETAILS
inmain.py
`MONGO_DETAILS = "mongo_db_url"`
-
Run the Backend Server
python3 main.py
or
python main.py
The frontend is provided as a standalone executable file. Follow these steps to use it:
-
Go to /web
Simply navigate to the directory named
web
. -
Run the Application
- Windows: Double-click and run
start_labtrack_webui.exe
file. - macOS/Linux: Open a terminal in the same directory and use
python3 app.py
orpython app.py
.
- Windows: Double-click and run
-
Configure API Base URL
Ensure the frontend is pointing to the correct backend URL. Open the frontend javascript and configure it to your own backend link. Setup
const apiBaseUrl = "url_here";
- View Equipment List: Displays a table of all equipment with details.
- Search Equipment: Allows searching for equipment based on various parameters.
- Add New Equipment: Provides a form to add new equipment.
- Bulk Add Equipment: Facilitates adding multiple entries using JSON data.
- Bulk Delete Equipment: Allows deletion of multiple items based on IDs.
- Edit Equipment: Modify details of existing equipment.
- Expiry Alert: Alerts about items expiring within the next two weeks.
Contributions are welcome! Please open an issue or submit a pull request with improvements or bug fixes.
This project is licensed under the MIT License.
For any inquiries or support, please contact sayhanrahman@gokkusagi.k12.tr.
LabTrack © sayhan1610