happening's People
happening's Issues
Send correct eventsub types from frontend
Why add another translation when they can be specified in the frontend?
For example SUB => channel.sub
Add notifications where appropriate
Embrace typescript (get rid of all anys, add types as much as possible)
Backend CI
- Build
- Linter
Create separate file for dynamodb definition
Display profile picture in user card
Figure out how to handle logs
Logs don't get deleted, might have to add them to terraform
Build token lambda/service
Needs to run regularly to check for token validity and refresh it
How can it run in a set interval?
Where does the token get saved to?
Required for #8
https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/RunLambdaSchedule.html
Authentication
- Check if happening-auth cookie is set
- If not, send to twitch auth page, get token, send token to api to generate happening-auth
- happening-auth is encrypted twitch token
- when opening a page, request permissions for happening-auth
- backend decrypts happening-auth and gets permissions for associated user_id
- frontend handles if usbpage should be accessible by user_id
- happening-auth should be required for api calls
Register eventsub at twitch on request
Save subscription in database
Requires id returned from request in #8
Which database service can be used?
api domain name is a catchall (?)
Any path starting with the domain name works.
Examples:
https://happening.fdm.com.de
https://happening.fdm.com.de/api
https://happening.fdm.com.de/api/test123
https://happening.fdm.com.de/test123
Add redis to docker compose
Automatically refresh subscription list
Eventsub list should be refreshed on delete/create
Remove automatic refresh
Hits API way too hard
Deploy frontend
Fix 403
Using custom domain returns 403 Forbidden.
Could be both cloudflare and aws side.
Output domain by terraform works directly.
That domain is different from the domain set in the CNAME record.
Use formatter (prettier?) for frontend
Use postgres enums
For example for subscription types
Deployment CI
Only prod.
Secure api requests
Needed?
Only specify top level domain in Rocket.toml
Implement twitch oauth flow
https://github.com/twitch-rs/twitch_oauth2/blob/main/examples/app_access_token.rs
Token should be generated from secret on startup.
Establish background job to refresh using refresh token.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.