Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions pages/android/wait4x.md
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there a duplicate file in android and windows?

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# wait4x

> Lightweight, zero-dependency tool to wait for services to be ready.
> Perfect for CI/CD pipelines, containers, and local development.
> More information: <https://wait4x.dev>.

- Wait for a PostgreSQL database to be ready on a specific host and port:

`wait4x postgresql --host {{localhost}} --port {{5432}}`

- Wait for an HTTP endpoint to respond successfully (e.g., status 200):

`wait4x http --url {{http://localhost:8080/health}}`

- Wait for a Redis server to be ready with a 30-second timeout:

`wait4x redis --host {{redis}} --port {{6379}} --timeout {{30s}}`

- Wait for a TCP service to become available on a given host and port:

`wait4x tcp --host {{example.com}} --port {{8080}}`

- Wait for a DNS record to resolve:

`wait4x dns --host {{example.com}}`

- Wait for a RabbitMQ broker to be available:

`wait4x rabbitmq --host {{rabbitmq}} --port {{5672}}`

- Wait for a MongoDB instance to become available:

`wait4x mongodb --host {{localhost}} --port {{27017}}`

- Wait for a Kafka broker to start accepting connections:

`wait4x kafka --host {{localhost}} --port {{9092}}`
37 changes: 37 additions & 0 deletions pages/linux/wait4x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# wait4x

> Lightweight, zero-dependency tool to wait for services to be ready.
> Perfect for CI/CD pipelines, containers, and local development.
> More information: <https://wait4x.dev>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> More information: <https://wait4x.dev>.
> More information: <https://github.com/wait4x/wait4x#usage-examples>.


- Wait for a PostgreSQL database to be ready on a specific host and port:

`wait4x postgresql --host {{localhost}} --port {{5432}}`

- Wait for an HTTP endpoint to respond successfully (e.g., status 200):

`wait4x http --url {{http://localhost:8080/health}}`

- Wait for a Redis server to be ready with a 30-second timeout:

`wait4x redis --host {{redis}} --port {{6379}} --timeout {{30s}}`

- Wait for a TCP service to become available on a given host and port:

`wait4x tcp --host {{example.com}} --port {{8080}}`

- Wait for a DNS record to resolve:

`wait4x dns --host {{example.com}}`

- Wait for a RabbitMQ broker to be available:

`wait4x rabbitmq --host {{rabbitmq}} --port {{5672}}`

- Wait for a MongoDB instance to become available:

`wait4x mongodb --host {{localhost}} --port {{27017}}`

- Wait for a Kafka broker to start accepting connections:

`wait4x kafka --host {{localhost}} --port {{9092}}`
37 changes: 37 additions & 0 deletions pages/windows/wait4x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# wait4x

> Lightweight, zero-dependency tool to wait for services to be ready.
> Perfect for CI/CD pipelines, containers, and local development.
> More information: <https://wait4x.dev>.

- Wait for a PostgreSQL database to be ready on a specific host and port:

`wait4x postgresql --host {{localhost}} --port {{5432}}`

- Wait for an HTTP endpoint to respond successfully (e.g., status 200):

`wait4x http --url {{http://localhost:8080/health}}`

- Wait for a Redis server to be ready with a 30-second timeout:

`wait4x redis --host {{redis}} --port {{6379}} --timeout {{30s}}`

- Wait for a TCP service to become available on a given host and port:

`wait4x tcp --host {{example.com}} --port {{8080}}`

- Wait for a DNS record to resolve:

`wait4x dns --host {{example.com}}`

- Wait for a RabbitMQ broker to be available:

`wait4x rabbitmq --host {{rabbitmq}} --port {{5672}}`

- Wait for a MongoDB instance to become available:

`wait4x mongodb --host {{localhost}} --port {{27017}}`

- Wait for a Kafka broker to start accepting connections:

`wait4x kafka --host {{localhost}} --port {{9092}}`