How to build a MongoDB admin panel

monikaambrozowicz

Monika Ambrozowicz

Posted on February 16, 2022

How to build a MongoDB admin panel

MongoDB doesn’t come with a comprehensive admin panel out of the box. There is Compass, the GUI built by — and for — MongoDB that is made for querying, optimizing, and analyzing data, but it won’t meet every business logic. Building a MongoDB admin panel from scratch is always possible but it does require a lot of dev, product, and UX work.

If you found this article, chances are you’re looking for a low-code admin panel solution to avoid spending long hours on development and maintenance. The good news is that you’re in the right place! I’ll show you how to create a robust and user-friendly admin panel that can be used to interact with customers, manage orders and refunds, monitor transactions, or do whatever your business requires. Here is how it can look like:

Image description

The KYC solution that can be built on top of a MongoDB database. Visit the KYC live demo and check how it works.

Image description
The fleet management solution that can be built on top of a MongoDB database. Visit the fleet management live demo and check how it works.

Image description

A dashboard for transactions monitoring that can be built on top of a MongoDB database. Visit the transactions monitoring and fraud management live demo and check how it works.

How to build a MongoDB admin panel: Forest Admin & alternatives

Once you’ve made the decision that you don’t want to allocate 30% of the dev time on building and maintaining back-office tools, it’s time to choose the perfect solution. In fact, you have a few possibilities:

  • Pick one of the admin panel templates that are easy to find online. They are often free and very easy to install, but they come with limitations. The idea behind them is to fit the most common needs and there is very little or no customization available.
  • Take advantage of open-source admin frameworks and libraries. Their pros? Much more flexibility and customization compared to the templates, they’re also free to use. Cons? Setting them up and making edits still requires quite a lot of dev work, even if less than budding a back-office solution from scratch. They can’t be customized by non-tech team members.
  • Try Forest Admin as it gives you the best of both worlds: The fundamental features, like CRUD operations, search, filters, dashboards, or export, are available out-of-the-box, but you can code functionalities that are advanced or specific to your business.

But what makes Forest Admin truly special is the hybrid architecture that consists of four components: the database and admin backend, the Forest Admin API Server, and the Forest Admin UI Server. Once you create an account and choose a MongoDB or a MongoDB Atlas as a data source, Forest Admin will create a Node.js server for you. Alternatively, if you have an Express application with the Mongoose ORM, Forest Admin will be installed directly into your app. Only the frontend is managed on Forest Admin servers, which gives you the flexibility of a no-code SaaS tool without compromising on data security. And that, contrary to the majority of open source solutions like React Admin or Django Admin, allows non-technical team members to manage the tools and dashboards they rely on every day.

Image description
Forest Admin architecture consists of four components: the database, the admin backend, the Forest Admin API server, and the Forest Admin UI server.

And finally, guess what? Forest Admin is perfectly scalable, so you don’t need to worry about what happens with internal tools when your company grows from a few to thousands of employees – many of our rapidly growing users can prove that!

To build a MongoDB admin panel with Forest Admin, you need:

  • 15 minutes of your time.
  • Basic knowledge of JavaScript.
  • Web browser (we recommend Chrome and Firefox).
  • Your favorite code editor.
  • A MongoDB database or an Express application with the Mongoose ORM.

Getting started with Forest Admin for MongoDB

First of all, sign up on ForestAdmin.com and create a free account and choose a name for your project. If you have a MongoDB database, there are 2 options:

Choose MongoDB if you have a MongoDB/MongoDB Atlas database. Forest Admin will create a Node.js server for you.
Then follow the onboarding instructions. You will be able to copy and paste the code when you log in to the app.

Image description
Image description

We recommend installing with npm. You will be able to copy and paste the code when you log in to the app.

Image description

Alternatively, choose Express/Mongoose if you have an Express application with the Mongoose ORM. Forest Admin will be installed directly into your app.

Image description

Then follow the onboarding instructions.

Image description

Image description

Image description

You will be able to copy and paste the code when you log in to the app. Read more about how to configure Express packages here. And if you need any assistance, the Forest Admin developer community forum is there to help.

Once you have your back office up and running, it is time to customize your admin panel, deploy to production, and invite team members because the more the merrier!

Try it yourself with our demo MongoDB database

We want to give you the possibility to try Forest Admin for MongoDB in a read-only mode in a few moments, even before you connect it to your own database. Use these demo credentials and follow the above-mentioned steps and see it for yourself how easy to set up and use are internal tools built in Forest Admin.

After creating a project, and picking MongoDB as a datasource, paste the following information and follow the instructions:

Image description

Host: prod-howtobuildamongodb.x4fxi.mongodb.net

User: article

Password: CAx3jRn%gx4Y3kts**VHBVYZRSx@

database: sample_analytics

And don’t forget to tick Use SRV in the advanced settings.

Then, follow the instructions like in the example above. We also recommend installing Forest Admin for MongoDB with npm.

Image description

That’s all! Now you can play around with Forest Admin in a read-only mode. The next step? Create a new project and build a MongoDB admin panel with your own data.

If you don’t have an account yet, sign up for free and join thousands of innovative companies.

💖 💪 🙅 🚩
monikaambrozowicz
Monika Ambrozowicz

Posted on February 16, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

How to build a MongoDB admin panel
mongodb How to build a MongoDB admin panel

February 16, 2022