- Create a web service exposing an API for BileMo.
- BileMo is a company offering a wide selection of high-end cell phones
- Sell exclusively in B2B
- Provide access to the catalog via an API to all platforms that want it
- Framework : Symfony 5.4.7
- willdurand/hateoas-bundle : Generate hypermedia links to create a self-discovering API
- lexik/jwt-authentication-bundle : Create stateless authentication with a token
- nelmio/api-doc-bundle : Create API documentation with annotations
- PHP 7.2.5 or higher
- PHP extensions : Ctype, iconv, JSON, PCRE, Session, SimpleXML and Tokenizer
- SQL DBMS
- Versions used in this project
- Apache 2.4.46
- MySQL 5.7.34
- PHP 8.1.4
- Download zip files or clone the project repository with github - GitHub documentation
# SQL DBMS
DATABASE_URL="mysql://username:password@host:port/dbname"
- List and select PHP version (minimum 7.2.5)
symfony local:php:list
- Set your PHP version
echo 8.1.4 > .php-version
composer install
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
php bin/console doctrine:fixtures:load
php bin/console lexik:jwt:generate-keypair
- Go to https://127.0.0.1:8000/api/doc and follow the instructions