PrimeFlix is a dynamic streaming platform that offers a wide range of movies and TV shows, alongside an integrated online store where users can purchase merchandise and subscriptions. Payments are securely processed through Stripe, ensuring a seamless and engaging user experience.
- Features
- Screenshots
- Tech Stack
- Installation
- Usage
- Environment Variables
- API Endpoints
- Contributing
- License
- Contact
- Streaming Service: Browse and stream a variety of movies and TV shows.
- Online Store: Purchase subscriptions and merchandise directly through the platform.
- Secure Payments: Integrated with Stripe for secure transactions.
- User Authentication: Secure login and registration with password hashing and session management.
- Responsive Design: Optimized for both desktop and mobile devices.
- Frontend: React.js
- Backend: Node.js with Express
- Database: PostgreSQL
- Authentication: Bcrypt and cookie-based sessions
- Payments: Stripe API
- Build Tools: Webpack
- Hosting/Deployment: in progress
To set up PrimeFlix on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/PrimeFlix.git cd PrimeFlix -
Install dependencies: Download and install Node.js (includes npm): 👉 https://nodejs.org/
cd frontend npm install cd .. cd backend npm install npm install bcryptjs npm install cors
-
Set up the database:
-
Set up environment variables:
DB_USER=your_db_user DB_HOST=localhost DB_DATABASE=your_database_name DB_PASSWORD=your_db_password DB_PORT=5432 STRIPE_SECRET_KEY=your_stripe_secret_key
-
Run the application:
npm run dev
- DB_USER: PostgreSQL username
- DB_HOST: PostgreSQL host (usually localhost)
- DB_DATABASE: PostgreSQL database name
- DB_PASSWORD: PostgreSQL user password
- DB_PORT: PostgreSQL port (default: 5432)
- STRIPE_SECRET_KEY: Your Stripe API secret key for payment processing
Here are some of the key API endpoints:
- GET /api/movies: Retrieve a list of movies available for streaming.
- POST /api/auth/login: Log in a user.
- POST /api/auth/register: Register a new user.
- POST /api/payments/checkout: Process a payment via Stripe.
- GET /api/user/profile: Fetch user profile data. (Feel free to add more endpoints based on your application's functionality.)
Contributions are welcome! If you'd like to contribute to PrimeFlix, please follow these steps:
- Fork the repository.
- Create a new branch (git checkout -b feature/YourFeature).
- Commit your changes (git commit -m 'Add YourFeature').
- Push to the branch (git push origin feature/YourFeature).
- Open a Pull Request.
For any inquiries or support, feel free to contact me:
- Name: Rouslan Lakhno
- Email: rouslanlakhno@gmail.com
- GitHub: rlakhno








