···6677# Welcome to Kefi community!
8899-## Run in local
99+## Basic setup
10101111To be able to run Kefi in you own computer, for development proposes, first, you'll
1212need the following software installed and configured:
···17171818This project uses environment variables to handle the configuration, following the [twelve-factor config recommendation](https://12factor.net/config), and we recommend to use [direnv](https://direnv.net/) to handle project's local environment variables.
19192020-### 1. Clone the repository
2020+### Clone the repository
21212222First, just clone this repository in your machine.
23232424-### 2. Create environment variables
2424+### Create environment variables
25252626Assuming you are using [direnv](https://direnv.net/), on the root of the project, creates a file named `.envrc`:
2727···5555 KEFI_SETTINGS_MODULE=kefi.config.local
565657575858-### 3. Launch the external services
5858+### Launch the external services
59596060To launch the database an Redis server, you can launch them using `docker-compose`:
61616262 $ docker-compose up --build
63636464-### 4. Install the dependencies
6464+### Install the dependencies
65656666You can install the dependencies of the project using [poetry](https://python-poetry.org/),
6767in a local virtual environment, using the following command:
68686969 $ poetry install
70707171-### 5. Run tests
7171+7272+## Running tests
72737374Now, to test that everything is working, you can launch the tests using this command:
74757575- poetry run pytest .
7676+ $ poetry run pytest .
7777+7878+## Running local server
76797777-### 6. Run database migrations
8080+### Database migrations
78817979- poetry run alembic upgrade head
8282+First, we have to run the migrations in order to get the last version of the database:
80838181-### 7. Run server
8484+ $ poetry run alembic upgrade head
82858383- poetry run uvicorn kefi.main:app --reload8686+### Run server
8787+8888+Then, we launch the local server with `uvicorn`:
8989+9090+ $ poetry run uvicorn kefi.main:app --reload