This Web Chat application allows users to exchange real-time messages within a chatroom. It utilizes PHP and MySQL for the backend, with AJAX and JavaScript enhancing the frontend interaction.
- Real-time messaging between multiple users.
- Session control with auto-logout on inactivity.
- Secure login and registration with session management.
- Docker installed on your machine.
- LAMP docker container setup.
- Clone this repository.
git clone https://github.com/gxlvera/ChatRoomService- Navigate into the project directory.
- Start your LAMP container. Ensure it's configured to mount the
public_htmldirectory from this repository.
- Ensure the MySQL database is up and running as expected.
- Import the SQL schema available in the
sql/directory to set up the necessary tables for accounts and messages.
- Open your web browser and navigate to the hosted address of your Docker container.
- Register a new account or login using an existing account.
- Once logged in, you can start chatting with other users who are online.
login.php: Handles user registration and login.check.php: AJAX backend for checking user existence.chat.php: Main chat interface.chatmsg.php: Backend for sending and receiving messages.login.js,chat.js: Frontend JavaScript for handling UI interactions.login.css,chat.css: CSS files for styling the application.
Contributions are welcome. Please fork this repository and submit a pull request if you have features you'd like to add.
