Containerized setup for REST API
- Docker Native
- Docker Compose
- Docker Machine
- Virtualbox
- Clone the repository.
- Change directory into the cloned project.
- Use the following command.
$ cp .env.example .env
$ make install
$ make containers_up
$ make remove_containers
$ make destroy_machine
make install -> creates the machine and then does the setup
make containers_up -> runs the projects setup (machine should already be available)
make remove_containers -> removes all the containers
make destroy_machine -> destroys the machine (everything will be gone :) )
make project_config -> shows the project configuration details
make project_deps -> fulfils the project dependancies (composer...)
make run_tests -> run the tests
make migration -> run the db migrations
make seed_db -> populate some dummy data in the db
make run_tests -> Runs all the tests
make build_coverage -> Builds the code coverage report (www/restapi/coverage)