This is a Symfony API Platform project (Personality Test).
You can find a live link on Heroku: https://teamway-api.herokuapp.com/
OpenAPI link: https://teamway-api.herokuapp.com/api
- PHP 8.0.5 Or above.
- MySQl
# Clone this repository
$ git clone https://github.com/aassou/teamway-test-api.git
# Go into the repository
$ cd teamway-test-api
Install dependencies using composer
$ 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:password@127.0.0.1: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
### 6. Load some data
You can load some data using fixtures or use the sql file attached to the project
```bash
# Using Fixtures
$ php bin/console hautelook:fixtures:load
# Using database_schema
Please dump the database schema and data in file database_schema.sql
$ symfony serve