Skip to content

Commit e27144e

Browse files
committed
Temporally files
1 parent 8c1910e commit e27144e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+4937
-377
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
target/
2-
node_modules/
2+
node_modules/
3+
backups/
4+
cdn/
5+
.vscode/
6+
app/

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
1-
# video-delivery
2-
A extremely minimalist video delivery platform made with Rust and React
1+
# Rain
2+
An extremely minimalist video delivery platform made with React and Rust.
3+
4+
## Technologies
5+
### Frontend
6+
- **Language:** [TypeScript](https://www.typescriptlang.org/)
7+
- **Libs:** [React](https://reactjs.org/), [Vite](https://vitejs.dev/)
8+
- **Style:** [Tailwind](https://tailwindcss.com/)
9+
- **HTTP:** [Axios](https://axios-http.com/)
10+
11+
### Backend
12+
- **Language:** [Rust](https://www.rust-lang.org/es)
13+
- **Libs:** [Axum](https://github.com/tokio-rs/axum), [Tokio](https://tokio.rs/), [Tower HTTP](https://github.com/tower-rs/tower-http), [UUID](https://github.com/uuid-rs/uuid), [Serde](https://serde.rs/)
14+
- **Protocols:** [HLS](https://www.rfc-editor.org/rfc/rfc8216), [HTTP 1.1](https://www.rfc-editor.org/rfc/rfc2616)
15+
- **Video:** [FFMPEG](https://ffmpeg.org/), [FFMPEG Thumbnailer](https://github.com/dirkvdb/ffmpegthumbnailer)
16+
17+
## Server routes
18+
* `/` - `GET` Web
19+
* `/cdn` - Video delivery (HLS)
20+
* `/` - `POST` upload multipart
21+
* `/:uuid/video.m3u8` - `GET` M3U8 file
22+
* `/:uuid/video#.ts` - `GET` Video segments
23+
* `/data` - Video data (JSON)
24+
* `/` - `GET` All UUID videos
25+
* `/:uuid` - `GET` Video data
26+
* `/thumbnail` - Get thumbnails (PNG)
27+
* `/lg/:uuid` - `GET` Large
28+
* `/sm/:uuid` - `GET` Small
29+

client/.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
INLINE_RUNTIME_CHUNK=false
2+
GENERATE_SOURCEMAP=false
3+
SKIP_PREFLIGHT_CHECK=true

client/.gitignore

Lines changed: 0 additions & 24 deletions
This file was deleted.

client/config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"server": "http://localhost:3000"
3+
}

client/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React + TS</title>
8-
</head>
9-
<body>
10-
<div id="root"></div>
11-
<script type="module" src="/src/main.tsx"></script>
12-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Rain</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script crossorigin type="module" src="/src/main.tsx"></script>
12+
</body>
1313
</html>

client/package.json

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
{
2-
"name": "client",
3-
"private": true,
4-
"version": "0.0.0",
5-
"type": "module",
6-
"scripts": {
7-
"dev": "vite",
8-
"build": "tsc && vite build",
9-
"preview": "vite preview"
10-
},
11-
"dependencies": {
12-
"react": "^18.2.0",
13-
"react-dom": "^18.2.0"
14-
},
15-
"devDependencies": {
16-
"@types/react": "^18.0.24",
17-
"@types/react-dom": "^18.0.8",
18-
"@vitejs/plugin-react": "^2.2.0",
19-
"typescript": "^4.6.4",
20-
"vite": "^3.2.3"
21-
}
22-
}
2+
"name": "client",
3+
"private": true,
4+
"version": "1.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build && mv ./dist ../app",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@fluentui/react-icons": "^2.0.190",
13+
"@types/node": "^18.11.11",
14+
"axios": "^1.2.1",
15+
"dotenv": "^16.0.3",
16+
"react": "^18.2.0",
17+
"react-dom": "^18.2.0",
18+
"react-router-dom": "^6.4.5"
19+
},
20+
"devDependencies": {
21+
"@types/react": "^18.0.24",
22+
"@types/react-dom": "^18.0.8",
23+
"@vitejs/plugin-react": "^2.2.0",
24+
"autoprefixer": "^10.4.13",
25+
"postcss": "^8.4.19",
26+
"tailwindcss": "^3.2.4",
27+
"typescript": "^4.6.4",
28+
"vite": "^3.2.3"
29+
}
30+
}

client/postcss.config.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

client/public/vite.svg

Lines changed: 12 additions & 1 deletion
Loading

client/src/App.css

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)