Skip to content
blackdragoon26Public

About

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

MagicStreamLogo Slix

Slix is a full-stack movie streaming and review platform. The product hook is the sentiment analysis flow: admins write curator reviews, Azure OpenAI classifies the review tone, and the app stores that ranking so viewers can understand each title at a glance.

Live app:

What It Does

  • Browse and stream a movie library.
  • Register, log in, and keep session state with JWT-backed auth.
  • Choose favorite genres for personalized recommendations.
  • Admins can add movies and update curator reviews.
  • Review submissions trigger Azure OpenAI sentiment classification.
  • Movies expose stored sentiment labels such as Excellent or Terrible.

Tech Stack

React Vite React Bootstrap Backend Tech 1 Backend Tech 2 Azure OpenAI / LangChainGo Vercel Render

System Architecture

image

Repo Structure

.
├── Client
│   └── magic-stream-client
│       ├── dist
│       │   ├── assets
│       │   │   ├── DailyMotion-CImVK--v.js
│       │   │   ├── Facebook-OFygb3T3.js
│       │   │   ├── FilePlayer-DG0jEAqr.js
│       │   │   ├── index-8uq-0dvI.js
│       │   │   ├── index-D25rQSWw.css
│       │   │   ├── Kaltura-KtgqCFBD.js
│       │   │   ├── Mixcloud-z0ALXqhH.js
│       │   │   ├── Mux-BwTplyl_.js
│       │   │   ├── Preview-DE96OMXL.js
│       │   │   ├── SoundCloud-qoXXwC02.js
│       │   │   ├── Streamable-D_btiK-u.js
│       │   │   ├── Twitch-CuH3aeCe.js
│       │   │   ├── Vidyard-7pcpZB8j.js
│       │   │   ├── Vimeo-DQVoEi3d.js
│       │   │   ├── Wistia-CsuGqb3S.js
│       │   │   └── YouTube-RTwryPYC.js
│       │   ├── favicon.svg
│       │   ├── index.html
│       │   └── vite.svg
│       ├── eslint.config.js
│       ├── index.html
│       ├── package-lock.json
│       ├── package.json
│       ├── public
│       │   ├── favicon.svg
│       │   └── vite.svg
│       ├── README.md
│       ├── src
│       │   ├── api
│       │   │   ├── apiBase.js
│       │   │   ├── axiosConfig.js
│       │   │   └── axiosPrivateConfig.js
│       │   ├── App.css
│       │   ├── App.jsx
│       │   ├── assets
│       │   │   ├── MagicStreamLogo.png
│       │   │   └── react.svg
│       │   ├── components
│       │   │   ├── addmovie
│       │   │   │   └── AddMovie.jsx
│       │   │   ├── header
│       │   │   │   ├── Header.jsx
│       │   │   │   └── SlixLogo.jsx
│       │   │   ├── home
│       │   │   │   └── Home.jsx
│       │   │   ├── Layout.jsx
│       │   │   ├── login
│       │   │   │   └── Login.jsx
│       │   │   ├── movie
│       │   │   │   ├── Movie.css
│       │   │   │   └── Movie.jsx
│       │   │   ├── movies
│       │   │   │   └── Movies.jsx
│       │   │   ├── recommended
│       │   │   │   └── Recommended.jsx
│       │   │   ├── register
│       │   │   │   └── Register.jsx
│       │   │   ├── RequiredAuth.jsx
│       │   │   ├── review
│       │   │   │   └── Review.jsx
│       │   │   ├── spinner
│       │   │   │   └── Spinner.jsx
│       │   │   └── stream
│       │   │       ├── StreamMovie.css
│       │   │       └── StreamMovie.jsx
│       │   ├── context
│       │   │   └── AuthProvider.jsx
│       │   ├── hooks
│       │   │   ├── useAuth.jsx
│       │   │   └── useAxiosPrivate.jsx
│       │   ├── index.css
│       │   └── main.jsx
│       ├── vercel.json
│       └── vite.config.js
├── README.md
└── Server
    └── MagicStreamMoviesServer
        ├── controllers
        │   ├── movie_controller.go
        │   └── user_controller.go
        ├── database
        │   └── database_connection.go
        ├── go.mod
        ├── go.sum
        ├── MagicStreamMoviesServer
        ├── main.go
        ├── middleware
        │   └── auth_middleware.go
        ├── models
        │   ├── movie_model.go
        │   └── user_model.go
        ├── render.yaml
        ├── routes
        │   ├── protected_routes.go
        │   └── unprotected_routes.go
        └── utils
            └── token_utils.go

31 directories, 71 files

Local Development

Backend:

cd Server/MagicStreamMoviesServer
cp .env.example .env
go run main.go

Frontend:

cd Client/magic-stream-client
cp .env.example .env
npm install
npm run dev

For local frontend development, set:

VITE_API_BASE_URL=http://localhost:8080

Production Configuration

Render backend environment:

ALLOWED_ORIGINS=https://magic-stream-movies-beige.vercel.app,https://magic-stream-movies-mqznysux4-sankalp-jhas-projects.vercel.app
COOKIE_DOMAIN=magicstreammovies-c4go.onrender.com
MONGODB_URI=...
DATABASE_NAME=...
SECRET_KEY=...
SECRET_REFRESH_KEY=...
AZURE_OPENAI_API_KEY=...
AZURE_OPENAI_BASE_URL=...
AZURE_OPENAI_DEPLOYMENT_NAME=...
BASE_PROMPT_TEMPLATE=...

Vercel frontend environment:

VITE_API_BASE_URL=https://magicstreammovies-c4go.onrender.com
VITE_GOOGLE_CLIENT_ID=...

If the frontend shows a CORS error, check both sides:

  1. Vercel must not point to the old backend https://slix-backend.onrender.com.
  2. Render ALLOWED_ORIGINS must include the exact Vercel origin. Preview deployments look like https://magic-stream-movies-...vercel.app.
  3. Redeploy both services after changing environment variables.

Main API Routes

Public:

  • GET /movies
  • GET /genres
  • POST /register
  • POST /login
  • POST /logout
  • POST /refresh
  • POST /google-login

Protected:

  • GET /movie/:imdb_id
  • GET /recommendedmovies
  • POST /addmovie
  • PATCH /updatereview/:imdb_id
  • PATCH /updatestreamurl/:imdb_id
  • PATCH /updategenres

About

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages