Installation Guide
This guide will help you install and set up CareLog on your system.
Prerequisites
Before installing CareLog, ensure you have the following:
- Python 3.8 or higher - Download Python
- pip - Python package installer (included with Python)
- Git (optional) - For cloning the repository
Installation Steps
1. Clone the Repository
git clone https://github.com/howweishan/carelog.git
cd carelogOr download the ZIP file from the repository and extract it.
2. Create a Virtual Environment
It's recommended to use a virtual environment to isolate project dependencies:
Windows:
python -m venv venv
.\venv\Scripts\activatemacOS/Linux:
python3 -m venv venv
source venv/bin/activate3. Install Dependencies
Install all required Python packages:
pip install -r requirements.txt4. Initialize the Database
CareLog uses a JSON-based database. On first run, it will automatically create the necessary data files in the data/ directory.
5. Run the Application
Start the Streamlit application:
streamlit run app.pyThe application will open in your default web browser at http://carelog.slimer.dev.
Default Credentials
CareLog comes with pre-configured test accounts for each role. You can find these in the data/data.json file or create new accounts through the system.
WARNING
Important: Change all default passwords in production environments!
Configuration
Environment Variables
You can configure CareLog using environment variables:
STREAMLIT_SERVER_PORT- Port to run the application (default: 8501)STREAMLIT_SERVER_ADDRESS- Address to bind to (default: carelog.slimer.dev)
Streamlit Configuration
Customize Streamlit settings in .streamlit/config.toml:
[server]
port = 8501
address = "carelog.slimer.dev"
[theme]
primaryColor = "#FF4B4B"
backgroundColor = "#FFFFFF"
secondaryBackgroundColor = "#F0F2F6"
textColor = "#262730"
font = "sans serif"Troubleshooting
Port Already in Use
If port 8501 is already in use, specify a different port:
streamlit run app.py --server.port 8502Module Not Found Errors
Ensure all dependencies are installed:
pip install -r requirements.txt --upgradeDatabase Errors
If you encounter database issues, you can reset the database by deleting the data/data.json file. A new one will be created on next run.
DANGER
Warning: This will delete all data!
Next Steps
- First Time Setup - Configure your CareLog instance
- User Guides - Learn how to use CareLog
- Developer Guide - Start developing with CareLog