Projet réalisé dans le cadre de l'apprentissage des API et d'API Platform

Overview

Bilemo

BileMo est une entreprise offrant toute une sélection de téléphones mobiles haut de gamme.

Vous êtes en charge du développement de la vitrine de téléphones mobiles de l’entreprise BileMo. Le business modèle de BileMo n’est pas de vendre directement ses produits sur le site web, mais de fournir à toutes les plateformes qui le souhaitent l’accès au catalogue via une API (Application Programming Interface). Il s’agit donc de vente exclusivement en B2B (business to business).

Il va falloir que vous exposiez un certain nombre d’API pour que les applications des autres plateformes web puissent effectuer des opérations.

Il doit être possible de :

  • consulter la liste des produits BileMo
  • consulter les détails d’un produit BileMo
  • consulter la liste des utilisateurs inscrits liés à un client sur le site web
  • consulter le détail d’un utilisateur inscrit lié à un client
  • ajouter un nouvel utilisateur lié à un client
  • supprimer un utilisateur ajouté par un client.

Seuls les clients référencés peuvent accéder aux API. Les clients de l’API doivent être authentifiés via OAuth ou JWT.

Run Locally

Clone the project

  [email protected]:Redpanda2/P7-Bilemo-Apip.git

Run the docker-compose

  docker-compose up -d --build

Install the project

composer install

Configure database connexion(no password required)

  DATABASE_URL="mysql://127.0.0.1:3308/bilemo?sslmode=disable&charset=utf8mb4"

Create database and install it (in www container)

  php bin/console doctrine:database:create

Update schema

  php bin/console doctrine:schema:update -f

Load Fixtures

  php bin/console doctrine:fixtures:load --no-interaction

Reload Fixtures after change

  composer prepare

Start the docker container

  docker start <container_name>

Start the HTTP server in daemon

  symfony serve -d

Credentials to login

  username: [email protected]
  password: '12345678'

Requirements

  • PHP 8.0
  • Docker
  • Docker-compose
Comments
  • Restyle Tests

    Restyle Tests

    Automated style fixes for #20, created by Restyled.

    The following restylers made fixes:

    To incorporate these changes, merge this Pull Request into the original. We recommend using the Squash or Rebase strategies.

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
  • Restyle doctrine extension to get only current users data

    Restyle doctrine extension to get only current users data

    Automated style fixes for #17, created by Restyled.

    The following restylers made fixes:

    To incorporate these changes, merge this Pull Request into the original. We recommend using the Squash or Rebase strategies.

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
  • Restyle added eventsuscriber to add Client & CreatedAt on POST Customer

    Restyle added eventsuscriber to add Client & CreatedAt on POST Customer

    Automated style fixes for #14, created by Restyled.

    The following restylers made fixes:

    To incorporate these changes, merge this Pull Request into the original. We recommend using the Squash or Rebase strategies.

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
  • Restyle authentication + ACL implemented

    Restyle authentication + ACL implemented

    Automated style fixes for #11, created by Restyled.

    The following restylers made fixes:

    To incorporate these changes, merge this Pull Request into the original. We recommend using the Squash or Rebase strategies.

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
  • Restyle custom denormalizer to allow validator check date

    Restyle custom denormalizer to allow validator check date

    Automated style fixes for #8, created by Restyled.

    The following restylers made fixes:

    To incorporate these changes, merge this Pull Request into the original. We recommend using the Squash or Rebase strategies.

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
  • Restyle fixtures added

    Restyle fixtures added

    Automated style fixes for #5, created by Restyled.

    The following restylers made fixes:

    To incorporate these changes, merge this Pull Request into the original. We recommend using the Squash or Rebase strategies.

    NOTE: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically.

    Sorry if this was unexpected. To disable it, see our documentation.

    opened by restyled-io[bot] 0
Owner
Abdelatif H.
Abdelatif H.
Cadre is a free and open-source PHP staff management system that is built on Bootstrap and Core Boxx.

CADRE Cadre is a free and open-source PHP Staff Management System. Not the best in the world, but this simple portal has the basic features to help sm

Code Boxx 3 Sep 26, 2022
O-CONGO est un projet open source qui donne accès à la liste complète et officielle des toutes les provinces

O-CONGO est un projet open source qui donne accès à la liste complète et officielle des toutes les provinces, villes et communes de la République Démocratique du Congo (RDC), dans un premier temps.

SmirlTech 7 Aug 18, 2022
Plateforme de la communauté Devscast dans le but d'apprendre, échanger et réseauter

