https://github.com/wangyj641/video-hub
Videos collection: search video, upload video, view video detail, play video
https://github.com/wangyj641/video-hub
nextjs postgresql prisma react tailwindcss
Last synced: 3 months ago
JSON representation
Videos collection: search video, upload video, view video detail, play video
- Host: GitHub
- URL: https://github.com/wangyj641/video-hub
- Owner: wangyj641
- Created: 2024-02-28T00:25:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T15:21:09.000Z (about 2 years ago)
- Last Synced: 2025-10-04T08:38:04.485Z (9 months ago)
- Topics: nextjs, postgresql, prisma, react, tailwindcss
- Language: TypeScript
- Homepage:
- Size: 1.46 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# video-hub
Video collection
Developed with Next.js, react, TailwindCSS, Prisma, postgreSQL, Docker.
### Key Features:
- Login/Logout/Register a new user
- Credential authentication with NextAuth
- Github authentication integration
- Manage video list
- Play a video
- TailwindCSS UI design
### Getting Started
##### Start DB service in Docker
```shell
docker-compose up -d
```
##### Setup .env file
```js
DATABASE_URL="postgresql://myuser:mypassword@localhost:5432/median-db"
GITHUB_ID='81be641fa35f0b0e7044'
GITHUB_SECRET='467f95c35cbcb795f8086a5ebb78a2de74d40dcb'
EMAIL_SERVER_PASSWORD=MWRSQATPFJDEHWJJ
EMAIL_SERVER_HOST=smtp.126.com
EMAIL_SERVER_PORT=25
EMAIL_FROM=Video Hub Admin
```
##### Setup DB
```shell
npx prisma migrate dev --name "init"
```
##### Generate test data
```shell
npx ts-node ./prisma/seed.ts
```
##### Start the app
```shell
npm run dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.