This is Ascella but fully rewritten to work with the Cloudflare ecosystem, using workers, D1, R2 & KV.
Here is a simple flow chart:
graph TD;
A[Website]-->|Embed info & stats|B;
C[Embed Service]-->|Embed info|B;
C-->|Redirects|A;
B{backend}-->|Storing images|Z(R2);
B-->|Storing All data|X(D1);
B-->|Checking status|V(KV);
B-->|Oauth2 and Bot|E;
E(Discord Api)-->|Interactions|B;
Create a env.json
{
"default": {
"CLIENT_ID": "",
"CLIENT_PUB": "",
"CLIENT_SECRET": "",
"CLIENT_TOKEN": "",
"SENTRY_DSN": "",
"DEBUG": false
},
"development": {
"APP_URL": "http://127.0.0.1:8787",
"DEBUG": true
},
"staging": {
"APP_URL": "https://staging.ascella.host"
},
"production": {
"APP_URL": "https://api.ascella.host"
}
}