Skip to content

Abhi94N/flask-chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flask-chat-app

Setup

  1. python3.11 -m venv venv --without-pip
  2. source venv/bin/activate/
  3. pip install flask flask-socketio
  4. run by python main.py where the flask app is running
  5. templates must be in template folder in root. this is where your html templates will reside
  6. templates must be in the static folder in root. This is where your static assets will reside
  7. add cdnjs for socketio to head of html base page
  8. add blocks to inject code
        <div class="content">
            <!-- dynamically inject code -->
            {% block content %}

            {% endblock %}
        </div>
  1. override blocks and inherit code using
{% extends 'base.html' %}
  1. add error messages by using if statement blocks
  2. session stores temporary data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published