{"id":51013453,"url":"https://github.com/trycourier/courier-samples","last_synced_at":"2026-06-21T06:31:42.286Z","repository":{"id":323710076,"uuid":"1091272631","full_name":"trycourier/courier-samples","owner":"trycourier","description":"Courier sample projects","archived":false,"fork":false,"pushed_at":"2026-01-13T21:50:13.000Z","size":18364,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-26T08:15:28.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trycourier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-06T19:43:33.000Z","updated_at":"2026-01-13T21:49:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/trycourier/courier-samples","commit_stats":null,"previous_names":["trycourier/courier-samples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trycourier/courier-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycourier%2Fcourier-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycourier%2Fcourier-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycourier%2Fcourier-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycourier%2Fcourier-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trycourier","download_url":"https://codeload.github.com/trycourier/courier-samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trycourier%2Fcourier-samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34597337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-21T06:31:39.950Z","updated_at":"2026-06-21T06:31:42.281Z","avatar_url":"https://github.com/trycourier.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Courier Samples\n\nA collection of sample applications and scripts demonstrating how to integrate Courier's notification platform across web, mobile, and server environments.\n\n## Quick Start\n\nThe easiest way to run any sample is using VS Code's **Launch Configuration** feature:\n\n1. Open the Run and Debug panel (⌘⇧D / Ctrl+Shift+D)\n2. Select the sample you want to run from the dropdown\n3. Click the play button ▶️ or press F5\n4. Follow any prompts to enter your Courier API credentials\n\n### Demo\n\n![Demo: Starting a sample app using the VS Code Launch Configuration](assets/launcher-video.gif)\n\n## Prerequisites\n\nBefore running examples, ensure you have the required tools installed for your chosen language(s).\n\n### Quick Check\n\nRun the prerequisites checker to see what's installed:\n\n```bash\nbash scripts/check-prerequisites.sh\n```\n\nThis script will verify:\n- ✅ Required tools (Ruby, Python, Node.js, etc.)\n- ⚠️ Optional tools (Go, PHP, Kotlin, C#)\n- 🔧 Configuration (JAVA_HOME for Java/Kotlin)\n\n### Language-Specific Requirements\n\nEach language has its own requirements. See the README in each language directory for details:\n\n- **[Ruby](./server/ruby/README.md)** - Ruby 2.6+, Bundler\n- **[Python](./server/python/README.md)** - Python 3.7+, pip\n- **[Node.js](./server/node/README.md)** - Node.js 14.0+, npm\n- **[Java](./server/java/README.md)** - Java 11+, Maven\n- **[Kotlin](./server/kotlin/README.md)** - Kotlin, Java 11+ (JAVA_HOME must be set)\n- **[C#](./server/csharp/README.md)** - .NET SDK 10.0+\n- **[Go](./server/go/README.md)** - Go 1.18+\n- **[PHP](./server/php/README.md)** - PHP 7.4+, Composer\n\n## Environment Variables Setup\n\nMost samples require environment variables to be configured. You have two options:\n\n**Option A: Using the interactive script (Recommended)**\n\nThe launch configurations will automatically prompt you for required variables using `scripts/set-env.sh`. You can also run it manually:\n\n```bash\n# From the project root, specify the directory and variables you need\nbash scripts/set-env.sh --dir server/curl api_key generate_jwt_user_id\n```\n\nThe script will prompt you for each variable interactively. If `.env.example` exists in the target directory, it will be used as a starting point.\n\n**Option B: Copy from .env.example and edit manually**\n\n1. Navigate to the sample directory (e.g., `server/curl/` or `server/python/`)\n2. Copy the example file:\n   ```bash\n   cp .env.example .env\n   ```\n3. Edit `.env` with your actual Courier API credentials and values\n\n**Note:** The `.env` file is gitignored and should never be committed to version control. Each sample directory may have its own `.env` file, or they may share one (e.g., `server/curl/.env` is shared by both curl and Python scripts).\n\n## Sample Applications\n\n### Web\n\n#### React\n- **[Inbox](./web/react/inbox/)** - Full-page notification center\n- **[Toast](./web/react/toast/)** - Toast notifications\n- **[Popup Menu](./web/react/popup-menu/)** - Inbox popup menu\n- **[Designer](./web/react/designer/)** - Visual template editor\n\n#### Vanilla JavaScript\n- **[Inbox](./web/vanilla/inbox/)** - Full-page notification center\n- **[Toast](./web/vanilla/toast/)** - Toast notifications\n- **[Popup Menu](./web/vanilla/popup-menu/)** - Inbox popup menu\n\n### Mobile\n\n- **[Android](./mobile/android/)** (Coming Soon 🔜)\n- **[iOS](./mobile/ios/)** (Coming Soon 🔜)\n- **[Flutter](./mobile/flutter/)** (Coming Soon 🔜)\n- **[React Native](./mobile/react-native/)** (Coming Soon 🔜)\n- **[Expo](./mobile/expo/)** (Coming Soon 🔜)\n\n### Server\n\n- **[cURL Scripts](./server/curl/)**\n- **[Node.js](./server/node/)**\n- **[Python](./server/python/)**\n- **[Java](./server/java/)**\n- **[Kotlin](./server/kotlin/)**\n- **[Go](./server/go/)**\n- **[C#](./server/csharp/)**\n- **[PHP](./server/php/)**\n- **[Ruby](./server/ruby/)**\n\n## Documentation\n\nFor complete documentation, see:\n- [Courier API Documentation](https://www.courier.com/docs)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrycourier%2Fcourier-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrycourier%2Fcourier-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrycourier%2Fcourier-samples/lists"}