Shoowflix is a modern web application for streaming and discovering your favorite movies . Built with cutting-edge technologies, Shoowflix provides a seamless user experience and an engaging interface for entertainment enthusiasts.
- Movie Catalog: Browse a comprehensive catalog of movies.
- Search Functionality: Quickly find your favorite content using the search feature.
- User Authentication: Secure login and registration for personalized experiences.
- Responsive Design: Fully responsive interface compatible with various devices.
- User Reviews: Read and write reviews movies.
- Watchlist: Save and manage your favorite content in a watchlist.
- Frontend: Next.js, Vite
- Backend: Node.js, Express, Next.js
- Database: MongoDB
- ORM: Prisma
- Authentication: JWT (JSON Web Tokens), Next Auth
- Hosting: Vercel
Ensure you have the following installed:
- Node.js (v16 or later)
- npm or yarn
- Clone the repository
git clone https://github.com/shubhlpu16/shoowflix.git
- Navigate to folder
cd shoowflix
- Install Dependencies
npm i
- Start development server
npm run dev
Once the servers is running, navigate to http://localhost:3000 to access the ShoowFlix application. You can start exploring, searching, and managing your favorite content!
We welcome contributions to ShoowFlix! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Make your changes and test them thoroughly.
- Submit a pull request with a clear description of your changes.
Shoowflix is licensed under the MIT License. See LICENSE for more information.
For any inquiries or issues, please contact us at [email protected]
Run Command: docker compose up then: npx prisma db push
Use below url: DATABASE_URL=mongodb://localhost:27017/showflix?replicaSet=rs0&retryWrites=true&w=majority&directConnection=true
Service Workers are scripts that your browser runs in the background, separate from a web page. Sits between your web app on browser and network.(Acts as proxy servers) They enable features that don’t need a web page or user interaction, like push notifications and background sync.
Web Push is a technology that allows servers to send messages to web applications, even when the web app is not open in the browser. (Sends via SW)
Web push notifications rely on active service workers to function.
How Web Push Works with Active Service Workers?
- User Subscription: The user subscribes to push notifications through the browser.
- Subscription Information: The browser sends the subscription information to the server.
- Push Message and Push Service: When the server has a message to send, it sends the push message via push service and push service delivers the message to the browser.
- Service Worker Activation: The browser wakes up the service worker to handle the incoming push message.
- Notification Display: The service worker processes the message and displays a notification to the user.