Giter Club home page Giter Club logo

yubnub's Introduction

yubnub

A social command line for the web! This is the source code for http://yubnub.org/.

Yubnub was written by Jonathan Aquino for the Rails Day 2005 programming competition. He then ported it to PHP in 2013.

This source code is made available under the MIT License (see LICENSE).

Apologies for the poor quality of the HTML and CSS. They were written back when I didn't know much about web design best practices, back in 2005. The PHP is more recent (2013) and is of better quality.

Installation

This is a simple website that consists of PHP files (beginning with public/index.php) and a MySQL database.

After installing PHP and MySQL on your computer, create a MySQL database called "yubnub" and use db/yubnub.sql to create the three tables.

Then copy config/SampleConfig.php to config/MyConfig.php (which is .gitignore'd), and edit its username and password to match those for your yubnub database.

Apache Configuration

This is what I have in my /etc/apache2/sites-available/yubnub.org file:

<VirtualHost *:80>
  # Admin email, Server Name (domain name), and any aliases
  ServerAdmin [email protected]
  ServerName  www.yubnub.org
  ServerAlias yubnub.org

  # Index file and Document Root (where the public files are located)
  DocumentRoot /home/jon/public/yubnub.org/public

  # From http://framework.zend.com/wiki/display/ZFDEV/Configuring+Your+URL+Rewriter
  RewriteEngine off
  <Location />
      RewriteEngine on
      RedirectMatch 302 ^/$ https://yubnub.org/
      RewriteRule "well-known" "-" [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule !\.(js|ico|gif|jpg|png|css|html|xml|JPG|xls|doc|txt|reg|sh|sxc|sxw)$ /index.php
  </Location>

  # Log file locations
  LogLevel warn
</VirtualHost>

Versions

This code works with the following software versions:

  • PHP 5.3.10
  • PHPUnit 3.7.14

yubnub's People

Contributors

jonathanaquino avatar

Watchers

 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.