# Admin Dashboard

{% embed url="<https://youtu.be/xtGjQtiFnRg?si=Gn_ryuxBN80L2nKz>" %}

## Installation of Motor Admin

Motor Admin is a Ruby on Rails admin panel that can be easily integrated into your application. Follow the steps below to install it in your Rails project.

See the <mark style="color:green;">live demo!</mark>

{% hint style="info" %}
We recommend installing Motor Admin after you have completed the first version of the Data Brick (Models, migrations, routes, associations, validations). This will save you manual work down the line.
{% endhint %}

### Setup

All the setup is already integrated by default, you only need to create a new user and assign it as an admin.

For this, open the rails console in the terminal with `rails c`

```
> User.create(email: "youremail@gmail.com", password:"somesecurepassword", admin: true)
```

Et voila! You can now login as this user and access your brand new rails admin dashboard <http://localhost:3000/motor_admin>

### Configuration

After installation, you may need to configure the Motor Admin settings according to your application's requirements. Refer to the [Motor Admin Documentation](https://www.getmotoradmin.com/) for detailed setup instructions.

### Usage

Once installed, you can access the admin panel at /motor\_admin by default. You can customize the interface and manage your application's data easily.


---

# 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://docs.lightningrails.com/features-setup/markdown.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.
