# Backend

This application uses Firebase as its backend. We chose Firebase as our backend as it has a simple UI with good documentation for us to learn from scratch. Firebase manages all data in real-time in the database. So, the exchange of data to and fro from the database is easy and quick. Firebase also allows syncing the real-time data across all the devices- Android, iOS, and the web without refreshing the screen which suits our mobile-app features really well.

Some other benefits to why we use firebase:

* Create Application without a backend server
* Sync real-time data in the application
* Quick display data in the application
* No SQL database so it is much faster


---

# 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://run-mania.gitbook.io/run-mania/tech-stack-and-system-design/backend.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.
