Coder Social home page Coder Social logo

bilmoapip's Introduction

BilmoAPIP

Maintainability

Codacy Badge

kirokou sf5

About this project ?

Contexte

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).

Customer needs

Après une réunion dense avec le client, il a été identifié un certain nombre d’informations. 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.

How install this project ?

Prérequis

  • Language => PHP 7.2
  • Framework => Symfony
  • Composer
  • Web Server

Install

Download or clone the repository

Git clone https://github.com/kirokou/BilmoAPIP.git

Download dependencies

composer install

Config .env

Create database

php bin/console doctrine:database:create

Update Schema

php bin/console d:s:u -f

Load Fixtures

php bin/console doctrine:fixtures:load

Run server

symfony server:start
ou 
symfony serve
ou
php -S 127.0.0.1:8000 -t public

Manage Login

{ "username":"TAKE-AN-EMAIL-IN-DATABASE", "password":"openclassrooms-P7" }

Manage Client Role

By default the Client's Role is ROLE_USER. He can see only his users.
You can change your Role is data base to be ADMIN. 

UML Diagramm.

BilmoAPIP/public/diagrammes

bilmoapip's People

Contributors

kirokou avatar

Watchers

 avatar

bilmoapip's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.