This is the source code repo for CatImgDB.
CatImgDB is a image collection and rating website, similar to Reddit, for the collection and rating of Cat Images. CatImgDB is made with LAMP
/LEMP
(Linux
,Apache
or NGINX
,MySQL
(specifically mariadb
),PHP
) and unreleased.
- To learn
I've been wanting to learnSQL
andPHP
and making one big project is how I learn. I split it up into small parts and then - To
This is the code for a yet to be released website (due to security issues). This allows the collection and rating of images.
You will need a web server, PHP, MySQL compatible Database Management System.
- Web server
Apache
ornginx
- Tested on
Apache
2.4.46-3
web server - Tested on
nginx
1.14.2
web server
- Tested on
- PHP
PHP
version7.3.27
or higher- Tested on
PHP
v7.4.10
- Tested on
- MySQL compatible DBMS
MariaDB
- Tested on
MariaDB
v10.5.5
- Tested on
- Operating System
Debian
basedGNU + Linux
distro- Tested on
Manjaro Linux x86_64
- Kernel
GNU/Linux 5.9.16-1-MANJARO
- Kernel
- Tested on
Raspbian GNU/Linux 10 (buster) armv6
- Kernel
5.4.51+
- Kernel
- Tested on
- login to your
SQL Manager
and add a new user - Make a new database,
[database]
- Run the SQL in
sql.sql
in the new database - Save the new users
[username]
,[password]
in a file calledpwd/[username].php
with the format:
<?php
$username = "[username]";
$password = "[password]";
?>
- Save
pwd/[username].php
to the root directory of the web server - Copy
src/index.php
to the root directory of the web server - Find line:
//Password database info
require "pwd/haz.php";
$dbname = "test";
and change it to
//Password database info
require "pwd/[username].php";
$dbname = "[database]";
- Connect to it through localhost
- Can this code be used for other pictures besides cats?
Technically yes, we have not yet added are CatID AI yet so there is nothing stopping this code being used to build another image site.
Officially NO. CatImgDB is only for cat images, it is in the title. - Where can i access this site?
Nowhere, upsettlingly this site is not yet public. - Why is this site not public yet? When will it be?
This site is not ready for public, this is due to security and quality issues.
We have no time frame for when it will be public. - How can I help?
As I am doing this project to learn SQL I would really appreciate it if you would review my code for any bad practices and test it to find if there are any bugs. - How will this be financially viable?
Once are user-base is big enough we will introduce Cat-verts (cat advert), an advert with a cat in it that is also be rate-able, this will allow us to keep to our sole aim of collecting and rating all cat images in the world as the cat-vert will technically class-able as a cat image. - What makes this better than other cat image sharing websites?
It has a plan.
It has been designed to be much better than competitors.
Its main and only purpose is to be aweb database for cat images
.
- URL Upload of Cat Image
- Form for URL uploading
- Displaying the DB
- Rating system
- Reporting System
- To get rid of anything that is not biologically a cat
- CatImgDB Account
- API
- Security
- Upload from computers
- Decentralize, allows multiple CatImgDB to communicate to expand DB.
- CatID
- A AI program that has two tasks:
- Identifies if something is a cat or not and then allow or mark it for approval.
- Take over the world
- A AI program that has two tasks:
- CatImgDB sole aim is to collect and rate every cat image
- CatImgDB is distraction free, only cat images
- CatImgDB provides a barrier-less experience, all you need is a title and a URL of a cat image
- r/cats does not allow accounts less than 10 days old or have less than 50 karma to post, thus preventing the collection of cat images.
It can currently take a URL with a title and add it to a SQL database.
It can then show that database as a grid of pictures with title at the bottom. Its title will expand and become more visible when the picture is hovered over.
Current cat pictures are from unsplash.