Code Monkey home page Code Monkey logo

frost's Introduction

FROST

FROST (FRee and Open Source Tube) aims to be a free and open alternative to YouTube and its competitors.

Current Development

FROST is currently in pre-development stages. Please look at the issues to see what needs to be done before programming commences.

If you would like to contribute please fork this repository, make your changes, and then make a pull request. You may also contribute by making comments of constructive criticism on to any issue.

Prerequisites

  • Change post_max_size (php.ini) to the maximum file size you want the user to upload on to the server.
post_max_size=50M
  • Change the database credentials in public_html/dbconnect.php
return new PDO('mysql:host=localhost; dbname=FROST', 'jamie', 'password');

frost's People

Contributors

tormundtargers avatar deltabeard avatar

Watchers

James Cloos avatar  avatar  avatar

frost's Issues

Database design

The database we will need at least these tables:

  • Videos
  • Users
  • Comments

For the first milestone, since we are not implementing commenting, currently we are going to create the Videos (for uploading) and Users (for moderation) tables.

Initial Designs

Videos

Column name Type Primary Key Indexed Auto Increment Allow Null Description
id integer Yes Yes Yes No Auto-incremented unique identifier of a video.
title varchar(255) No Yes No No
description varchar(1000) No No No Yes
url varchar(255) No No No No
filetype varchar(10) No No No No
uploader_ip varchar(15) No Yes No No
uploader_name varchar(30) No Yes No Yes
tripcode varchar(12) No No No Yes 10 chars for actual tripcode, extra 2 chars for ! marks.
upload_date datetime No No No No
video_status integer No No No No Approved video, unmoderated video or 'deleted forever' video.
removal_code integer No No No Yes It is null if it is not removed.
host_code integer No No No No To help locate and provide support server-side for how to retrieve the video.

Users/Moderators

Column name Type Primary Key Indexed Auto Increment Allow Null
id integer/long Yes Yes Yes No
name varchar(30) No Yes No No
email varchar(255) No No No No
password varchar(255) No No No No
mod_level integer No No No No
last_ip varchar(15) No Yes No No

Beware! This is only a first draft.

  • Edited to add descriptions.
  • Edited to add host_code, change video_status and tripcode

AJAX Uploading

The final upload page should display a progress bar to inform the user how much of their video has uploaded.

Since the video must be uploaded to our server before being either moved or uploaded to pomf, we can display a couple of things to the user:

  • The speed of the upload
  • How long left
  • Percentage uploaded

We can use AJAX to fill a progress bar, and it can first be filled with the percentage uploaded to our server, then the percentage uploaded to pomf.

Tripcode is stored incorrectly

If no tripcode is entered, the value in the 'tripcode' field of the database should be set to NULL. Currently '*0' is stored.

tripcode-database

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.