Initial commit
This commit is contained in:
38
backend/README.md
Normal file
38
backend/README.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# InnotexBoard - Backend
|
||||
|
||||
Interface d'administration Debian avec FastAPI
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## Lancement
|
||||
|
||||
```bash
|
||||
python main.py
|
||||
```
|
||||
|
||||
Ou avec Gunicorn pour la production :
|
||||
|
||||
```bash
|
||||
gunicorn -w 4 -b 0.0.0.0:8000 -k uvicorn.workers.UvicornWorker main:app
|
||||
```
|
||||
|
||||
## Documentation API
|
||||
|
||||
Une fois démarrée, la documentation Swagger est disponible à :
|
||||
- `http://localhost:8000/docs`
|
||||
- `http://localhost:8000/redoc`
|
||||
|
||||
## Variables d'environnement
|
||||
|
||||
Créer un fichier `.env` :
|
||||
|
||||
```
|
||||
SECRET_KEY=your-super-secret-key-change-in-production
|
||||
FRONTEND_URL=http://localhost:3000
|
||||
ALGORITHM=HS256
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=480
|
||||
```
|
||||
Reference in New Issue
Block a user