From 58e8024ec4774024e3658772e9890e1200a7e70e Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Thu, 18 Jul 2024 11:25:48 +0700 Subject: [PATCH] docs: readme (#133) --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c09ded..6764924 100644 --- a/README.md +++ b/README.md @@ -269,9 +269,14 @@ foreach ($pageable->withItemsPerPage(1000)->getPages() as $page) { } ``` +There is also a console command framework, so you can easily create console +commands to run your batch jobs. Your console commands will come with all these +features: informative output, batch process resuming, progress file, running the +command up to the specified duration, signal handling, and more. + ## Demo -You can try the demo by running the following command: +You can try the web application demo by running the following command: ```bash docker run --rm -p 8187:80 ghcr.io/rekalogika/rekapager:latest @@ -279,6 +284,14 @@ docker run --rm -p 8187:80 ghcr.io/rekalogika/rekapager:latest Then access the demo at [http://localhost:8187](http://localhost:8187). +To run the demo of the batch console command, run the following command: + +```bash +docker run --rm -it ghcr.io/rekalogika/rekapager:latest tests/bin/console app:simplebatch +``` + +Try adding the `--help` option to see all the available options. + ## Acknowledgements * [Use the Index, Luke](https://use-the-index-luke.com/no-offset)