70 Commits

Author SHA1 Message Date
austinkelsay
7b9aff87eb Add auth log 2024-10-04 14:59:31 -05:00
austinkelsay
cafa83a083 Log dbUser 2024-10-04 14:58:29 -05:00
austinkelsay
b0204d3307 update api key logic 2024-10-02 17:31:57 -05:00
austinkelsay
e89c5cfcd3 Protect the rest of the endpoints 2024-10-02 17:27:38 -05:00
austinkelsay
a0e124d9ef Secure user endponts with session, dont require calling endpoints from nextauth, call models instead so we can completely secure the endpoints 2024-10-02 16:58:36 -05:00
austinkelsay
107f6b4499 Check session for decrypt, check session and admin for encrypt 2024-09-30 20:41:52 -05:00
austinkelsay
7953bb641f Remove getAllUsers endpoint, add checks to image proxy endpoint, setup local in memory cache for rate limitng in dev, added NODE_ENV variable 2024-09-30 20:35:07 -05:00
austinkelsay
e59bee30f7 Return back to basic rate limit middleware, setup server session to block user route to test 2024-09-30 19:41:26 -05:00
austinkelsay
f56c54cebb Fix path 2024-09-30 19:34:51 -05:00
austinkelsay
156a1c906f Try logging server session 2024-09-30 19:32:54 -05:00
austinkelsay
5c15b93c48 Log hostname 2024-09-30 19:00:33 -05:00
austinkelsay
b8a7057be1 Fix lnaddress issue on usercreation 2024-09-30 15:29:52 -05:00
austinkelsay
5fd17eaf30 Update getUserByEmail model 2024-09-30 15:06:11 -05:00
austinkelsay
0a40b7c04c Preparing for deployment 2024-09-30 14:50:10 -05:00
austinkelsay
28f98dee14 Lightning address works from db for subscribed users and from the app config 2024-09-26 17:44:24 -05:00
austinkelsay
d13ddfcaa9 custom nip05 and lightning address creation, updates, and deletes fully working. Still need to add to lnurlp endpoints 2024-09-26 14:50:14 -05:00
austinkelsay
8d2ed9a967 Feed fixes, also fixed stackernews graphql query to fetch most recent 21 items 2024-09-25 17:19:02 -05:00
austinkelsay
24afd44409 Security updates to image proxy 2024-09-25 11:22:45 -05:00
austinkelsay
215a00e593 fix course and lesson tracking for paid courses, add usercourses and userlessons into session 2024-09-22 17:08:26 -05:00
austinkelsay
96a6a29936 Created userCourse model, added endpoints, added basic useTrackcourse hook 2024-09-21 16:50:59 -05:00
austinkelsay
4585ed263c Implemented document progress tracking based on read time, got video progress tracking working with Youtube embeds 2024-09-19 17:33:22 -05:00
austinkelsay
f7bbf93f95 video lesson tracking for courses, new userlesson table, also github experiment 2024-09-19 15:38:36 -05:00
austinkelsay
2e25beea71 fix zaps on lightning address 2024-09-18 14:59:04 -05:00
austinkelsay
8f2935a7dc Small styling fixes, also tested auth with new appConfig with multiple author pubkeys, also added i tag to videos 2024-09-17 18:06:03 -05:00
austinkelsay
09e0ba026a Add encrypt and decrypt endpoint and replaced encryption/decryption in app to use these endpoints 2024-09-17 16:00:00 -05:00
austinkelsay
b800ab3b88 Good stuff 2024-09-17 13:55:51 -05:00
austinkelsay
ff3e907677 Add nip05 and lnaddress endpoints 2024-09-16 17:13:23 -05:00
austinkelsay
e825803077 New templates 2024-09-12 12:07:38 -05:00
austinkelsay
c7f98fcf5d Added glow on profile, added isAdmin hook and blocked components / pages that nly admins should access 2024-09-11 16:48:56 -05:00
austinkelsay
14b62b3f4a Checking for admin, subscribed, or purchased videoId in get video endpoint 2024-09-09 17:35:00 -05:00
austinkelsay
185c96bf9b paid video flow with digital ocean cdn is working, just need to scope it by purchase / subscription now 2024-09-09 15:44:18 -05:00
austinkelsay
808a22dc09 Signed authenticated video urls work through digital ocean, just a simple example down for now 2024-09-08 18:41:51 -05:00
austinkelsay
9528010829 Email login is working 2024-09-06 12:32:23 -05:00
austinkelsay
e2a202c697 stackernews feed is working 2024-09-02 16:24:18 -05:00
austinkelsay
d77fdaac66 sn devs items showing 2024-09-02 13:50:07 -05:00
austinkelsay
f53f23b939 Imrpovements to discord message pulling 2024-09-02 10:51:46 -05:00
austinkelsay
1ee4dfe84e styling improvements to sidebar and the pages it affects 2024-09-02 09:49:17 -05:00
austinkelsay
480e955a92 Basic implementation of discord feed 2024-09-01 20:29:33 -05:00
austinkelsay
b9c2d04ed4 Add payment to cron endpoint for recurring subscribers, set cron to nce a day, set expiration to 31 days 2024-09-01 13:36:53 -05:00
austinkelsay
e69d974ad7 Added basic cron job, endpoint, and vercel setup just wrong intervals right now, also added admin and subscriptionExpiredAt into Role schema so I can show user a special message after their subscription expired 2024-09-01 12:40:25 -05:00
austinkelsay
c6c6fc4fbd implementation of pay as you go and recurring subscriptions on the frontend is fully working, just need the cron endpoint now. 2024-08-31 18:18:21 -05:00
austinkelsay
c8870bc1ff pay as you go subscriptions working and recurring subscriptions flow is halfway done, had to change schema. 2024-08-30 19:37:13 -05:00
austinkelsay
0ab37a3f79 got embedded workshop and resouce forms to work in course form 2024-08-25 14:58:25 -05:00
austinkelsay
280c0e5763 improve course display, accordians, and fixed tag usage for plebdevs resource and workshop 2024-08-25 13:41:32 -05:00
austinkelsay
128234c7ad Huge update with lessons and draftLessons and refactoring course forms, models, and api endpoints to account for these changes 2024-08-23 20:21:29 -05:00
austinkelsay
ff9efe6fc9 Course publishing with partial drafts barely works 2024-08-18 17:50:54 -05:00
austinkelsay
d1c121e6e8 Allow both drafts and published resources to make it into course draft, seperated selectedContentItem in course form into its own component 2024-08-18 14:45:51 -05:00
austinkelsay
cee1679a8b Paid course creation, got started on rendering paid course details 2024-08-16 18:00:46 -05:00
austinkelsay
b8b10907bb Improved draftCourses schema and relations, can publish draft course in new schema, can edit draft course and lessons 2024-08-16 11:40:50 -05:00
austinkelsay
14ead7b35c Progress on course edit flow, need to reconcile courseId with draftcourses relation 2024-08-14 18:09:08 -05:00