Skip to content

Commit a0627a8

Browse files
committed
feat: initialize ArcRaiders Data API with GitHub integration
- Added package.json for project dependencies and scripts. - Implemented main API logic in src/index.js to handle data requests. - Configured vitest for testing with Cloudflare Workers. - Created wrangler.jsonc for Cloudflare Workers configuration, including routing and observability settings.
1 parent 6fcd198 commit a0627a8

10 files changed

Lines changed: 4682 additions & 2 deletions

File tree

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = tab
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.yml]
12+
indent_style = space

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy to Cloudflare Workers
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
name: Deploy
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '20'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Deploy to Cloudflare Workers
24+
uses: cloudflare/wrangler-action@v3
25+
with:
26+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}

.gitignore

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
.vscode/*
2+
3+
# Logs
4+
5+
logs
6+
_.log
7+
npm-debug.log_
8+
yarn-debug.log*
9+
yarn-error.log*
10+
lerna-debug.log*
11+
.pnpm-debug.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
15+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
16+
17+
# Runtime data
18+
19+
pids
20+
_.pid
21+
_.seed
22+
\*.pid.lock
23+
24+
# Directory for instrumented libs generated by jscoverage/JSCover
25+
26+
lib-cov
27+
28+
# Coverage directory used by tools like istanbul
29+
30+
coverage
31+
\*.lcov
32+
33+
# nyc test coverage
34+
35+
.nyc_output
36+
37+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
38+
39+
.grunt
40+
41+
# Bower dependency directory (https://bower.io/)
42+
43+
bower_components
44+
45+
# node-waf configuration
46+
47+
.lock-wscript
48+
49+
# Compiled binary addons (https://nodejs.org/api/addons.html)
50+
51+
build/Release
52+
53+
# Dependency directories
54+
55+
node_modules/
56+
jspm_packages/
57+
58+
# Snowpack dependency directory (https://snowpack.dev/)
59+
60+
web_modules/
61+
62+
# TypeScript cache
63+
64+
\*.tsbuildinfo
65+
66+
# Optional npm cache directory
67+
68+
.npm
69+
70+
# Optional eslint cache
71+
72+
.eslintcache
73+
74+
# Optional stylelint cache
75+
76+
.stylelintcache
77+
78+
# Microbundle cache
79+
80+
.rpt2_cache/
81+
.rts2_cache_cjs/
82+
.rts2_cache_es/
83+
.rts2_cache_umd/
84+
85+
# Optional REPL history
86+
87+
.node_repl_history
88+
89+
# Output of 'npm pack'
90+
91+
\*.tgz
92+
93+
# Yarn Integrity file
94+
95+
.yarn-integrity
96+
97+
# parcel-bundler cache (https://parceljs.org/)
98+
99+
.cache
100+
.parcel-cache
101+
102+
# Next.js build output
103+
104+
.next
105+
out
106+
107+
# Nuxt.js build / generate output
108+
109+
.nuxt
110+
dist
111+
112+
# Gatsby files
113+
114+
.cache/
115+
116+
# Comment in the public line in if your project uses Gatsby and not Next.js
117+
118+
# https://nextjs.org/blog/next-9-1#public-directory-support
119+
120+
# public
121+
122+
# vuepress build output
123+
124+
.vuepress/dist
125+
126+
# vuepress v2.x temp and cache directory
127+
128+
.temp
129+
.cache
130+
131+
# Docusaurus cache and generated files
132+
133+
.docusaurus
134+
135+
# Serverless directories
136+
137+
.serverless/
138+
139+
# FuseBox cache
140+
141+
.fusebox/
142+
143+
# DynamoDB Local files
144+
145+
.dynamodb/
146+
147+
# TernJS port file
148+
149+
.tern-port
150+
151+
# Stores VSCode versions used for testing VSCode extensions
152+
153+
.vscode-test
154+
155+
# yarn v2
156+
157+
.yarn/cache
158+
.yarn/unplugged
159+
.yarn/build-state.yml
160+
.yarn/install-state.gz
161+
.pnp.\*
162+
163+
# wrangler project
164+
165+
.dev.vars*
166+
!.dev.vars.example
167+
.env*
168+
!.env.example
169+
.wrangler/

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 140,
3+
"singleQuote": true,
4+
"semi": true,
5+
"useTabs": true
6+
}

0 commit comments

Comments
 (0)