Skip to content

Create new proejct

Deploy template and answer configurator questions with cookiecutter.

pip install cookiecutter
cookiecutter gh:pohmelie/cookiecutter-yacore

Modify dependencies

Add extra dependencies to requirements/production.in and requirements/dev.txt.

As for yacore itself, you can install only what you need for current service, just change plain yacore to something like yacore[db.postgresql,net.http] in requirements/production.in file.

See backends for more details.

Compile .in dependencies to pin them.

cd your-project-name
pip install pip-tools
pii-compile requirements/production.in -o requirements/production.txt

Install app

pip install -e ./[dev]

Run app

python -m your-project-name

Run tests

pytest

Build docker image

docker build . -t my-app