📜 ⬆️ ⬇️

Own BaaS c subject area modeling, scripts and more for half an hour

Today we will tell and show how to raise your Backend as a Service (BaaS) with very interesting features in half an hour.



BaaS is a web application that runs in the cloud and provides everything you need for business / mobile applications and websites (front-end). BaaS allows at least:
')

Here , the respected yurash collected the main BaaS-systems for 2012. Now there are much more of them, but in terms of questions that people ask about BaaS platforms, the article is relevant. By the way, if you are interested in the current BaaS market (and the BAP - business application platform), then I can share in the next article.

What we take to create BaaS



Docker-Orienteer-based BaaS allows you to quickly create applications and quickly make changes to existing applications. At the same time, the system has a low threshold of entry: the simplest application can be created by a person who is not familiar with databases and programming.
The BaaS-Docker bundle can be useful to service providers, small design studios and managers of in-house data systems.

What we get in the end


  1. Data Model Constructor
  2. A wide list of data types: from primitive (INTEGER, STRING, etc.) to complex (LINK, EMBEDDED, LINKMAP, EMBEDDEDMAP), SPATIAL
  3. Screen Forms and Widgets for Creating Designed Objects
  4. User and Role Management
  5. JavaScript / SQL Server Scripts
  6. REST interface with dynamic addition / change / deletion of its functions
  7. Designing and Running BPMN Business Processes Based on Camunda
  8. Modular architecture for flexible extensions via java, if you really need

Deploy


Here it is our plan for the next half hour

  1. Register on Docker Cloud
  2. We are registering on the Digital Ocean (AWS, Azure, etc.)
  3. We connect Docker Cloud and Digital Ocean: we create the note
  4. Create and run your Orienteer service.
  5. Customize for yourself

Register on Docker Cloud


In terms of the registration procedure, Docker Cloud does not differ in any way from other services on the Internet.

  1. Go to the Docker Cloud
  2. We invent a Docker ID (aka username). I recommend using only the lower case with a “-” sign: if in the future you want to use Docker very closely and release your images for containers, it will be easier to address
  3. Set email and password
  4. We confirm email and that's it: you are registered!

Registration on Digital Ocean


  1. Go to the Digital Ocean . I recommend using this referral link , as this will give you an extra $ 10
  2. Registration is even easier than on Docker Cloud: set your email and password
  3. When registering, I recommend using Docker Cloud's promo-code, which will give you another $ 20. To get it, go to Cloud Settings on Docker Cloud. You will see something like this:



  4. Confirm email and that's it: you are registered

Linking Digital Ocean and Docker Cloud


  1. Go to the familiar Docker Cloud> Cloud Settings page (see picture above)
  2. In the line of Digital Ocean click on the crossed out socket
  3. We will authorize Digital Ocean for Docker Cloud (that is, enter the email and password of the docker)
  4. Is done

Create your own service Orienteer


  1. First of all, you need to create at least one node on which we will run our BaaS. To do this on Docker Cloud :

    • Go to Node Clusters and click Create.
    • Providers point choose Digital Ocean
    • Specify the region
    • Select the type of node. I recommend to choose with at least 1 GB of memory
    • Click Create . You will see something like the image below. Docker Cloud will order, install, configure and launch the node on the Digital Ocean



  2. Just a little bit left: run your copy of Orienteer from the Docker image. Orienteer is a homogeneous application: it carries everything with it. Therefore, it is not necessary to create a Docker Stack. Need only the service itself.

    • Go to Services and click Create.
    • In the list above choose Public Services.
    • In the block on the left, enter the search criteria: orienteer / orienteer
    • We select orienteer / orienteer and get to this page:



    • Of all the many settings, the only thing that must be configured is the ports that are accessible from the outside. For example:



    • Click Create & Deploy

  3. We'll have to wait until the Docker image is downloaded to our node and running. It usually takes no more than 3 minutes. In the end, you will see something like the image below.


    Click on the link and get to our own BaaS based on Orienteer. To log in, use the default login / password: admin / admin



Customize for yourself




To set it up, I highly recommend referring to the official documentation , and in particular to the chapter on creating your own business application (in the walkthrough format).

Settings for your specific application can be divided into the following steps:

  1. Create data model
  2. Configure role and user model
  3. Distribute rights to roles / users
  4. Add the necessary scripts executable on the server side
  5. Customize interface: widgets, reports, charts, perspectives, etc.

There is no limit to perfection, so you can bring the file to infinity: by entering your widgets, your export formats, business processes, printed reports, notifications, etc. If you have questions about further customization for your needs: always happy to help!

Source: https://habr.com/ru/post/312844/


All Articles