SimpleAdmin is an easy way to create an administrative panel
Hi guys! You probably already read my last article is about creating an open source project and what advice I gave to beginners at the planning stage and start working on the project.
It's been more than six months since the writing of the article and the original idea has degenerated into something new. Initially, the main idea was to create a gem for creating administrative dashboards, which are already quite a decent amount, but eventually starting work on the project, I radically changed its concept.
SimpleAdmin it is a service that allows you to visually create administrative panels without resorting to the help of a programmer, you are not tied to a specific programming language because all data is transferred through the API and the structure of the administrative panel is built on the fly depending on the entities and fields you created using the visual component service.
Suppose we have a "Blog" application in which there is a "Records" model with a header and description fields. For integration, you need small library , which connects to your project and creates the following API endpoints:
simple_admin /entities - two actions (index, show) to get a list of all models and fields, get a list of fields for a particular model
simple_admin /resources - performs standard CRUD operations, requests a list of records (resources)
simple_admin /versions - transfers the current version of gem in the project for synchronization with the service
In order for the data not to fall into the hands of intruders on the side of the application, a special environment variable with a secret key is created:
# config /initializers /simpleadmin.rb
On page creation of the project you need to specify later a secret key, the address of your site, the name of the project and the description. On the service side, there are two conditional abstractions: Entity and EntityFields, which are a reflection of your model and fields in it.
How does it work on the side of the service?
After creating the project, click on the project name and you will see the administrative part.
When editing a model, you can create fields in two ways:
Create a field separately by selecting its type and on what page it will be displayed
Mark the required fields with checkmarks (or vice versa remove)
When creating a field, you can select the following attributes:
Field shortcut (as the field will be displayed in the admin panel)
Field type (number, string, text, etc.)
Display on the page (page of all entries and a separate entry)
Sorting by field allows you to sort records by descending /increasing
Search by field allows you to mark only the fields that will search for
On the collection page, you can see a list of your most recent entries, sort them by id and title, find the record you need and perform standard creation, editing and deletion operations.
Advantages of the service
The main advantage of SimpleAdmin it's the ability to edit an administrative panel without any programming skills and a flexible architecture that does not tie you to one programming language.
To install the library will need 5 minutes of programmer time and in the future, any task related to the addition of new fields or functionality can be performed by a person without special technical skills, which of course is beneficial to the business.
We will help you to install into your project for free. SimpleAdmin and help with the configuration for Ruby on Rails. Work further on improving the quality of the project and adding a new functionality that would simplify your work. On all questions you can write on [email protected] .
What is planned to do in the next release?
* At the moment, SimpleAdmin is in the alpha version of
All tasks under the project are stored in open form . The main tasks that are planned to be implemented in the next release:
Add new types of fields (image, wysiwyg editor, tags, prices, etc)
Add the ability to embed your logic in the controllers on the service side.
Caching for the list of models and frequently used data
Add the Dashboard page and the statistics widget (the total number of entries)
Tips for beginners
To start working with the idea, it is necessary to gather as much feedback from the potential target audience, acquaintances, friends. If the idea has hooked you and you have not lost interest to it after some time and it is unique in the territory of your region or another, then it is necessary to register a list of tasks (
, Pivotal tracker ).
Ask what functional would like to see in your service target audience of the project (* if it is not targeted, then feedback can be negative). Openly publish reports about what was done and what kind of functionality you plan to add in the future (blog and social networks).
It may be interesting
Corvus Health provides medical training services as well as recruiting high quality health workers for you or placing our own best team in your facility. Check Out: Health Workforce Recruitment
I.T HATCH offers a wide range of IT services including remote access setup, small business servers, data storage solutions, IT strategy services, and more. Check Out: IT strategy services