/MessengerSocket

A test chat socket with python (flaskio, flask and Jinja )

Primary LanguagePythonMIT LicenseMIT

MessengerSocket

A chat socket created with rooms, you can create isolated temporary rooms ( and history ).
Developmented with Flask and Flask-SocketIO, to render front-end i using jinja ( backend render ).

Running the project

Go to root of project and create your virtual-env

  • install dependences
    cat -r requirements | xargs poetry install using pip or pip3 -r requirements.txt using poetry

  • run the program
    python3 main.py
    NOTE: that i'm not use flask-script or any lib to manager my socketio server only using socketio.run() creates a basic server to development.

Structure of Project

├── LICENSE 
├── main.py  --- server side code
├── poetry.lock   --- dependences
├── pyproject.toml  --- dependences
├── README.md 
├── static  --- static files to jinja
│   └── css
│       └── style.css
└── templates  --- templates of views
    ├── base.html
    ├── home.html
    └── room.html