https://github.com/jettify/aiohttp_polls
example of simple aiohttp project
https://github.com/jettify/aiohttp_polls
Last synced: 18 days ago
JSON representation
example of simple aiohttp project
- Host: GitHub
- URL: https://github.com/jettify/aiohttp_polls
- Owner: jettify
- Created: 2015-12-17T21:27:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-14T10:39:56.000Z (almost 7 years ago)
- Last Synced: 2025-03-25T09:52:52.465Z (about 1 month ago)
- Language: Python
- Size: 76.2 KB
- Stars: 17
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
aiohttp_polls (Demo moved to aiohttp repository)
================================================Example of polls project using aiohttp_, aiopg_ and aiohttp_jinja2_, similar to django one.
Installation
============
Clone and install this app:
::$ git clone [email protected]:jettify/aiohttp_polls.git
$ cd aiohttp_polls
$ pip install -e .Create database for your project:
::sudo -u postgres psql -c "CREATE USER aiohttp_user WITH PASSWORD 'aiohttp_user';" \
"CREATE DATABASE aiohttp_polls ENCODING 'UTF8';" \
"GRANT ALL PRIVILEGES ON DATABASE aiohttp_polls TO aiohttp_user;"Create tables for your project:
::
sudo -u postgres psql -d aiohttp_polls -a -f sql/create_tables.sql
sudo -u postgres psql -d aiohttp_polls -a -f sql/sample_data.sqlRun application
::
$ python aiohttp_polls/main.pyOpen browser
::
http://localhost:8080/.. image:: https://raw.githubusercontent.com/andriisoldatenko/aiohttp_polls/master/images/example.png
:align: centerRequirements
============
* aiohttp_
* aiopg_
* aiohttp_jinja2_.. _Python: https://www.python.org
.. _aiohttp: https://github.com/KeepSafe/aiohttp
.. _aiopg: https://github.com/aio-libs/aiopg
.. _aiohttp_jinja2: https://github.com/aio-libs/aiohttp_jinja2