-
Notifications
You must be signed in to change notification settings - Fork 4
Update Readme #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update Readme #64
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
640582b
add initial readme
zedimytch d43c062
move error response to top
zedimytch a1166e0
add participating section
zedimytch ba08d1b
Merge branch 'master' into feature/readme
zedimytch 986e838
reduce scope of readme
zedimytch 96b63a9
remove extra space
zedimytch da02934
admin is only service operator
zedimytch f5950a2
remove unneeded info
zedimytch 60e84b4
update participating text
zedimytch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,50 @@ | ||
| # Reverse.Watch | ||
| # [reverse.watch](https://reverse.watch) | ||
|
|
||
| Community-driven open trade reversal tracking database for Steam. Participating entities can report trade reverals to the open database. | ||
|
|
||
| ## Interested in Participating? | ||
|
|
||
| If you're looking to participate, reach out at **join@reverse.watch**. | ||
|
|
||
| ## Running Locally | ||
|
|
||
| 1. Ensure Go 1.24+ and PostgreSQL are installed. | ||
| 2. Copy the config template and fill in your local database credentials: | ||
| ```bash | ||
| cp config.example.json config.json | ||
| ``` | ||
| 3. Run the service: | ||
| ```bash | ||
| go run main.go | ||
| ``` | ||
|
|
||
| The server starts on port `80` by default (configurable via `HTTP_PORT`). | ||
|
|
||
| ## Configuration | ||
|
|
||
| Configuration is loaded from environment variables or a `config.json` file. | ||
|
|
||
| ## Authentication | ||
|
|
||
| All entity endpoints require a Bearer token in the `Authorization` header: | ||
|
|
||
| ``` | ||
| Authorization: Bearer reversewatch_live_xxxxxxxx... | ||
| ``` | ||
|
|
||
| API keys are scoped to an entity and carry a permission bitfield. Keys are prefixed with `reversewatch_live_` (production) or `reversewatch_test_` (development). | ||
|
|
||
| ### Permissions | ||
|
|
||
| | Permission | Description | | ||
| |---|---| | ||
| | `admin` | Full administrative access (Service operator only) | | ||
| | `manage` | Manage API keys for own entity | | ||
| | `write` | Create reversal reports | | ||
| | `delete` | Expunge reversal reports for own entity | | ||
| | `read` | Read access | | ||
| | `export` | List and export reversal data | | ||
|
|
||
| ## Rate Limiting | ||
|
|
||
| Rate limits are enforced in-memory per process. Throttled responses return `429 Too Many Requests` with `X-RateLimit-*` and `Retry-After` headers. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "Database": { | ||
| "Host": "localhost", | ||
| "Port": "5432", | ||
| "User": "postgres", | ||
| "Password": "postgres", | ||
| "PrivateDBName": "private", | ||
| "PublicDBName": "public" | ||
| }, | ||
| "HTTP": { | ||
| "Port": "3434", | ||
| "AllowedOrigins": ["allowed-origin-1", "allowed-origin-2"] | ||
| }, | ||
| "Environment": "development" | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.