Download project.
git clone https://github.com/ciscoeira/acommerce-api.git
Init docker containers.
cd acommerce-api
docker-compose up --build -d
Install dependencies
docker-compose exec app composer install --no-interaction
Run db migrations.
docker-compose exec app php bin/console doctrine:migrations:migrate --no-interaction
Generate the SSL keys:
docker-compose exec app php bin/console lexik:jwt:generate-keypair --skip-if-exists
Load test data
docker-compose exec app php bin/console doctrine:fixtures:load --no-interaction
That's it! You are ready to go.
API: Go to localhost:8015/api/doc to see the doc and test it.
Credentials for demo API Authentication are:
- user: demo
- pass: demo
DB: Database is already configured but if you need local access:
- host: localhost
- port: 33061
- user: acommerce
- pass: acommerce