Giter Site home page Giter Site logo

jquery-chat-application's Introduction

jQuery Chat Application

Assignment from The Iron Yard-Austin

Week 4 - day 15

Description

You will be using everything you've learned thus far to create a web based chat application similar to slack.

Objectives

Learning Objectives

After completing this assignment, you should…

  • Understand how to make AJAX GET requests to retreive data from a server.
  • Understand how to make AJAX POST requests to save data to a server.

Performance Objectives

After completing this assignment, you be able to effectively use

  • $.get
  • $.post
  • setInterval
  • $.html / $.append

Details

Deliverables

  • A repo containing at least:
    • scripts/main.js
    • index.html

Requirements

  • No ESLint warnings or errors

Normal Mode

You will be creating a multi-user chat application similar to slack. If you think about it the right way, a chat application is similar to a todo list that multiple people can add to. Since you've already built a todo list this should be a piece of cake!

Here are the requirements:

  • Any user should be able to visit the website and type in a chat message.
  • That chat message should be saved to the server via a POST request.
  • Within 2 seconds, all other users who have the page open should see the newly posted message along with the date and time when the message was posted. Messages should appear on the page without having to refresh the page.

Hard Mode

  • A user should be able to set a username. All messages posted by that user should show the username of the user who created the message.
  • Support emoticons in your chat application (hint: google "jquery emoticon plugin")
  • Create a chat bot that automatically responds to certain messages with responses. For example, if a user types in "amiright" the chat bot would automatically respond with "you are so right!"

Nightmare Mode

Go as far as you want with these:

  • Play a sound anytime a new chat is posted into your chat room (hint: google "play sound with javascript")
  • Implement a swear word filter. We need to keep things PG. No four letter words should be printed into the chat room. Instead display '****'
  • If a link to a gif, jpg, or png image url is posted into chat, show that image in addition to the link.
  • Play a sound only if a message is posted in the chat room that includes @username

Notes

jquery-chat-application's People

Contributors

m2mathew avatar

Watchers

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