Giter Club home page Giter Club logo

twitter-style-app's Introduction

Tweet app

This project is a simple twitter style application, developed using my mvc framework and styled with tailwind css (cdn).

App-preview

A user can register on the site and, after verifying his account, start posting tweets, visit and follow other's users profile, comment on other tweets and add or remove likes.
In the user's dashboard, it is possibile to change profile information, update the password, or delete an account.
The site is accessible to registered users only.

Following system

The main feature of this small application is the follow/unfollow system.
On the homepage of the logged-in user, will be shown only his tweets and those of the users he is following.

Sending a follow request

On a user's profile, you can send a follow request by clicking on the follow button.
After clicking the button, a record is stored in the database, containing the follower_id, the following_id and the status. (pending by default).
If you press the button again, before the request is accepted or declined, the record in the database will be deleted.
In the following demo, I am logged in as "user1", and I am sending a follow request to "johnDoe".

note The followers / following count will not be updated till the request is accepted.

Follow preview

Managing follow requests

The user who sent a follow request will find a pending request on his following list page (accessible by clicking the counter of the following). Here the logged in user can manage the requests sent (deleting them), as well as manage the users he already follows.

note The section dedicated to pending, accepted and declined requests is visible only to the logged in user. All other users will only see the followers for which the request has been accepted.

Follow preview

On the other hand, the user who has received the request, will have a pending request on his followers page (accessible by clicking the counter of the followers). In this page the pending request can be accepted or declined.

Installation

  • Clone the project with "git clone https://github.com/Jordan-Bianco/twitter-style-app.git"
  • Enter the folder and open the project with your editor
  • In the terminal run the command composer install
  • Create the .env file and copy the contents of the .env-example file by entering your credentials
  • Run the php migrations.php command in the terminal to create all the tables in your database
  • Optionally you can run the command php seed.php to seed the database with fake data
  • Enter the public folder
  • Launch the server with the command php -S localhost:8888

twitter-style-app's People

Contributors

jordan-bianco 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.