Coder Social home page Coder Social logo

project-minichat-ii-the-return's Introduction

MiniChat Project II - The Return

The project is a Chat Web App, groups will be set randomly. What you need, is what you already learn : HTML, CSS, PHP, MySQL et JS !

You will use the framework Material Design Light. A squeleton file index-squeleton.php is avaible in the root of this repository, you have to follow functional specifications.

This project is loosely based on OpenClassrooms - TP : un mini-chat.

Functional Specifications (already write)

Structure of the MySQL table

  • ID (INT): it will let us know in what order were mailed messages. It will set the auto_increment for the numbers to write themselves, and do not forget to select "Primary" (this tells MySQL that this is the field that numbers the records);

  • pseudo (VARCHAR): remember to specify the maximum size of the field (get to the maximum, "255");

  • message (VARCHAR): Similarly, we will show a maximum size of 255 characters. If you think that your messages will be longer, use rather the type TEXT, much less limited.

Features

It's a chat, of course you must let people talk together on a global channel, allowing users to choose a nickname, messages are plain text.

Bonus

  • Remember the nickname. We must now re-enter their username for each new message. As you probably know, it is possible in HTML pre-fill a field with the value attribute. For example:
<input type="text" name="username" value="Alice" />
  • Replace Alice by the pseudonym of the visitor. This pseudonym can be from a cookie for example when post a message, you enter their username in a cookie, which then allows you to pre-fill the field.

  • Submit to update the mini-chat. The mini-cat does not automatically update if new messages. This is normal, it would be hard to do at our level. Basically, the web was not really intended for this type of application. However, you can easily do is provide a link "Refresh" to load the page again. Thus, if there are new messages, they will appear after clicking on the link.

  • Refresh automatically every 5 seconds page using JavaScript.

  • View old messages. It is now clear that the last 10 messages. Can you find a way to display the old messages? Of course, view them all at once on the same page is not a good idea. You could imagine a setting $_GET['page'] which to choose the messages page number to display.

  • Allow other channels such as private discussions.

  • Allow users to define an avatar (you can use Gravatar).

project-minichat-ii-the-return's People

Contributors

yvan-sraka avatar haroenv avatar

Watchers

James Cloos avatar suliman 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.