| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
THIS PROJECT IS ONLY FOR EDUCATIONAL PURPOSES. DO NOT USE IT FOR COMMERCIAL PURPOSES.
This project is a Python-based web application with a framework of video player's backend that uses FastAPI for the backend. It includes health checks for Redis and MySQL, middleware for processing time, and session management. The application is containerized using Docker.
Install Python 3.12.4:
sudo apt update
sudo apt install python3.12Install Docker:
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.shClone the repository:
git clone https://github.com/binaryYuki/oleapi.git
cd oleapi.gitBuild the Docker image:
docker build --build-arg COMMIT_ID=$(git rev-parse HEAD) --build-arg BUILD_AT=$(date -u +"%Y-%m-%dT%H:%M:%SZ") -t oleapi:latest .Run the Docker container:
docker run -p 8000:8000 -e SESSION_SECRET=$(python -c 'import binascii, os; print(binascii.hexlify(os.urandom(16)).decode()') oleapi:latestClone the repository:
git clone https://github.com/binaryYuki/oleapi.git
cd oleapiCreate a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`Install the dependencies:
pip install -r requirements.txtSet environment variables:
export COMMIT_ID=$(git rev-parse HEAD)
export BUILD_AT=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
export SESSION_SECRET=$(python -c 'import binascii, os; print(binascii.hexlify(os.urandom(16)).decode())')Run the application:
uvicorn app:app --host 0.0.0.0 --port 8000{
"status": "ok",
"redis": true,
"mysql": true,
"live_servers": []
}This project is licensed under the MIT License. See the LICENSE file for more details.
| Back | FazBrowse Home | New Git URL |