Skip to content

Nkosinathi-Bonga-James-Mncube/Camagru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 

Repository files navigation

Camagru

What is Camagru?

  • Re-create a simple web-based instagram clone.

Technologies used:

  • Html
  • Mysql
  • Javascript
  • PHP

The requirements :

  • Create Registration page,Update detail page,and Forget password page(required to create validation functions on input as well as create function to strip html tags and prevent sql injection)

  • Passwords should be hashed

  • Be able to upload images with a webcam or from directory(Required to create validation functions to check format and size restrictions)

  • Be able to place stickers after images are uploaded

  • Pagination for public gallery of images should be viewable(Only registered users are able to like and comment on pictures)


Table of contents


How it works

Installation

For Ubuntu

  1. Install XAMPP : https://www.apachefriends.org/download.html
  2. Navigate to location /opt/lampp/
  3. Change the properties of /htdocs
sudo chmod 777 htdocs
  1. Clone repo inside /htdocs
  2. Navigate to Camagru/SETA_Camagru/config/database.php to check MYSQL database details are correct.(Make sure username and password match XAMPP details)
<?php
$DB_DSN = 'mysql:host=localhost';
$DB_USER ='root';
$DB_PASSWORD = '';
$DB_NAME = "camagru_database";
?>
  1. Change the properties of /upload_save_img
sudo chmod 777 upload_save_img/
  1. Install sendemail
  sudo apt-get install sendmail
  1. Lauch XAMPP
  • for 32bits system
sudo /opt/lampp/manager-linux.run
  • for 64bit system
  sudo /opt/lampp/manager-linux-x64.run
  1. Open the 'Manage Servers' and start both 'MYSQL Database' and 'Apache Webserver' servers.

N.B for the Apache webserver in 'Configure' make sure you on 8080 port.

How to run the program

  1. To setup database and tables enter into the browser : http://127.0.0.1:8080/Camagru/SETA_Camagru/config/setup.php, you should see the following:

setup

  1. In the browser enter http://127.0.0.1:8080/Camagru/SETA_Camagru. You should see the following:

index

  1. To view changes in the database enter in the browser : http://127.0.0.1:8080/phpmyadmin/ , select camagru_database

Screenshots

index.php ( Click here )
home.php ( Click here )
about.php ( Click here )
forgot.php ( Click here )
logout.php ( Click here )
register.php ( Click here )

Troubleshoot