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.
Describe the general architecture of your app here
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
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