Coder Social home page Coder Social logo

aqib-m31 / chatty-server Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 7 KB

Chatty Server is the chat server designed to complement the Chatty App. Built with Flask, Flask-SocketIO, and MongoDB, it facilitates real-time messaging and seamless interactions within chat rooms.

License: MIT License

Python 100.00%
chat-rooms cs50x flask flask-socketio python final-project

chatty-server's Introduction

chatty-server

Chatty Server is the chat server designed to complement the Chatty App. Built with Flask, Flask-SocketIO, and MongoDB, it facilitates real-time messaging and seamless interactions within chat rooms.

Features

  • User Registration and Login: Securely register and log in to access personalized chat experiences.

  • JWT Authentication: Implementing JSON Web Token (JWT) authentication for enhanced security.

  • Real-time Messaging: Engage in dynamic conversations with instant messaging capabilities.

  • Room Creation and Joining: Create new chat rooms and join existing ones using unique IDs.

  • Room Switching: Seamlessly switch between different chat rooms.

Getting Started

To run the Chatty App, start by running this Chatty Server:

  • Clone the chatty-server repository to your local machine.

  • Create a virtual environment for the server using your preferred method.

  • Install the required packages using pip. pip install -r requirements.txt

  • Set up Environment Variables:

    • Create a .env file in the root of the Chatty Server and populate it with the following variables:
      • APP_SECRET_KEY: Secret key for securing Flask application data.
      • JWT_SECRET_KEY: Key for signing and verifying JSON Web Tokens (JWT).
      • CONNECTION_STRING: MongoDB database connection string.
      • JWT_IDENTITY_CLAIM: Identity claim for JWT subject.
      • DB_NAME: Name of the MongoDB database.
  • Run the Server: python app.py

Voila! Your Chatty Server is up and running. Now you can proceed to run the Chatty App and experience real-time connections in your chat rooms.

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.