{"id":29644948,"url":"https://github.com/buathiertom/apishop","last_synced_at":"2026-04-12T01:43:49.761Z","repository":{"id":303555496,"uuid":"1015472402","full_name":"BuathierTom/ApiShop","owner":"BuathierTom","description":"Site e-commerce avec API dotnet et front react","archived":false,"fork":false,"pushed_at":"2025-07-16T08:51:24.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-17T12:06:31.513Z","etag":null,"topics":["api-rest","dotnet","postgresql","vite"],"latest_commit_sha":null,"homepage":"https://apishop.buathier-tom.fr","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BuathierTom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-07T14:52:27.000Z","updated_at":"2025-07-16T09:28:23.000Z","dependencies_parsed_at":"2025-07-08T08:36:52.502Z","dependency_job_id":"9e81989e-d9c4-4ca1-91a2-9b7d9693c967","html_url":"https://github.com/BuathierTom/ApiShop","commit_stats":null,"previous_names":["buathiertom/apishop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BuathierTom/ApiShop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuathierTom%2FApiShop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuathierTom%2FApiShop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuathierTom%2FApiShop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuathierTom%2FApiShop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BuathierTom","download_url":"https://codeload.github.com/BuathierTom/ApiShop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuathierTom%2FApiShop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266405405,"owners_count":23923536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-rest","dotnet","postgresql","vite"],"created_at":"2025-07-22T01:06:37.440Z","updated_at":"2026-04-12T01:43:44.731Z","avatar_url":"https://github.com/BuathierTom.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ApiShop\n\n`ApiShop` est une application e-commerce complète composée d’une API REST back-end en ASP.NET Core (C#) et d’un front-end React/TypeScript.\n\n## 📂 Structure du projet\n\n```\nApiShop.sln\n├── back/\n│   ├── ApiShop.Business/        ← Logique métier (services)\n│   ├── ApiShop.Common/          ← Objets partagés (DTO, DAO, Requests)\n│   ├── ApiShop.DataAccess/      ← Accès base de données (repositories, migrations)\n│   └── ApiShop.WebApi/          ← API principale (controllers, Program.cs)\n├── front/\n│   ├── public/                 \n│   └── src/\n│       ├── api/                \n│       ├── components/        \n│       ├── context/            \n│       ├── hooks/              \n│       ├── pages/              \n│       ├── types/              \n│       ├── App.tsx             \n│       ├── index.css           \n│       ├── main.tsx            \n│       └── vite.config.ts      \n```\n\n## 🚀 Fonctionnalités Back-End\n\n### 👤 Utilisateurs\n\n* Inscription\n* Connexion sécurisée\n* Rôle par défaut : `Client`\n* Promotion d’utilisateur\n\n### 🛍️ Produits\n\n* CRUD complet (`GET`, `POST`, `PUT`, `DELETE`)\n* Filtrage par catégorie\n\n### 📂 Catégories\n\n* CRUD catégories\n* Gestion de catégories parent/enfant\n\n### 🛒 Panier\n\n* Ajout, modification quantité, suppression\n\n### 📦 Commandes\n\n* Création commande avec articles\n* Historique commandes par utilisateur\n* Modification statut commande (`Pending`, `Paid`, etc.)\n\n## 🛠️ Démarrage du Back-End\n\n### Prérequis\n\n* [.NET 9 SDK](https://dotnet.microsoft.com/download)\n* PostgreSQL\n* [EF Core CLI](https://learn.microsoft.com/ef/core/cli/dotnet)\n\n```bash\ndotnet tool install --global dotnet-ef\n```\n\n### Configuration connexion BDD\n\n```bash\ndotnet user-secrets init\ndotnet user-secrets set \"ConnectionStrings:ApiShop\" \"Host=localhost;Port=5432;Database=ApiShop;Username=postgres;Password=yourPassword\"\n```\n\n### Migration et lancement\n\n```bash\ndotnet ef database update -s ApiShop.WebApi\ndotnet run --project ApiShop.WebApi\n```\n\n## ⚛️ Fonctionnalités Front-End (React + TypeScript)\n\n* Pages produits, panier, commandes, authentification\n* Gestion du panier en contexte React\n* Composants UI avec TailwindCSS\n\n## 🛠️ Démarrage du Front-End\n\n### Prérequis\n\n* [Node.js 20+](https://nodejs.org/en/download/)\n* npm ou yarn\n\n### Installer dépendances\n\n```bash\ncd front\nnpm install\n```\n\n### Lancer en mode dev\n\n```bash\nnpm run dev\n```\n\nL’app est accessible sur `http://localhost:5173`.\n\n## 🧩 Liens importants\n\n* API (Swagger non déployé) : `https://api.apishop.buathier-tom.fr`\n* Front-End React : `https://buathier-apishop.vercel.app/`\n\n## 📦 Déploiement\n\n* **Back-End**\n  Déployé sur **Render** avec la base de données PostgreSQL hébergée sur **NeonDB**.\n\n* **Front-End**\n  Déployé sur **Vercel**, optimisé pour les performances et la distribution rapide.\n\n## 📝 Notes\n\n* Sécurité : Swagger désactivé en production (via `if (app.Environment.IsDevelopment())` dans `Program.cs`)\n* Gestion des rôles pour admin back-office en développement (non intégré en prod)\n* Base de données PostgreSQL avec migrations EF Core\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuathiertom%2Fapishop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuathiertom%2Fapishop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuathiertom%2Fapishop/lists"}