From 0aaebfe53288a0ada6e61564f78289bc68af1594 Mon Sep 17 00:00:00 2001 From: Blulupo Date: Sat, 4 Jan 2025 14:51:53 +0100 Subject: [PATCH] add README.MD --- README.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..52c9957 --- /dev/null +++ b/README.md @@ -0,0 +1,47 @@ +# Python Server - Hersel.it + +Questo progetto รจ un'applicazione web sviluppata con **Quart** e configurata per essere eseguita tramite **Hypercorn**. + +## Requisiti + +- Python 3.10 o superiore +- Pip (gestore dei pacchetti Python) + +# Installazione + +1. Clona il repository: + ```bash + git clone https://github.com/BluLupo/hersel.it.git + cd hersel.it + ``` + +2. Crea Ambiente Virtuale + ```bash + python3 -m venv env + ``` + +3. Attiva Ambiente Virtuale + ```bash + source env/bin/activate + ``` + +4. Installa Le Dipendenze + ```bash + pip install -r requirements.txt + ``` + +# Configurazione +Modifica il file hypercorn_config.toml se necessario per adattarlo al tuo ambiente. +Esempio di configurazione predefinita (hypercorn_config.toml): + +```toml + bind = "127.0.0.1:5000" + workers = 1 + reload = true + ``` +# Avvio Applicazione + ```bash + hypercorn -c hypercorn_config.toml app:app + ``` + +