Skip to content

iamy8000/twitter-api-2020

 
 

Repository files navigation

Simple Twitter(Back-end)

Simple Twitter is inspired by ALPHA Camp. It inclues the basic founction as an social platform, such as create/delete posts, like/unlike posts, follow/unfollow accounts, leave/delete comments and public/private chatroom.

Explore Simple Twitter Now!

Check Out Front-end Repository

Table of Content


User Interface

User Dashboard

Profile

Chatroom

Admin Dashboard




Features

Visitor

As a visitor, you can:

  1. Sign up for an account and join this platform
  2. Explore tweets on this platform, including the content tweeted by yourself
  3. Interact with users by Follow, Like, Reply and Chat
  4. Customize your profile by an avatar, cover, and self-introduction
  5. Chat with users at an online chatroom
  6. Send private messages to the users
  7. Subscribe users and get notifications when they tweet, also you will receive notifications when your tweets get any response
  8. Here is a user account you can use
account password
@user1 12345678

Admin

As an admin, you can:

  1. Manage all tweets on this platform, deleting the tweet is available for the admin
  2. Dashboard for observing all users, easy to find out who is an active user
  3. Here is an admin account you can use
email password
root@example.com 12345678

RESTful APIs

api/
└── admin/
│   ├── signIn
│   ├── getTweets
│   ├── deleteTweet
│   ├── getUsers
└── user/
│   ├── signup
│   ├── signin
│   ├── getProfile
│   ├── getTopUser
│   ├── getTweets
│   ├── getUserReplies
│   ├── getUserLikes
│   ├── getSettingPage
│   ├── putSetting
└── follow/
│   ├── addFollowing
│   ├── removeFollowing
│   ├── getFollower
│   ├── getFollowing
└── like/
│   ├── likeTweet
│   ├── unlikeTweet
└── tweet/
│   ├── getTweets
│   ├── getTweet
│   ├── postTweet
│   ├── putTweet
│   ├── deleteSelfTweet
└── reply/
│   ├── postReply
│   ├── getReply
│   ├── putReply
│   ├── getSingleReply
└── chat/
│   ├── postChatRoom
│   ├── deleteChatRoom
│   ├── getChatRoom
│   ├── postMessage
│   ├── readMessages
│   ├── getUnreadMessages
└── subscribe/
    ├── addSubscribing
    ├── removeSubscribing
    ├── getNotifications
    └── readNotifications


Third-party APIs and Open source used in this project

Front-end

  • Using Vue-cli for Vue.js project management
  • Using Vuex for storing the user's state
  • Using vue-loading-overlay to customize personal loading animation
  • Using Socket io for for send message to back-end
  • Using moment.js for parsing time and display the date range from now
  • Using Sweetalert2 to give tips to the user when they meet some problems

Back-end

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.2%
  • Handlebars 3.8%