REST API for Bilemo's products catalog
Environment :
- PHP 7
- MySQL 14.14
You must have installed the following before install :
Cloning the project repository :
$ git clone https://github.com/Massetho/BilemoB2B
Edit .env.dist
by adding your admin mail in the parameters. Then rename the file .env
.
Getting all dependencies :
$ composer install
Configure a DATABASE_URL constant, at the web server level, as explained here. Or edit the .env
file and insert your database address :
DATABASE_URL=mysql://[db_user]:[password]@[IPaddress]:[port]/[db_name]
Generate your SSH key explained here.
Configure your JWT_PASSPHRASE constant in .env
.
Set up your database :
$ php bin/console make:migration
$ php bin/console doctrine:migrations:migrate
Loading fixture content :
$ php bin/console doctrine:fixtures:load
The default account have the following credentials :
- User : "admin"
- Email : the email address provided by you in the ADMIN_MAIL environment constant.
- Password : "pass1234"
- Symfony 4 - PHP framework
- API Platform - REST & GraphQL framework
- Composer - Dependency management
Quentin Thomasset - PHP developper