DevTV Written With Laravel

Related tags

API DEV-TV
Overview

DevTV

Live Demo

DevTv is a laravel web application. DevTv is your Video Subscription Platform. Add unlimited videos, posts to your subscription site. Earn re-curring revenue and require users to subscribe to access premium content on your website. With DevTv you can create your own video website. You can add unlimited videos and posts to your site. You can choose to make videos available for free or only to your subscribers.

DevTv is a web application developed with Laravel 5.2.

Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern

Some of the features of Laravel are a modular packaging system with a dedicated dependency manager, different ways for accessing relational databases, utilities that aid in application deployment and maintenance, and its orientation toward syntactic sugar

Home Example

![](https://cloud.githubusercontent.com/assets/3502724/18478310/a7210c42-79c8-11e6-857c-b50401d027fd.png)

Login Example

![](https://cloud.githubusercontent.com/assets/3502724/18478425/172e4b3a-79c9-11e6-80bb-e99d4f18126b.png)

Administrator Example

![](https://cloud.githubusercontent.com/assets/3502724/18478312/a73ac83a-79c8-11e6-89cf-802c476b5517.png) ![](https://cloud.githubusercontent.com/assets/3502724/18478311/a7246b30-79c8-11e6-94cd-97faa0a9cf71.png)

View Video Example

![](https://cloud.githubusercontent.com/assets/3502724/18478314/a73b4012-79c8-11e6-8984-7e2fa651820e.png)

Prerequisites

  • Mysql or Postgresql
  • PHP 5.4+
  • Laravel 5+
  • Command Line Tools
    •  Mac OS X: Xcode (or OS X 10.9+: xcode-select --install)
    •  Windows: Visual Studio
    •  Ubuntu /  Linux Mint: sudo apt-get install build-essential
    •  Fedora: sudo dnf groupinstall "Development Tools"
    •  OpenSUSE: sudo zypper install --type pattern devel_basis

Getting Started

Via Cloning The Repository:

# Get the project
git clone https://github.com/iamraphson/DEV-TV.git

# Change directory
cd DEV-TV

# Rename env.example to .env and fill in all the keys and secrets and also generate a secure key for the app using `php artisan key:generate`

# Install Composer dependencies
composer install

# Run your migrations
php artisan migrate

php artisan serve

Obtaining API Keys

To use any of the included APIs or OAuth authentication methods, you will need to obtain appropriate credentials: Client ID, Client Secret, or API Key

  • Visit Facebook Developers
  • Click My Apps, then select *Add a New App from the dropdown menu
  • Select Website platform and enter a new name for your app
  • Click on the Create New Facebook App ID button
  • Choose a Category that best describes your app
  • Click on Create App ID button
  • In the upper right corner click on Skip Quick Star
  • Copy and paste App ID and App Secret keys into .env
  • Note: App ID is clientID, App Secret is clientSecret
  • Click on the Settings tab in the left nav, then click on + Add Platform
  • Select Website
  • Enter http://localhost:3000 under Site URL Note: After a successful sign in with Facebook, a user will be redirected back to home page with appended hash #_=_ in the URL. It is not a bug. See this Stack Overflow discussion for ways to handle it.

  • Go to https://sendgrid.com/user/signup
  • Sign up and confirm your account via the activation email
  • Then enter your SendGrid Username and Password into .env file

List of Packages

Package Description
socialite Sign-in with Facebook, Twitter and Github
laravel tinymce Tinymce Editor Library
stripe php Stripe library
laravel framework PHP web framework
laravel disqus Disqus library
carbon DateTime API Library
guzzlehttp Simplified HTTP Request library

Useful Tools and Resources

Laravel Eloquent Cheatsheet

Deployment

Once you are ready to deploy your app, you will need to create an account with a cloud platform to host it. These are not the only choices, but they are my top picks. From my experience, Heroku is the easiest to get started with, deployments and custom domain support on free accounts.

1-Step Deployment with Heroku

  • Download and install Heroku Toolbelt
  • In terminal, run heroku login and enter your Heroku credentials
  • From your app directory run heroku create
  • Create a Procfile in your app root. All this file needs to contain is web: vendor/bin/heroku-php-nginx public if you prefer to use nginx. or web: vendor/bin/heroku-php-apache2 public if you prefer to use Apache.
  • Run heroku addons:add heroku-postgresql:dev to add a Postgres database to your heroku app from your terminal
  • Lastly, do git push heroku master. Done!
  • Run artisan commands on heroku like so heroku run php artisan migrate

Note: To install Heroku add-ons your account must be verified.


  • Login to Windows Azure Management Portal
  • Click the + NEW button on the bottom left of the portal
  • Click COMPUTE, then WEB APP, then QUICK CREATE
  • Enter a name for URL and select the datacenter REGION for your web site
  • Click on CREATE WEB APP button
  • Once the web site status changes to Running, click on the name of the web site to access the Dashboard
  • At the bottom right of the Quickstart page, select Set up a deployment from source control
  • Select Local Git repository from the list, and then click the arrow
  • To enable Git publishing, Azure will ask you to create a user name and password
  • Once the Git repository is ready, you will be presented with a GIT URL
  • Inside your DEV-TV directory, run git remote add azure [Azure Git URL]
  • To push your changes simply run git push azure master
  • Note: You will be prompted for the password you created earlier
  • On Deployments tab of your Windows Azure Web App, you will see the deployment history

Note: Alternative directions, including how to setup the project with a DevOps pipeline are available at http://ibm.biz/hackstart. A longer version of these instructions with screenshots is available at http://ibm.biz/hackstart2. Also, be sure to check out the Jump-start your hackathon efforts with DevOps Services and Bluemix video.

Contributing

Thank you for considering contributing to Dev-TV

Security Vulnerabilities

If you discover a security vulnerability within Dev-TV, please send an e-mail to Ayeni Olusegun at [email protected]. All security vulnerabilities will be promptly addressed.

How can I thank you?

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!

Don't forget to follow me on twitter!

Thanks! Ayeni Olusegun.

License

The MIT License (MIT). Please see License File for more information.

You might also like...
A framework for serving GraphQL from Laravel
A framework for serving GraphQL from Laravel

Lighthouse A framework for serving GraphQL from Laravel Lighthouse is a GraphQL framework that integrates with your Laravel application. It takes the

Laravel cryptocurrency trading APIs.

Lypto API Laravel cryptocurrency trading APIs. Installation Requirements Minimum Laravel version 7.0 Use the following command to install: composer re

A simple example of how to create a RESTful API in Laravel Framework 8.36.1.
A simple example of how to create a RESTful API in Laravel Framework 8.36.1.

FirstLaravel A simple example of how to create a RESTful API in Laravel Framework 8.36.1. I used Database sqlite because I wanted to deploy this proje

Official Laravel package for thepeer

Thepeer Laravel SDK Installation composer install thepeer/sdk Usage Initiate ?php $thepeer = new \Thepeer\Sdk\Thepeer("your-secret-key"); Available

 OpenClassify - Laravel 8 Classified Script Platform
OpenClassify - Laravel 8 Classified Script Platform

OpenClassify is modular and most advanced open source classified platform build with Laravel 8 & PHP 7.3+ Supported

💛 Modern API development in Laravel. ✍️ Developed by Gentrit Abazi.

Introduction Larapi is a package thats offers you to do modern API development in Laravel with support for new versions of Laravel. Larapi comes inclu

🍞🧑‍🍳 An on-the-fly GraphQL Schema generator from Eloquent models for Laravel.

An on-the-fly GraphQL Schema generator from Eloquent models for Laravel. Installation Quickstart Model schemas Installation This package requires PHP

Fully unit tested Facebook SDK v5 integration for Laravel & Lumen
Fully unit tested Facebook SDK v5 integration for Laravel & Lumen

Laravel Facebook SDK A fully unit-tested package for easily integrating the Facebook SDK v5 into Laravel and Lumen 5.0, 5.1, 5.2, & 5.3. This is packa

Laravel A2Reviews Client API lets you build apps, extensions, or plugins to get reviews from the A2reviews APP.

Overview Laravel A2Reviews Client API lets you build apps, extensions or plugins to get reviews from the A2reviews APP. Including adding reviews to a

Comments
  • A couple of changes that you might need to make

    A couple of changes that you might need to make

    Hey Ayeni, nice work. Here are a couple of changes that might be worth making.

    These are personal opinions though

    • Force a redirect from https:// to http:// as it breaks the entire page.
    • The menus don't have to be all uppercase.
    • Hide the first section in mobile view.
    opened by chilas 5
Owner
Ayeni Olusegun
Senior Software Engineer.
Ayeni Olusegun
The NKN open API is a blockchain-to-database parser with an easy to use interface written in PHP

The NKN open API is a blockchain-to-database parser with an easy to use interface written in PHP. We're using Laravel as our framework to provide a clean and maintainable code.

Rule110 - The NKN open source community 7 Jun 26, 2022
The SDK written in PHP for Close partner developers.

Close SDK for PHP The Close SDK for PHP makes it easy for developers to communicate with The Close App in their PHP code. Get started really fast by i

Close Dev Team 3 Jun 23, 2022
A Laravel Fractal package for building API responses, giving you the power of Fractal with Laravel's elegancy.

Laravel Responder is a package for building API responses, integrating Fractal into Laravel and Lumen. It can transform your data using transformers,

Alexander Tømmerås 776 Dec 25, 2022
Laravel API 文档生成器,可以将基于 Laravel 项目的项目代码,自动生成 json 或 md 格式的描述文件。

Thresh Laravel API 文档生成器,可以将基于 Laravel 项目的项目代码,自动生成 json 或 md 格式的描述文件。 安装 $ composer require telstatic/thresh -vvv 功能 生成 Markdown 文档 生成 Postman 配置文件 生

静止 5 Jul 12, 2021
Laravel api tool kit is a set of tools that will help you to build a fast and well-organized API using laravel best practices.

Laravel API tool kit and best API practices Laravel api tool kit is a set of tools that will help you to build a fast and well-organized API using lar

Ahmed Esa 106 Nov 22, 2022
A simple way of authenticating your RESTful APIs with API keys using Laravel

ApiGuard This package is no longer maintained This package is no longer maintained as Laravel already has a similar feature built-in since Laravel 5.8

Chris Bautista 691 Nov 29, 2022
A RESTful API package for the Laravel and Lumen frameworks.

The Dingo API package is meant to provide you, the developer, with a set of tools to help you easily and quickly build your own API. While the goal of

null 9.3k Jan 7, 2023
Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application

CORS Middleware for Laravel Implements https://github.com/asm89/stack-cors for Laravel About The laravel-cors package allows you to send Cross-Origin

Fruitcake 6.2k Jan 8, 2023
An easy to use Fractal wrapper built for Laravel and Lumen applications

An easy to use Fractal wrapper built for Laravel and Lumen applications The package provides a nice and easy wrapper around Fractal for use in your La

Spatie 1.8k Dec 30, 2022
Laravel wrapper for Facebook's GraphQL

Laravel GraphQL Use Facebook's GraphQL with Laravel 6.0+. It is based on the PHP port of GraphQL reference implementation. You can find more informati

Mikk Mihkel Nurges 1.9k Dec 31, 2022