Skip to content

Demarrage rapide

Prerequis

  • .NET 9 SDK (9.0+)
  • SQL Server, PostgreSQL, MySQL ou SQLite
  • (Optionnel) Docker Desktop pour l'environnement complet

Installation

bash
# Cloner le repository
git clone https://github.com/khalilbenaz/RIVORA.git
cd RVR.Framework

# Restaurer les packages
dotnet restore

# Lancer l'API
dotnet run --project src/RVR.Framework.Api

L'API demarre sur http://localhost:5220.

Endpoints disponibles

EndpointURL
API RESThttp://localhost:5220
Swagger UIhttp://localhost:5220/swagger
ReDochttp://localhost:5220/api-docs
Health Checkhttp://localhost:5220/health
Admin Blazorhttp://localhost:5200

Premiers pas

1. Creer un utilisateur

bash
curl -X POST http://localhost:5220/api/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{
    "email": "admin@example.com",
    "password": "P@ssw0rd!123",
    "firstName": "Admin",
    "lastName": "Rivora"
  }'

2. Se connecter

bash
curl -X POST http://localhost:5220/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "admin@example.com",
    "password": "P@ssw0rd!123"
  }'

La reponse contient un accessToken JWT et un refreshToken.

3. Appeler l'API

bash
curl http://localhost:5220/api/v1/products \
  -H "Authorization: Bearer <votre-token>"

Docker Compose

Pour lancer l'environnement complet (SQL Server, PostgreSQL, Redis, RabbitMQ, Prometheus, Grafana, Jaeger, Seq) :

bash
docker compose -f docker-compose.dev.yml up -d

Services disponibles :

ServicePortUI
SQL Server1433-
PostgreSQL5432-
Redis6379-
RabbitMQ5672http://localhost:15672
Prometheus9090http://localhost:9090
Grafana3000http://localhost:3000
Jaeger16686http://localhost:16686
Seq5341http://localhost:8081

Etape suivante

Released under the MIT License.