``Relationships and Entities
- One user has many friends
- One user has many posts
- One post has many comments
- One post has many likes
- Each comment belongs to one user
- Each post belongs to one user
- Each like belongs to one user
Functionalities
- Sign up
- Login
- View my profile
- Edit my profile
- Search for people
- View someone else post
- Follow someone
- Unfollow that person
- View all my followers
- View people I am following
- View posts of people you are following
- Make a post
- Like a post
- Comment on a post
- View number of likes on a post
- View number of comments on a post
- View comments for a post
Technologies used
Frontend Languages
- HTML5
- CSS3
- Javascript
Frontend Plugins and frameworks:
- Bootstrap 4
- Fontawesome
- Jquery
- Krajee form upload plugin
References
- Bootstrap 4 official documentation
- Krajee form upload plugin official documentation
- Fontawesome website
- W3 schools
- PHP 7 official documentation
- Stack overflow website
Backend Language: PHP 7.1.16
Database Server: MySQL 5.7.21
Web Server: Apache
How to install
- Unzip the project folder
- Create a new database with the name social_media
- Open the file project-folder-location/social-media/api/config/Database.php and set the constants host, db_name, username, password as per your database config.
- On your browser navigate enter the url. localhost/social_media/api/config/initialize.php This will create the tables and relationships to run the application. For a successful configuration, the following output will be displayed: {‘data’: ‘database initialized successfully.’}
- You are now set to go. On your browser navigate to localhost/social_media/app/index.php to get started.
Find attached screenshots of the fully functioning system. This software’s source code is hereby provided free of charge to anyone who wants to use it. ``