# Backend

### Local setup

1. Install docker with docker-compose
2. Put database dump inside `postgres_data` folder with name `devDB`
3. Run database container separately and wait until dump will be applied`docker-compose -f docker/docker-compose.dev.yml up --build db`
4. Stop running container (Ctrl+C/Cmd+C)
5. Run development environment`docker-compose -f docker/docker-compose.dev.yml up --build`
6. Login into image `docker exec -it proco_dev_backend /bin/bash`
7. Create admin user `pipenv run python manage.py createsuperuser`
8. CMS and API will be available at 8000 port: <http://localhost:8000/admin/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://razortheory.gitbook.io/unicef-project-connect/technical-documentation/development-setup/backend-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
