mongodb

44 views
Skip to first unread message

rabia irem uçar

unread,
Aug 8, 2017, 1:19:27 PM8/8/17
to ozoneplatform-users
ı want to deploy a backbone.js project to owf and it is using mongodb for storage ? Should it possible to use mongodb on owf ? Should  ı need to make any configuration ?

kdrumm...@gmail.com

unread,
Aug 9, 2017, 7:46:06 AM8/9/17
to ozoneplatform-users
You can certainly use MongoDB for storage for your OWF widget.  You don't need any extra configuration to get that to work.  As Tina said in another post, The Ozone platform doesn't change how you build your web application.  You can build your application however you want and then put it in OWF so that it can interact with other widgets through the browser.

rabia irem uçar

unread,
Aug 9, 2017, 3:15:29 PM8/9/17
to ozoneplatform-users
thank you a lot again , so sorry  for these type of dummy questions 

rabia irem uçar

unread,
Aug 9, 2017, 3:37:07 PM8/9/17
to ozoneplatform-users
alright that's the final question ,should ı do any configuration on my owf installation like other relationaldatabases

kdrumm...@gmail.com

unread,
Aug 10, 2017, 7:31:13 AM8/10/17
to ozoneplatform-users
No matter what database (mongo, relational or another non-relation) you use for your application, you don't need to do any extra configuration.  If you have OWF up and running well for your needs and want to use MongoDB database for your application, you would do so just as you would a non-OWF application.  OWF does have its own database that it uses to manage its own internal data.  Any references to databases in the documentation or scripts relate to this OWF database which is separate to an application database.  The OWF bundle, I believe, defaults to use an in memory database that is pre-configured which works great for development and most demonstrations.  It is not recommended you use the in memory database for production though.

rabia irem uçar

unread,
Aug 10, 2017, 7:38:07 AM8/10/17
to ozoneplatform-users
Thank you for information, ı get the idea but want to ask another question ı build my app with mongo but now ı got an error says that 

mixed  content: the page at 'https://localhost:8443/owf/' was loaded over https, but requested an insecure xmlhttprequest endpoint 'http://localhost:3000/api/blogs'. this request has been blocked; the content must be served over https.

To get rid of that stackoverflow says : changing the API URL to have HTTPS instead of HTTP typically resolves this issue . 
But ı can't find a way to do that. Do you know any method for that or faced with something like that ?
Thank you again .

kdrumm...@gmail.com

unread,
Aug 10, 2017, 7:47:34 AM8/10/17
to ozoneplatform-users
This is a browser security issue.  Most browsers give a way to temporarily bypass it which is fine in this case.  Look for an icon in your address bar.  The proper way to fix is to change the url to your app component in OWF to use HTTPS instead of HTTP.

rabia irem uçar

unread,
Aug 11, 2017, 2:54:59 PM8/11/17
to ozoneplatform-users
ı tried that but now errors are 

https://localhost:3000/ Failed to load resource: net::ERR_CONNECTION_CLOSED

GET https://localhost:3000/ net::ERR_CONNECTION_CLOSED

I think ı dont understand  how correctly create a https request. Is there any opinion about errors , sorry for disturbing, but need help so much

kdrumm...@gmail.com

unread,
Aug 14, 2017, 7:55:20 AM8/14/17
to ozoneplatform-users
The port is different for HTTPS.  What web application container are you using?  (Tomcat is the one included in the bundle)  You'll need to check with your container's documentation to see where to set the port for HTTP and what it is set to.  Then you'll have to change the 3000 in your url to that port.  I believe the bundle default to HTTP: 8080 and HTTPS: 8443.

rabia irem uçar

unread,
Aug 14, 2017, 12:22:49 PM8/14/17
to ozoneplatform-users
I am using tomcat with included the bundle , and change my port  to 8080 and it gives 
https://localhost:8080/api/blogs Failed to load resource: net::ERR_CONNECTION_CLOSED  ı try http and https both on 8080 in http 8080 it gives mixed content again when ı try to change port 8443 and my uri to https://localhost:8443/api/blogs owf is not opening 

Did ı do something wrong ? 

kdrumm...@gmail.com

unread,
Aug 14, 2017, 12:31:25 PM8/14/17
to ozoneplatform-users
Is tomcat where you are hosting your widget code?  Previously you were saying port 3000 which suggests a different container than the bundled one with OWF.

rabia irem uçar

unread,
Aug 14, 2017, 1:19:10 PM8/14/17
to ozoneplatform-users
I am trying to connect  my mongodb with 3000 port but when ı make a request on 3000 and https://localhost:3000/api/blogs ı got the errors  ı mentioned and ı changed my listened port to 8080 with your suggestion but dont work . Am ı missing something ? There is only one tomcat and it is bundled one with OWF 
Reply all
Reply to author
Forward
0 new messages