# Installation

Before using Mission Control you must [install the Gravity server and client](https://docs.usegravity.app/gravity-server/installation/install-gravity) and ensure it's running. Mission Control will plug into your existing API endpoints and database.

Once running, run the following command in terminal:

```
npm run setup
```

After you have completed the setup process, open a new browser window and navigate to:

```
http://localhost:5002/setup
```

{% hint style="danger" %}
Please ensure you use a strong password if you plan to deploy Mission Control to a live server.
{% endhint %}

Then complete the setup wizard in the browser, similar to the main setup you completed earlier.

{% hint style="info" %}
Mission control runs port 5001 (server) and 5002 (client) to ensure there is no conflict with your main application.
{% endhint %}

### Clean Up

{% hint style="warning" %}
You **MUST** remove the setup files from your install after setup. Failing to do so, will let anyone access the setup process.
{% endhint %}

You can use the cleanup script to automate this for you:

```
npm run cleanup
```

If you want to remove the files manually:

* /client/src/views/setup folder
* /controller/setupController
* /model/setup
* /api/index.js&#x20;
* remove the setup import from /server/api/index.js
* the setup route import in /client/src/app.js
