39 lines
657 B
Markdown
39 lines
657 B
Markdown
# 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
|
|
```
|