All Projects → steelkiwi → aiohttp_test_chat

steelkiwi / aiohttp_test_chat

Licence: other
Simple aiohttp test chat

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Python aiohttp - testing with a simple chat

This repo contains examples from article in our blog.

For creating this chat I used aiohttp - asynchronous web framework, written by python core developers.

Also I used Mongodb with motor(asyncronous driver) as database, jinja2 for templates, envparse for working with secure environment variables

For beginning you can install requirements to virtualenv

pip install -r requirements.txt

You must add config .env file there will be your secure settings( database connection, secret salt etc.)

Short sample .env file

DEBUG='False'
MONGO_HOST='mongodb://user:pass@mongo_host:mongo_port/mongo_database'
MONGO_DB_NAME='mongo_database'
SECRET_KEY='some secure key'
HOST='127.0.0.1'
PORT=8000

To run server you need just type to console

./app.py
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].