-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
104 changed files
with
3,361 additions
and
3,674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
enable-pre-post-scripts=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name": "backend", | ||
"version": "1.0.0", | ||
"description": "learnbyvideo.dev backend crawler", | ||
"type": "module", | ||
"main": "index.js", | ||
"scripts": { | ||
"deploy": "ssh node 'cd learnbyvideo.dev && npm run update:backend'", | ||
"update": "git checkout backend && git reset --hard && git pull && npm install && npx prisma generate", | ||
"find:videos": "node src/findVideos.js $1", | ||
"find:videos:prod": "NODE_ENV=production node src/findVideos.js $1", | ||
"find:videos:recheck": "node src/findVideos.js --find-new-videos false", | ||
"find:videos:10": "node src/findVideos.js --limit 10", | ||
"find:videos:prod:10": "NODE_ENV=production node src/findVideos.js --limit 10", | ||
"find:videos:recheck:prod": "NODE_ENV=production node src/findVideos.js --find-new-videos false", | ||
"update:videos": "node src/updateVideos.js $1", | ||
"update:videos:prod": "NODE_ENV=production node src/updateVideos.js $1", | ||
"update:channels:prod": "NODE_ENV=production node src/updateChannels.js $1", | ||
"update:videos:recent": "node src/updateVideos.js -m 2", | ||
"update:videos:recent:prod": "NODE_ENV=production node src/updateVideos.js -m 2", | ||
"crawl:channels:prod": "NODE_ENV=production node src/crawlChannels.js $1", | ||
"update:channels": "node src/updateChannels.js $1", | ||
"crawl:channels": "node src/crawlChannels.js $1", | ||
"add:channels": "node src/addChannel.js $1", | ||
"quota": "node src/quota.js", | ||
"quota:verbose": "node src/quota.js --verbose" | ||
}, | ||
"dependencies": { | ||
"@googleapis/youtube": "^13.0.0", | ||
"config": "workspace:*", | ||
"database": "workspace:*", | ||
"date-fns": "^2.30.0", | ||
"date-fns-tz": "^2.0.0", | ||
"delay": "^6.0.0", | ||
"dotenv-mono": "^1.3.13", | ||
"lodash-es": "^4.17.21", | ||
"minimost": "^1.2.0", | ||
"node-fetch": "^3.3.2", | ||
"picocolors": "^1.0.0", | ||
"pluralize": "^8.0.0", | ||
"pretty-ms": "^8.0.0", | ||
"rss-parser": "^3.13.0", | ||
"sparkline": "^0.2.0" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"autoprefixer": "^10.4.16", | ||
"postcss": "^8.4.32", | ||
"tailwindcss": "^3.4.0" | ||
} | ||
} |
13 changes: 6 additions & 7 deletions
13
backend/addChannel.mjs → apps/backend/src/addChannel.js
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
backend/crawlChannels.mjs → apps/backend/src/crawlChannels.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
backend/updateChannels.mjs → apps/backend/src/updateChannels.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 8 additions & 9 deletions
17
backend/updateVideos.mjs → apps/backend/src/updateVideos.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"compilerOptions": { | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "site", | ||
"version": "1.0.0", | ||
"description": "learnbyvideo.dev main site", | ||
"main": "index.js", | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"build:prod": "NODE_ENV=production next build", | ||
"start": "next start" | ||
}, | ||
"dependencies": { | ||
"@fontsource/inter": "^5.0.16", | ||
"@fontsource/lato": "^5.0.18", | ||
"@fontsource/roboto": "^5.0.8", | ||
"@googleapis/youtube": "^13.0.0", | ||
"@next/bundle-analyzer": "^14.0.4", | ||
"@sentry/nextjs": "^7.91.0", | ||
"@tanstack/react-query": "^5.15.0", | ||
"@tanstack/react-query-devtools": "^5.15.0", | ||
"@tanstack/react-query-next-experimental": "^5.15.0", | ||
"@vercel/analytics": "^1.1.1", | ||
"config": "workspace:*", | ||
"database": "workspace:*", | ||
"lodash-es": "^4.17.21", | ||
"next": "14.0.4", | ||
"pluralize": "^8.0.0", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"react-infinite-scroller": "^1.2.6", | ||
"react-spinners": "^0.13.8", | ||
"react-timeago": "^7.2.0", | ||
"server-only": "^0.0.1" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@prisma/nextjs-monorepo-workaround-plugin": "^5.7.1" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.