From dfa6c3306226b032bb6a0e88469ef8a17cf58031 Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Fri, 15 Sep 2023 12:18:40 -0500 Subject: [PATCH] docs(redis_client): add CONTRIBUTING.md and update README.md (#1273) --- packages/redis_client/CONTRIBUTING.md | 25 ++++++++++++ packages/redis_client/README.md | 56 ++++++++++++++------------- 2 files changed, 54 insertions(+), 27 deletions(-) create mode 100644 packages/redis_client/CONTRIBUTING.md diff --git a/packages/redis_client/CONTRIBUTING.md b/packages/redis_client/CONTRIBUTING.md new file mode 100644 index 00000000..f1d74255 --- /dev/null +++ b/packages/redis_client/CONTRIBUTING.md @@ -0,0 +1,25 @@ +# Contributing + +We are happy to accept contributions! + +## Developing + +### Running Tests + +To run the tests locally, ensure you have [Docker](https://www.docker.com) installed and pull the redis-stack-server image: + +```sh +docker pull redis/redis-stack-server +``` + +Then, start the server: + +```sh +docker run -p 6379:6379 --rm -e REDIS_ARGS="--requirepass password" redis/redis-stack-server +``` + +Now you can run the tests locally: + +```sh +dart test +``` diff --git a/packages/redis_client/README.md b/packages/redis_client/README.md index 7efbb8f4..151bf975 100644 --- a/packages/redis_client/README.md +++ b/packages/redis_client/README.md @@ -1,13 +1,15 @@ # ๐Ÿฆ Shorebird Redis Client -[![pub package](https://img.shields.io/pub/v/shorebird_redis_client.svg)](https://pub.dev/packages/shorebird_redis_client) -[![ci](https://github.com/shorebirdtech/shorebird/actions/workflows/main.yaml/badge.svg)](https://github.com/shorebirdtech/shorebird/actions/workflows/main.yaml) -[![codecov](https://codecov.io/gh/shorebirdtech/shorebird/branch/main/graph/badge.svg)](https://codecov.io/gh/shorebirdtech/shorebird) +[![Discord][discord_badge]][discord_link] + +[![pub package][pub_badge]][pub_link] +[![ci][ci_badge]][ci_link] +[![codecov][codecov_badge]][codecov_link] [![License: MIT][license_badge]][license_link] -A Dart library for interacting with a [Redis](https://redis.io) server. +A Dart library for interacting with a [Redis][redis_link] server. -Built with ๐Ÿ’™ by [Shorebird](https://shorebird.dev). +Built with ๐Ÿ’™ by [Shorebird][shorebird_link]. ## Quick Start ๐Ÿš€ @@ -35,35 +37,35 @@ Future main() async { } ``` -## Testing ๐Ÿงช +## Join us on Discord! ๐Ÿ’ฌ -To run the tests locally, ensure you have [Docker](https://www.docker.com) installed and pull the redis-stack-server image: +We have an active [Discord server][discord_link] where you can +ask questions and get help. -```sh -docker pull redis/redis-stack-server -``` +## Contributing ๐Ÿค -Then, start the server: - -```sh -docker run -p 6379:6379 --rm -e REDIS_ARGS="--requirepass password" redis/redis-stack-server -``` - -Now you can run the tests locally: - -```sh -dart test -``` +See [CONTRIBUTING.md](CONTRIBUTING.md). ## License ๐Ÿ“ƒ -Shorebird packages are licensed for use under either Apache License, Version 2.0 -(LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) MIT license -(LICENSE-MIT or http://opensource.org/licenses/MIT) at your option. +Shorebird packages are licensed for use under either of the following at your option: -See our license philosophy for more information on why we license files this -way: -https://github.com/shorebirdtech/handbook/blob/main/engineering.md#licensing-philosophy +- [Apache License, Version 2.0][apache_link] +- [MIT license][mit_link] +See our [license philosophy](https://github.com/shorebirdtech/handbook/blob/main/engineering.md#licensing-philosophy) for more information on why we license files this way. + +[apache_link]: http://www.apache.org/licenses/LICENSE-2.0 +[ci_badge]: https://github.com/shorebirdtech/shorebird/actions/workflows/main.yaml/badge.svg +[ci_link]: https://github.com/shorebirdtech/shorebird/actions/workflows/main.yaml +[codecov_badge]: https://codecov.io/gh/shorebirdtech/shorebird/branch/main/graph/badge.svg +[codecov_link]: https://codecov.io/gh/shorebirdtech/shorebird +[discord_badge]: https://dcbadge.vercel.app/api/server/shorebird +[discord_link]: https://discord.gg/shorebird [license_badge]: https://img.shields.io/badge/license-MIT-blue.svg [license_link]: https://opensource.org/licenses/MIT +[mit_link]: http://opensource.org/licenses/MIT +[pub_badge]: https://img.shields.io/pub/v/shorebird_redis_client.svg +[pub_link]: https://pub.dev/packages/shorebird_redis_client +[redis_link]: https://redis.io +[shorebird_link]: https://shorebird.dev