# Starting The Application

Clone the below repository on the server

```
git clone --recurse-submodules git@gitlab.com:shine2/nse-gold-traceability.git
```

To initialize, fetch and checkout any nested submodules. The below foolproof can be used:`git submodule update --init --recursive`.

Run the below git command to fetch all the latest changes in submodules:

```
git submodule update --remote
```

Once we have the code, all we need to do is run the `swawn.sh` script file and it will take care of:

* setting up the docker swarms
* creating and initializing the mongodb replica set cluster
* creating latest images for docker
* starting all the micro-services

```
$ . ./swawn.sh
```

After these steps, we will have our application server up and running in minutes.


---

# 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://shine-docs.chainflux.com/backend-setup/start-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.
