[feedhenry-dev] Mongo Express Service - Manage your Mongo Database in RHMAP using Mongo Express

Wojciech Trocki wtrocki at redhat.com
Fri Nov 11 10:25:22 UTC 2016

Awesome work Emilio!
What is also worth mentioning is that mongo-express has really good
api that we may reuse when building data access service for RHMAP 5.0.

On Thu, Nov 10, 2016 at 4:02 PM, Craig Brookes <cbrookes at redhat.com> wrote:

> This is pretty cool. I actually think having the data browser as an MBaaS
> service makes a lot of sense.
> For auth it seems you could create a piece of middleware that calls back
> to the platform to check a cookie or header value, if not there redirect to
> a login screen and proxy the credentials through to the platform.
> Craig
> On Thu, Nov 10, 2016 at 3:41 PM, Emilio Rodriguez Martinez <
> emrodrig at redhat.com> wrote:
>> Hey guys,
>> based on consulting's feedback, we've been working to integrate Mongo
>> Express in RHMAP. The first step was integrate it as a platform service and
>> here you can find our findings:
>> *Description*
>> Mongo Express Service is a RHMAP service which allows users to manage
>> their Mongo databases through a robust GUI. This interface includes several
>> pieces of functionality missing in the current Data Browser such as a
>> complex query runner or a database and collections statistics.
>> Besides, Mongo Express is an ongoing Open Source project so we can
>> benefit from the community contribution.
>> Here you can find a quick demo of Mongo Express working in RHMAP:
>> https://bluejeans.com/s/zTlgS/
>> *Current limitations*
>> - At the moment only the service's database is accessible automatically.
>> This means that the Cloud App's databases need to be manually configured to
>> be managed through this service.
>> - This service needs to be public and therefore the database will be
>> exposed: anybody knowing the url would have access to the data.
>> Note: both limitations can be workarounded. Depending on the feedback
>> from this service we will put more effort on this.
>> *Installation and usage*
>> To use Mongo Express Service in RHMAP follow these steps:
>> 1. Provision the sample FeedHenry Service in RHMAP (Services & APIs > +
>> Provision MBaaS service > New MBaaS service)
>> 2. Make the new service public (Details > Make this Service Public to all
>> Projects and Services)
>> 3. Upgrade database (Data Browser > Upgrade Database)
>> 4. Replace code from the test service with the forked Mongo Express
>> Service fork:
>>      - clone Mongo Express fork (git at github.com:emilioicai/mon
>> go-express-service.git)
>>      - git remote add your services git url (Details > Git Url)
>>      - git push --force origin master
>> 5. Deploy (using Node 4 as runtime)
>> 6. Mongo Express should be available through the Preview section in the
>> service view
>> *Troubleshooting*
>> Most of the issues arise because of one of these settings:
>>      - Service is not public
>>      - Database was not upgraded before deploying
>>      - Node 0.10 or Node 0.11 was used as runtime instead of Node 4
>> In case of a problem re-provisioning and making sure those three settings
>> are properly configured.

Wojciech Trocki
Software Engineer, Red Hat Mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/feedhenry-dev/attachments/20161111/ea656e87/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo.png
Type: image/png
Size: 11472 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/feedhenry-dev/attachments/20161111/ea656e87/attachment.png>

More information about the feedhenry-dev mailing list