Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (11 months ago)
- Default Branch: main
- Last Pushed: 2024-04-03T15:21:09.000Z (9 months ago)
- Last Synced: 2024-04-03T16:35:47.028Z (9 months ago)
- Topics: nextjs, postgresql, prisma, react, tailwindcss
- Language: TypeScript
- Homepage:
- Size: 1.46 MB
- Stars: 1
- 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.