Ruby on Rails
Integrate Adminly into an existing Ruby on Rails web application.
Requirements
Integrating Adminly into an existing application is currently supported for Ruby on Rails 6+ web applications using the adminly gem. If your existing application does not run on Ruby on Rails, you can still elect to self-host by running adminly as a stand-alone server instance. See our guide to Self-Hosting to learn how to easily deploy an Adminly REST server.
Self-Hosting Requirements
Ruby on Rails 6.0 or above
Ruby 2.7.3 or above
Relational database:
PostgreSQL
MySQL
SQLite
Installation
Begin by installing the adminly
gem. Add this line to your Gemfile
Install the gem using bundler:
Mount the API routes by updating your config/routes.rb
file:
Now the Adminly API routes will be available at your server path /adminly
.
Make your first request
To ensure your API is setup and working, point your browser or query the base endpoint. You should see a response that includes the current version of Adminly.
View Adminly status and version.
GET
https://api.myapi.com/adminly/v1
Renders the version of adminly running.
Take a look at how you might call this method using our official libraries, or via curl
:
Add your API to Adminly
Once your API is installed, copy your jwt_secret
and adminly API endpoint
as you will use these to configure Adminly online.
Start a new project
Start a new project in Adminly by selecting New Project from the dashboard.
Select "Self-host: existing" when choosing which hosting option.
Enter the name of the project, then enter the
JWT_SECRET
and the Adminly API endpoint of your hosted server.
Continue through the setup wizard to complete the onboarding process. You should now be able to explore your Adminly data online.
Last updated