Skip to content
/ bilemo Public

Openclassrooms - PHP/Symfony - Project 7 - Création d'une API RESTful avec Symfony

Notifications You must be signed in to change notification settings

Florkin/bilemo

Repository files navigation

Bilemo API

Install project

  1. Clone repository

  2. In project folder, executes composer install

  3. In .env (or .env.local), configure your database access

  4. Executes these 2 commands
    $ openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
    $ openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout

  5. Now, you have to copy the choosen passphrase in .env, or.env.local like this: JWT_PASSPHRASE="YOUR_PASSPHRASE"

  6. Create and fill database with:
    php bin/console doctrine:database:create
    php bin/console doctrine:schema:update --force
    php bin/console doctrine:fixtures:load

  7. Run tests: php bin/phpunit

  8. To access admin panel, go to: /manager
    email: "[email protected]" pass: "demodemo"
    Don't forget to build the assets:
    yarn install, yarn encore production

  9. To test API as a client:
    username: "[email protected]" pass: "demodemo"

Api documentation is generated on : /api/doc

About

Openclassrooms - PHP/Symfony - Project 7 - Création d'une API RESTful avec Symfony

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published