# 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.
