Giter VIP home page Giter VIP logo

bilemo's Introduction

Codacy Badge

BileMo

Projet 7 : API Bilemo

Documentation de l'API

Lien vers la documentation

(Attention à changer le port localhost si besoin !)


Environnement de développement

Pré-requis

  • PHP 8
  • Mysql 8.0
  • Symfony 5.3
  • Symfony CLI
  • Docker
  • Docker-compose

Vous pouvez vérifier les pré-requis de symfony avec la commande suivante (de la CLI de Symfony)

 symfony check:requirements

Lancer l'environnement de développement

####Avec Docker

Créez un dossier mysql à la racine du projet. Puis entrez les commande suivante :

    docker-compose up -d

L'environnement de developpement est lancé !!

Sans Docker

    cd app
    symfony serve

Ajouter les dépendances

Ouvrez un terminal a la racine du projet et exécutez les commandes suivantes :

    cd app
    composer install

Installer la base de données

Mettez à jour le fichier .env et lancé la ligne de commande suivante:

    composer prepare

Authentification

Dans le terminal exécutez la commande suivante :

    php bin/console lexik:jwt:generate-keypair

Rendez vous sur la page de documentation et exécutez la méthode login avec les paramètres suivants:

Administrateur :

  • name : bilemo
  • password :admin

Client

  • name : company1
  • password : password

bilemo's People

Contributors

mamoon97150 avatar

Watchers

 avatar

bilemo's Issues

add hateoas

  • install hateoas
  • set up relations
    • self for all entities
    • update and delete for SubUser

add SubUserController

SUPER ADMIN

  • see all Users
  • everything beneath

ADMIN

  • as User see all my sub-users
  • as User create a new sub
  • everything beneath

USER

  • as sub-user see my details
  • as sub user update my account
  • as sub-user delete my account

add Auth

  • create SecurityController
  • create User voter
  • add JWT Token
  • add token to header

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.