Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 1c53734

Browse files
committed
Refactor project structure and update dependencies
- Added a comprehensive .gitignore file to exclude unnecessary files and directories. - Removed Dockerfile, Go module files (go.mod, go.sum), and main application code (main.go) as part of a transition away from the Go backend. - Updated the dependabot configuration to reflect the change from Go modules to npm for dependency management. - Deleted GitHub Actions workflow for Docker build as it is no longer applicable. These changes streamline the project setup and prepare for a new architecture.
1 parent a45fb10 commit 1c53734

22 files changed

Lines changed: 844 additions & 764 deletions

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
updates:
3-
- package-ecosystem: gomod
3+
- package-ecosystem: npm
44
directory: "/"
55
schedule:
66
interval: daily

.github/workflows/build.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.gitignore

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,29 @@
1-
/.idea
1+
# Dependencies
2+
node_modules/
3+
package-lock.json
4+
yarn.lock
5+
6+
# Cloudflare Workers
7+
dist/
8+
worker/
9+
.wrangler/
10+
11+
# TypeScript
12+
*.tsbuildinfo
13+
14+
# Editor directories and files
15+
.idea/
16+
.vscode/
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln
21+
*.sw?
22+
23+
# Environment variables
24+
.env
25+
.dev.vars
26+
27+
# System Files
28+
.DS_Store
29+
Thumbs.db

Dockerfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Friends of Shopware API - Cloudflare Workers
2+
3+
This project is a port of the Friends of Shopware API to Cloudflare Workers, using TypeScript and Hono as the web server framework.
4+
5+
## Features
6+
7+
- GitHub repositories listing
8+
- Contributors listing
9+
- Repository issues listing
10+
- Packagist packages information
11+
- GitHub webhook for issue updates
12+
- Data cached in Cloudflare KV storage
13+
14+
## Setup
15+
16+
1. Install dependencies:
17+
18+
```bash
19+
npm install
20+
```
21+
22+
2. Configure your KV namespace:
23+
24+
Create a KV namespace in your Cloudflare Workers dashboard and update the `wrangler.toml` file with your KV namespace IDs.
25+
26+
```toml
27+
kv_namespaces = [
28+
{ binding = "STORAGE", id = "your-kv-namespace-id", preview_id = "your-preview-kv-namespace-id" }
29+
]
30+
```
31+
32+
3. Set your GitHub token:
33+
34+
Create a GitHub personal access token with the necessary permissions to access repositories and update the `wrangler.toml` file:
35+
36+
```toml
37+
[vars]
38+
GITHUB_TOKEN = "your-github-token"
39+
ORG_NAME = "friendsofshopware"
40+
```
41+
42+
## Development
43+
44+
Run the development server:
45+
46+
```bash
47+
npm run dev
48+
```
49+
50+
## Deployment
51+
52+
Deploy to Cloudflare Workers:
53+
54+
```bash
55+
npm run deploy
56+
```
57+
58+
## API Endpoints
59+
60+
- `GET /v2/github/repositories` - List all repositories
61+
- `GET /v2/github/contributors` - List all contributors
62+
- `GET /v2/github/issues/:plugin` - List issues for a specific plugin
63+
- `GET /v2/packagist/packages` - List all packages
64+
- `POST /webhook/issue` - GitHub webhook for issue updates
65+
66+
## Scheduled Tasks
67+
68+
- Hourly: Refresh GitHub stats and Packagist stats
69+
- Every 5 minutes: Refresh repository issues
70+
71+
## License
72+
73+
MIT

go.mod

Lines changed: 0 additions & 12 deletions
This file was deleted.

go.sum

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)