Skip to content

nomhoi/aiohttp-realworld-example-app

 
 

Repository files navigation

RealWorld Example App

aiohttp codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

This codebase was created to demonstrate a fully fledged fullstack application built with aiohttp including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the aiohttp community styleguides & best practices.

For more information on how to this works with other frontends/backends, head over to the RealWorld repo.

How it works

Describe the general architecture of your app here

Getting started

Clone the repository:

git clone [email protected]:nomhoi/aiohttp-realworld-example-app.git

Install requirements:

pip install -r requirements.txt

Init database:

python init_db.py

Run the server:

python -m conduit

Run tests:

pytest

Postman collection: RealWorld.postman_collection.json

PostgreSQL

Set these variables in conduit.settings:

DB_URL = "postgres://postgres:[email protected]:5432/postgres"
DB_URL_TEST = "postgres://postgres:[email protected]:5432/test_{}"

Run the container:

docker-compose up -d

About

RealWorld example built with aiohttp (Python)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%