This is a Symfony based project API, designed to manage small industrial factories.
- PHP 8.0.5 Or above.
- MySQl
# Clone this repository
$ git clone https://gitlab.com/aassou/factory-management-api.git
# Go into the repository
$ cd factory-management-api
You can install the dependencies with this command
$ composer install
Create an env file with the name ".env.local" and copy the content of ".env" to it.
Then in your .env.local file change the database credentials with your ones:
mysql://username:[email protected]:3306/database_name?serverVersion=5.7
###4. Database creation:
Create the database by running the next command:
$ php bin/console doctrine:database:create
# Create migration
$ php bin/console make:migration
# Run migration
$ php bin/console doctrine:migrations:migrate
$ php bin/console lexik:jwt:generate-keypair
$ symfony serve