/Chat-Rom

Simple dialogue application to communicate between users in real-time. Create an account, log in, and start sending messages in seconds. Equipped with registration features, managing usernames and passwords.

Primary LanguagePHPMIT LicenseMIT

tenor (1)

Simple Chat App

Simple Chat App is a simple application for communicating between users. This application allows users to log in and register, send messages, and view messages that have been sent.

Feature

  1. Login: Users can log in using the registered username and password.

  2. Registration: Users can create a new account by registering a username and password.

  3. User Profile: Users can edit their profile by changing the password.

  4. Sending Messages: Users can send messages to the chat room.

  5. Responsive Design: The appearance of the application is adapted to the user's device, both desktop and mobile.

  • There is still a lot of unfinished CSS, so my recommendation is to create external CSS to improve the appearance

Code Structure

  • index.php: The main page of the application, automatically transfers to registration room.
  • login.php: Login page for users.
  • profile.php: User profile page for changing password.
  • register.php: Registration page to create a new account.
  • oufile.php: Profile Picture page to add/change profile picture.
  • users.txt: File contains user data stored in serialization format.
  • chat.txt: File contains conversation history saved in text format.

Technology Used

  • PHP: Programming language for application logic and interaction with servers.
  • HTML/CSS: For the structure and appearance of the user interface.
  • JavaScript: For dynamic interactions on the client side, for example handling links to tagged messages.
  • File System: To store user data and conversation history.

Use

  1. Preparation: Make sure PHP is installed on your computer.
  2. Clone Repository: git clone https://github.com/hy011121/Chat-Rom.git
  3. Open Application: Open the index.php file using your local PHP server or using a PHP hosting service.
  4. Login or Registration: If you have an account, log in with your username and password. If not, sign up to create a new account.
  5. Start Communicating: Send messages to the chat room and view messages from other users.

Contribution

Contributions to the development of this application are very welcome. Please open a new issue to provide suggestions or bug reports, or make a pull request to propose changes.

Licence

This project is licensed under the MIT License.