Skip to content

Commit

Permalink
Contributing guidelines and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BEagle1984 committed Dec 7, 2019
1 parent 24f144d commit 2a2674e
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 21 deletions.
57 changes: 57 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# How to contribute

Please read these guidelines before contributing to Silverback:

* [Issues and Bugs](#issue)
* [Feature Requests](#feature)
* [Submitting a Pull Request](#pullrequest)
* [Contributor License Agreement](#cla)

## <a name="issue"></a> Found an Issue?

If you find a bug in the source code or a mistake in the documentation, you can help by
submitting an issue to the [GitHub repository][github]. Or, even better, you can submit a [pull request](#pullrequest) with a fix.

When submitting an issue please include the following information:

* A description of the issue
* The exception message and stacktrace if an error was thrown
* If possible, please include code that reproduces the issue. [DropBox][dropbox] or GitHub's [Gist][gist] can be used to share large code samples, or you could [submit a pull request](#pullrequest) with the issue reproduced in a new unit test.

The more information you include about the issue, the more likely it is to be fixed!

## <a name="feature"></a> Want a Feature?

You can request a new feature by submitting an issue to the [GitHub repository][github]. Before requesting a feature consider the following:
* Silverback has many extensibility points, it is very likely that you can implement your feature without having to modify Silverback
* Stability is important and large breaking changes are unlikely to be accepted

## <a name="pullrequest"></a> Submitting a Pull Request

When submitting a pull request to the [GitHub repository][github] make sure to do the following:
* Check that new and updated code follows Silverback's existing code formatting and naming standard
* Run all unit tests to ensure no existing functionality has been affected
* Write new unit tests to test your changes: all features and fixed bugs must have tests to verify they work

Read [GitHub help][pullrequesthelp] for more details about creating pull requests.

Detailed step-by-step instructions to build and test Silverback can be found in the [project's website][build-docs].

## <a name="cla"></a> Contributor License Agreement

By contributing your code to Silverbvack you grant Sergio Aquilini a non-exclusive, irrevocable, worldwide, royalty-free, sublicenseable, transferable license under all of Your relevant intellectual property rights (including copyright, patent, and any other rights), to use, copy, prepare derivative works of, distribute and publicly perform and display the Contributions on any licensing terms, including without limitation: (a) open source licenses like the MIT license; and (b) binary, proprietary, or commercial licenses. Except for the licenses granted herein, You reserve all right, title, and interest in and to the Contribution.

You confirm that you are able to grant us these rights. You represent that You are legally entitled to grant the above license. If Your employer has rights to intellectual property that You create, You represent that You have received permission to make the Contributions on behalf of that employer, or that Your employer has waived such rights for the Contributions.

You represent that the Contributions are Your original works of authorship, and to Your knowledge, no other person claims, or has the right to claim, any right in any invention or patent related to the Contributions. You also represent that You are not legally obligated, whether by entering into an agreement or otherwise, in any way that conflicts with the terms of this license.

Sergio Aquilini acknowledges that, except as explicitly described in this Agreement, any Contribution which
you provide is on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED,
INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.


[github]: https://github.com/BEagle1984/silverback
[dropbox]: https://www.dropbox.com
[gist]: https://gist.github.com
[pullrequesthelp]: https://help.github.com/articles/using-pull-requests
[build-docs]: https://beagle1984.github.io/silverback/docs/source/contributing
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ Silverback.Integration.Kafka | [![NuGet](http://img.shields.io/nuget/vpre/Silver
Silverback.Integration.Configuration | [![NuGet](http://img.shields.io/nuget/vpre/Silverback.Integration.Configuration.svg)](https://www.nuget.org/packages/Silverback.Integration.Configuration/)
Silverback.Integration.HealthChecks | [![NuGet](http://img.shields.io/nuget/vpre/Silverback.Integration.HealthChecks.svg)](https://www.nuget.org/packages/Silverback.Integration.HealthChecks/)


## Usage

Have a look at the [project's website](https://beagle1984.github.io/silverback/docs/architecture) for usage details, snippets and examples.

## Contributing

You are encouraged to contribute to Silverback! Please check out the [how to contribute](CONTRIBUTING.md) guide for guidelines about how to proceed.

## License

This code is licensed under MIT license (see [LICENSE](https://github.com/BEagle1984/silverback/blob/master/LICENSE) file for details)
This code is licensed under MIT license (see [LICENSE](https://github.com/BEagle1984/silverback/blob/master/LICENSE) file for details)
4 changes: 2 additions & 2 deletions docs/_data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ docs:
url: /docs/extras/background-services
- title: Source Code
children:
- title: Contributing
url: /docs/source/contributing
- title: Samples
url: /docs/source/samples
- title: Source Code
url: /docs/source/github

28 changes: 28 additions & 0 deletions docs/_docs/9-source/901-contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: Contributing
permalink: /docs/source/contributing
toc: true
---

You are encouraged to contribute to Silverback! Please check out the [how to contribute](https://github.com/BEagle1984/silverback/blob/develop/CONTRIBUTING.md) guide for guidelines about how to proceed.

## Repository

The full source code is available on [GitHub](https://github.com/BEagle1984/silverback/)

## Building

### Versioning

The `Directory.Build.props` file in the root of the repository contains the current version of the nuget packages being built (and referenced). The `<BaseVersion>` and `<VersionSuffix>` tags can be used to increment the current version.

### Nuget packages

The nuget packages can be built locally using the powershell scipt under `/nuget/Update.ps1`. Add the `-l` switch to clear the local nuget cache as well (especially useful when building the same verison over and over).

## Testing

The main solution contains quite a few unit tests and additionally some [samples]({{ site.baseurl }}/docs/source/samples) are implemented in a separate solution.



Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ permalink: /docs/source/samples
toc: false
---

A solution containing a few examples can be found [here on GitHub](https://github.com/BEagle1984/silverback/tree/develop/samples/Examples).
A solution containing a few examples can be found under the `samples/Examples` directory of the [Silverback repository](https://github.com/BEagle1984/silverback/tree/develop/samples/Examples). The same solution, targeting .NET Core 2.2 can be found in `samples/Examples-2.2`.

It includes a sample consumer (`Silverback.Examples.ConsumerA`) and a sample producer (`Silverback.Examples.Main`) implementing several common use cases. Just run both console applications to see the samples in action.

<figure>
<a href="{{ site.baseurl }}/assets/images/samples.png"><img src="{{ site.baseurl }}/assets/images/samples.png"></a>
</figure>

## Environment

To execute the samples you need a running Apache Kafka (obviously) and SQL Server.
Expand Down
16 changes: 0 additions & 16 deletions docs/_docs/9-source/902-source.md

This file was deleted.

Binary file added docs/assets/images/samples.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2a2674e

Please sign in to comment.