Devscast Community Platform The Devscast Community Platform is for those who want to impact the community by creating content around their passions, s

Devscast 11 Dec 19, 2022
Simple Symfony API-Platform Template which you can use to start to develop with symfony and api-platform

symfony-api-platform-skeleton Simple Template for Symfony API You can fork it and change the git remote to your Repo git remote set-url <your-git-remo

null 1 Jan 23, 2022
ENI Ecole Informatique, PHP Symfony projet

ENI Ecole project La société ENI souhaite développer pour ses stagiaires actifs ainsi que ses anciens stagiaires une plateforme web leur permettant d’

null 2 Jan 29, 2022
POC d'un projet Clean Architecture + DDD

Proof Of Concept - Clean Architecture & DDD Installation Dans un premier temps, cloner le repository : git clone https://github.com/TBoileau/rse cd rs

Thomas Boileau 11 Sep 3, 2022
Projet Jura2021-2022

CodeIgniter 4 Framework What is CodeIgniter? CodeIgniter is a PHP full-stack web framework that is light, fast, flexible, and secure. More information

null 2 Jan 3, 2022
projet de fin de semestre info3055: Centre de transfusion sanguine

CENTRE DE TRANFUSION SANGUINE App PRESENTATION OF THE DATABASE Role table User table Groupe table Groupe user table Sos table User sos signal table Bl

null 0 Jan 21, 2022
This is a plugin written in PHP programming language and running on the PocketMine platform that works stably on the API 3.25.0 platform

This is a plugin written in PHP programming language and running on the PocketMine platform that works stably on the API 3.25.0 platform. It allows you to hear the sound

Thành Nhân 10 Sep 27, 2022
Gestion des résultats d’un championnat de football

Projet PHP de l'UE Langages du Web du Master CCI Installation des dépendances du projet : composer install Création et alimentation de la base de don

Sawda Abdoulaye 0 Mar 20, 2022
Permet de vous de ne pas perdre des gigots pour chaque monde

About [FR] Permet de vous de ne pas perdre des gigots pour chaque monde [ENG] Allows you not to lose legs for each world Informations # _

Achedon12 1 Jan 20, 2022
L'organisation "nous les femmes " vous demande de lui réaliser une application qui permettra de gérer l'ensembles des organisations partenaires.

OSC-Femme Architecture du projet Modèle-vue-contrôleur ou MVC est un motif d'architecture logicielle destiné aux interfaces graphiques lancé en 1978 e

Epsilon 5 Aug 5, 2022
Système en php permettant d'obtenir des informations sur un numéro de téléphone.

?? Phone Checker ?? Système en php permettant d'obtenir des informations sur un numéro de téléphone. ?? • Prérequis : L'utilisation de ce système requ

SplidZ 5 Oct 31, 2022
Demo project for the API Platform / DDD Workshop

Workshop DDD x API Platform This is a demo project used for the DDD x API Platform Workshop by @chalasr & @mtarld from @coopTilleuls. Checkout git clo

Les-Tilleuls.coop 34 Dec 16, 2022
HLedger is cross-platform accounting software for both power users and folks new to accounting

HLedger Plain Text Accounting on Nextcloud HLedger is cross-platform accounting software for both power users and folks new to accounting. It's good f

Ryan Boder 11 Jan 20, 2022
Nuber is an open source container management platform it provides a front end to manage your own cloud infrastructure, using Linux Containers virtualization technology

Nuber is an open source container management platform it provides a front end to manage your own cloud infrastructure, using Linux Containers virtualization technology

null 33 Dec 14, 2022
MajorDoMo is an open-source DIY smarthome automation platform aimed to be used in multi-protocol and multi-services environment.

MajorDoMo (Major Domestic Module) is an open-source DIY smarthome automation platform aimed to be used in multi-protocol and multi-services environment. It is based on web-technologies stack and ready to be delivered to any modern device. It is very flexible in configuration with OOP paradigm used to set up automation rules and scripts. This platform can be installed on almost any personal computer running Windows or Linux OS.

Sergei Jeihala 369 Dec 30, 2022
Upload attachments to content storage platform like Aliyun OSS, Tencent COS

Overview Yun storage provides a layer that mediates between a user or configured storage frontend and one or several storage backends. Note: jichangfe

Changfeng Ji 2 Oct 13, 2021
It's goal is to create my own platform where I can play various board games I like.

Card games The goal of this project is to create a social platform where players can communicate, create lobbies and play various board games. Current

Ondřej Mastík 2 Oct 29, 2021