├── .air.toml ├── .dockerignore ├── .env.docker ├── .env.local ├── .gitignore ├── .prettierrc.json ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── client ├── index.html ├── list.html ├── login.html ├── register.html ├── upload.html └── watch.html ├── config └── config.go ├── controllers ├── user.go └── video.go ├── database ├── database.go ├── db.sql └── migrations │ ├── 000001_create_users.down.sql │ ├── 000001_create_users.up.sql │ ├── 000002_create_videos.down.sql │ ├── 000002_create_videos.up.sql │ ├── 000003_add_thumbnail_column.down.sql │ ├── 000003_add_thumbnail_column.up.sql │ ├── 000004_alter_videos_upload_status_check.down.sql │ ├── 000004_alter_videos_upload_status_check.up.sql │ ├── 000005_refactor_upload_status_to_status.down.sql │ └── 000005_refactor_upload_status_to_status.up.sql ├── docker-compose.yml ├── documentation ├── KYU │ └── kyu-form-header.png ├── Understanding_H_264.pdf ├── auth.md ├── server-sent-events.md ├── static │ ├── Winner-Medal-Monthly.svg │ ├── Winner-Medal-Weekly.svg │ └── dekho-architecture.excalidraw.png ├── video-streaming-project-stuff │ ├── .obsidian │ │ ├── app.json │ │ ├── appearance.json │ │ ├── core-plugins.json │ │ ├── hotkeys.json │ │ └── workspace │ ├── RSA move later.md │ ├── client.md │ ├── ideas discussed.md │ ├── links.md │ ├── project idea.md │ ├── server.md │ ├── things to be done.md │ └── user flow.md └── workflows │ ├── diagrams.excalidraw │ ├── diagrams.excalidraw.png │ ├── hls_explaination.png │ ├── serve-video-requests.png │ ├── sse-sequence-diagrams.excalidraw │ └── video-upload-and-preprocessing.png ├── go.mod ├── go.sum ├── main.go ├── middleware └── middleware.go ├── repositories └── user.go ├── scripts ├── start_dev.sh └── start_prod.sh ├── services ├── smtp.go └── user.go ├── shared ├── logger │ └── logger.go └── sse.go ├── sse └── sse.go ├── static ├── index.js ├── list.js ├── login.js ├── logo │ ├── android-chrome-192x192.png │ ├── android-chrome-512x512.png │ ├── apple-touch-icon.png │ ├── dekho_logo.svg │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── favicon.ico │ └── logo.svg ├── register.js ├── script.js ├── sse-client.js ├── style.css ├── toast.js ├── upload.js ├── videoList │ ├── videoContainer.js │ └── videoItem.js └── watch.js ├── tools.go ├── types └── types.go └── utils └── utils.go /.air.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/.air.toml -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | -------------------------------------------------------------------------------- /.env.docker: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/.env.docker -------------------------------------------------------------------------------- /.env.local: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/.env.local -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/README.md -------------------------------------------------------------------------------- /client/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/client/index.html -------------------------------------------------------------------------------- /client/list.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/client/list.html -------------------------------------------------------------------------------- /client/login.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/client/login.html -------------------------------------------------------------------------------- /client/register.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/client/register.html -------------------------------------------------------------------------------- /client/upload.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/client/upload.html -------------------------------------------------------------------------------- /client/watch.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/client/watch.html -------------------------------------------------------------------------------- /config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/config/config.go -------------------------------------------------------------------------------- /controllers/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/controllers/user.go -------------------------------------------------------------------------------- /controllers/video.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/controllers/video.go -------------------------------------------------------------------------------- /database/database.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/database/database.go -------------------------------------------------------------------------------- /database/db.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/database/db.sql -------------------------------------------------------------------------------- /database/migrations/000001_create_users.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS users; 2 | -------------------------------------------------------------------------------- /database/migrations/000001_create_users.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/database/migrations/000001_create_users.up.sql -------------------------------------------------------------------------------- /database/migrations/000002_create_videos.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS videos; 2 | -------------------------------------------------------------------------------- /database/migrations/000002_create_videos.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/database/migrations/000002_create_videos.up.sql -------------------------------------------------------------------------------- /database/migrations/000003_add_thumbnail_column.down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE videos 2 | DROP COLUMN IF EXISTS thumbnail; 3 | -------------------------------------------------------------------------------- /database/migrations/000003_add_thumbnail_column.up.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE videos 2 | ADD COLUMN IF NOT EXISTS thumbnail TEXT; 3 | -------------------------------------------------------------------------------- /database/migrations/000004_alter_videos_upload_status_check.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/database/migrations/000004_alter_videos_upload_status_check.down.sql -------------------------------------------------------------------------------- /database/migrations/000004_alter_videos_upload_status_check.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/database/migrations/000004_alter_videos_upload_status_check.up.sql -------------------------------------------------------------------------------- /database/migrations/000005_refactor_upload_status_to_status.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/database/migrations/000005_refactor_upload_status_to_status.down.sql -------------------------------------------------------------------------------- /database/migrations/000005_refactor_upload_status_to_status.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/database/migrations/000005_refactor_upload_status_to_status.up.sql -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /documentation/KYU/kyu-form-header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/KYU/kyu-form-header.png -------------------------------------------------------------------------------- /documentation/Understanding_H_264.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/Understanding_H_264.pdf -------------------------------------------------------------------------------- /documentation/auth.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/auth.md -------------------------------------------------------------------------------- /documentation/server-sent-events.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/server-sent-events.md -------------------------------------------------------------------------------- /documentation/static/Winner-Medal-Monthly.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/static/Winner-Medal-Monthly.svg -------------------------------------------------------------------------------- /documentation/static/Winner-Medal-Weekly.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/static/Winner-Medal-Weekly.svg -------------------------------------------------------------------------------- /documentation/static/dekho-architecture.excalidraw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/static/dekho-architecture.excalidraw.png -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/.obsidian/app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/video-streaming-project-stuff/.obsidian/app.json -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/.obsidian/appearance.json: -------------------------------------------------------------------------------- 1 | { 2 | "baseFontSize": 17 3 | } -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/.obsidian/core-plugins.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/video-streaming-project-stuff/.obsidian/core-plugins.json -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/.obsidian/hotkeys.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/.obsidian/workspace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/video-streaming-project-stuff/.obsidian/workspace -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/RSA move later.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/video-streaming-project-stuff/RSA move later.md -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/client.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/video-streaming-project-stuff/client.md -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/ideas discussed.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/video-streaming-project-stuff/ideas discussed.md -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/links.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/video-streaming-project-stuff/links.md -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/project idea.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/video-streaming-project-stuff/project idea.md -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/server.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/things to be done.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/video-streaming-project-stuff/things to be done.md -------------------------------------------------------------------------------- /documentation/video-streaming-project-stuff/user flow.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/video-streaming-project-stuff/user flow.md -------------------------------------------------------------------------------- /documentation/workflows/diagrams.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/workflows/diagrams.excalidraw -------------------------------------------------------------------------------- /documentation/workflows/diagrams.excalidraw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/workflows/diagrams.excalidraw.png -------------------------------------------------------------------------------- /documentation/workflows/hls_explaination.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/workflows/hls_explaination.png -------------------------------------------------------------------------------- /documentation/workflows/serve-video-requests.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/workflows/serve-video-requests.png -------------------------------------------------------------------------------- /documentation/workflows/sse-sequence-diagrams.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/workflows/sse-sequence-diagrams.excalidraw -------------------------------------------------------------------------------- /documentation/workflows/video-upload-and-preprocessing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/documentation/workflows/video-upload-and-preprocessing.png -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/go.sum -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/main.go -------------------------------------------------------------------------------- /middleware/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/middleware/middleware.go -------------------------------------------------------------------------------- /repositories/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/repositories/user.go -------------------------------------------------------------------------------- /scripts/start_dev.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/scripts/start_dev.sh -------------------------------------------------------------------------------- /scripts/start_prod.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/scripts/start_prod.sh -------------------------------------------------------------------------------- /services/smtp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/services/smtp.go -------------------------------------------------------------------------------- /services/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/services/user.go -------------------------------------------------------------------------------- /shared/logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/shared/logger/logger.go -------------------------------------------------------------------------------- /shared/sse.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/shared/sse.go -------------------------------------------------------------------------------- /sse/sse.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/sse/sse.go -------------------------------------------------------------------------------- /static/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/index.js -------------------------------------------------------------------------------- /static/list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/list.js -------------------------------------------------------------------------------- /static/login.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/login.js -------------------------------------------------------------------------------- /static/logo/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/logo/android-chrome-192x192.png -------------------------------------------------------------------------------- /static/logo/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/logo/android-chrome-512x512.png -------------------------------------------------------------------------------- /static/logo/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/logo/apple-touch-icon.png -------------------------------------------------------------------------------- /static/logo/dekho_logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/logo/dekho_logo.svg -------------------------------------------------------------------------------- /static/logo/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/logo/favicon-16x16.png -------------------------------------------------------------------------------- /static/logo/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/logo/favicon-32x32.png -------------------------------------------------------------------------------- /static/logo/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/logo/favicon.ico -------------------------------------------------------------------------------- /static/logo/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/logo/logo.svg -------------------------------------------------------------------------------- /static/register.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/register.js -------------------------------------------------------------------------------- /static/script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/script.js -------------------------------------------------------------------------------- /static/sse-client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/sse-client.js -------------------------------------------------------------------------------- /static/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/style.css -------------------------------------------------------------------------------- /static/toast.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/toast.js -------------------------------------------------------------------------------- /static/upload.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/upload.js -------------------------------------------------------------------------------- /static/videoList/videoContainer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/videoList/videoContainer.js -------------------------------------------------------------------------------- /static/videoList/videoItem.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/videoList/videoItem.js -------------------------------------------------------------------------------- /static/watch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/static/watch.js -------------------------------------------------------------------------------- /tools.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/tools.go -------------------------------------------------------------------------------- /types/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/types/types.go -------------------------------------------------------------------------------- /utils/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chirag-And-Dheeraj/Dekho/HEAD/utils/utils.go --------------------------------------------------------------------------------