This project uses Next.js with Supabase for backend services. All application code lives under the src/
directory.
- Install dependencies:
npm install
- Create a
.env.local
file at the project root and provide your Supabase credentials:
NEXT_PUBLIC_SUPABASE_URL=<your-supabase-url>
NEXT_PUBLIC_SUPABASE_ANON_KEY=<your-anon-key>
- Start the development server:
npm run dev
Open http://localhost:3000
in your browser to see the app.
npm run dev
– start the Next.js dev servernpm run build
– build the application for productionnpm run lint
– run ESLint
src/pages
– application pagessrc/components
– reusable React componentssrc/lib
– shared utilities such as the Supabase clientsrc/lib/recommend.ts
– suggestion algorithm combining user theme preferences and video ratings
The application exposes a public API under /api/v1
. Currently the following endpoint is available:
GET /api/v1/videos
– list all uploaded videos
Videos can have several tags. When uploading, type /
in the tag field to get suggestions based on existing tags.