Skip to content

tst32/Motortwit-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motortwit Demo

Excerpted example of mongo project using aiohttp, motor and aiohttp_jinja2 (https://readthedocs.org/projects/aiohttp-jinja2/downloads/pdf/latest/), similar to flask one. this example work in windows python conda env, not in docker as intended in original https://github.com/aio-libs/aiohttp-demos

Installation

Clone repo and install library:

$ git clone git@github.com:aio-libs/aiohttp-demos.git
$ cd aiohttp-demos

Install the app:

$ pip install -e .
(no need pip install -r req.txt)

Create database for your project:: mongodb run in pwsh Start-Job -ScriptBlock { mongod --config ".sanicmotoprontodbmongodb.conf" }

cd .motortwit

python.exe .generate_data.py

Run application:

python.exe .main.py

Open browser:

http://127.0.0.1:9001

Requirements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages