- Make
- Docker
- Docker Compose
Add the following line to your /etc/hosts file
127.0.0.1 local-movyn-api
In the root directory, run the build command. This will build the necessary docker images
make build
To install all php dependencies
make composer c=install
Start and run the docker containers
make start
Import seeds. This will populate your database with the relevant initial data
make import-seeds
You should be able to access this url: http://local-movyn-api/health-check in your browser. You should see the response below
{
"message": "Movyn API is up and running! Let's roll!"
}
Show all available commands
make help
Stop the containers
make stop
Stop and remove all containers
make reset
If you need to get inside the php container
make ssh
To run the tests
make phpunit [path=path-to-a-file-or-folder]
To run bin/console commands
make bin c=<SOME-COMMAND>