Giter Site home page Giter Site logo

projetoueb's Introduction

Projet Oueb

Chat project written with Django and JQuery

Online demo

See projet-oueb.fr

Project report

See REPORT.md

Start the project locally

python manage.py migrate # Migrate database if needed
python manage.py runserver # Start the local server

projetoueb's People

Contributors

nathanfallet avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

projetoueb's Issues

Load messages from JSON

In tchat/static/js/channel.js, fill loadConversation in #channel-messages making a GET request to /channels/{id}/messages/.

Scroll on new messages

When receiving new messages (only in sendMessage, after calling saveData), scroll to the bottom of the view

Create HTML views

Create html files for views, filling files in /tchat/templates (setup to be recognized by Django)

Setup django routes

Available routes:

  • / : Home
  • /login and /register : Login/register pages
  • /channels/new : Create a new channel
  • /channels/{id}/ : Show a conversation
  • /channels/{id}/settings : Channel settings
  • /channels/{id}/messages : JSON data for messages

Send a message

Two steps:

  • Handle a POST request to create a message in database (for current user)
  • Make a POST request in sendMessage() in js to send the message and refresh the conversation

Emojis

Handle replacement in textfield (eg: :) -> ๐Ÿ˜€)
Provide a keyword/menu with emojis

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.