Code Monkey home page Code Monkey logo

laravel-vue-stripe-movies-app's Introduction

A Movie Application Using Laravel, VueJS and Stripe

A system where customers can pay to watch videos(movies) based on a daily, monthly, or yearly subscription,

Features

  1. Laravel for Backend
  2. VueJS for frontend
  3. Laravel Sanctum for API Auth
  4. Using the TheMovieDB(TMDB) Movie API
  5. Stripe Payment Gateway for the subscription

To Use This App

Stripe Payment Gateway: https://stripe.com/en-gb-us (MUST BE REGISTERED TO GET YOUR PUBLISH KEY AND SECRET KEY AND TO CREATE SUBSCRIPTION)

TMDB API: https://www.themoviedb.org/settings/api (MUST BE REGISTERED TO VIEW THIS PAGE TO GET YOUR API KEY AND TOKEN)

In your .env file

# Your database details here
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=moviesapp
DB_USERNAME=root
DB_PASSWORD=

# Your API details
TMDB_TOKEN=***__***
TMDB_BEARER=***__***
STRIPE_KEY=pk_test_***__***
STRIPE_SECRET=sk_test_***__***
composer update
php artisan migrate
npm install

Resources Used

Laravel UI: Used to setup Vue

Main Docs: https://laravel.com/docs/7.x/frontend

Laravel Sanctum: For the authentication

Main Docs: https://laravel.com/docs/8.x/sanctum

Laravel Cashier: For the payment/subscription (Easy integration with Stripe)

Main Docs: https://laravel.com/docs/8.x/billing

Tailwind CSS: Used for the Frontend UI

Main Docs: https://tailwindcss.com/docs/installation

npm install tailwindcss postcss autoprefixer

PostCSS 7 compatibility build

Error: PostCSS plugin tailwindcss requires PostCSS 8.
npm uninstall tailwindcss postcss autoprefixer

npm install tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9

Alpine.js: For event handling on the search form (probably not necessary!) - I just like it.

<script
    src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js"
    defer
></script>

laravel-vue-stripe-movies-app's People

Contributors

bhekor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.