How can I share prisma2 studio with my teammates? - prisma2

I'm using prisma2 service in expressJS graphQL API. I want to use prisma2 studio page as a admin panel, and I want to share prisma2 studio page with my teammates, who are not programmer. Because it is an admin panel that we can change db Data, I want to deploy with password system. Is is possible to deploy prisma2 studio page with password? Is there any service that allows people to enter website only if he has a password?

running
prisma studio -h --experimental
allows the use of the prisma server only on local host.
you can connect it to your server ip address by changing the #prisma/cli/build/index.js file,replace
"http://localhost:${this.port}" to https://<ipaddress>:${this.port}
. But this is still an experimental feature it's unsafe to make this changes

This best way to autogenerate Prisma Admin and share it with your client is using my Prisma admin React component. With this, you can add your models as normally react component in your frontend project

Related

Deployment and Hosting of React, Express with MySQL Backend and Frontend Website

I want to have an website with frontend React and backend Express plus MySql available on a top-level domain address. I would really appreciate your support as I feel a bit lost with all opportunities and no guidance in how to do this. I know how to create a react app and I worked with express, mysql, git / github before. I also had a php website hostet before.
I wrote some code, but before I get too far, I am wondering about ...
How to set up this project on my local machine a professional way, so I can deploy it later?
Which cloud provider / hoster can you recommend?
Do I have to handle all three components separatly or can I wrap it up somehow?
Which tools do I need?
I tried to find cloud providers and tutorials but I got lost.

How to enable anonymous branding site

I use visual studio to deploy custom master page and I create publishing site that inherit this mater page. Then I enable anonymous the publishing site but it is till ask user and password when I go on. Please help me to resolve it.
Have you published the site on an existing web appliance where other site need authentication?
If you have, create a new new appliance and set appliance to anonymous and disable any other authentication methods.]

How OrientDB Studio Code Works?

I have a question regarding the way the OrientDB studio works.
When I build my own web application to access the OrientDB database, I need to enable CORS and then it works, but how comes that the OrientDB studio app works without having to enable CORS?
That's really puzzling me because I'd like to reuse the code logic of the OrientDB Studio app in my own application and it does not work like the OrientDB Studio app.
Also, it seems that the OrientDB Studio app is using the REST API of OrientDB, not the JavaScript API (orientdb-api.js). Am I right?
Is there any documentation I could read to get a full understanding of how the Studio works?
Regards,
Jeremie
You need to enable CORS because your app it is outside the domain of ODB. if you are running it in localhost is http://localhost:2480.
So if you make a request from a different domain the browser stops you if the server has CORS disabled.
Studio starts as a plugin inside ODB http (http://localhost:2480/studio/index.html) so is allowed to do request without enabling CORS.
If you do not want to enable CORS you can put your html and js under the www directory in
the $ORIENTDB_HOME distribution.
There is no documentation about Studio Code. You can browse it here https://github.com/orientechnologies/orientdb-studio if you need some further information you can ask me as i'm the main maintainer of Studio :D
I can tell you that it does not use the orientdb-api.js as it uses angular.js.
I advice you to not use orientdb-api.js but uses directly the REST api
with JQuery/Angular.

How to access local mysql from chrome packages app

I am developing a chrome packaged app. There is already an VB application running with mysql. I want to access the same database but use chrome packaged app as client.
How to access local mysql server from chrome packages app using javascript ?
I am aware of IndexedDB.
You have two options:
Create a web service (e.g. some PHP pages) that talks to MySQL and allows your app to use it as a go-between
Write your own MySQL driver/communicator to communicate with it directly: http://developer.chrome.com/apps/socket.html
The first is the easiest and would take the form:
Your chrome app would use AJAX to communicate with the PHP pages (probably via "POST")
Your PHP pages would expect it to login, use SSL and then use a token to continue identification during a session
The PHP would have generic capabilities to do CRUD actions
The PHP would spit back JSON for the results
but the second option would make you a hero if you took the time to develop that and put it on sourceforge or github under a permissive open source license.

AccessControlException while connecting MySQL using JDBC in GWT hosted mode

I want to connect to a mysql database at localhost:3306 using jdbc in a GWT servlet, but when I try connecting I get this error:
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
...
I know that I need to apply a security policy for tomcat to solve this problem, something like this:
grant codeBase "file:${catalina.home}/webapps/-" {
permission java.net.SocketPermission "192.168.12.81:3306", "connect";
};
But I don't know where should I apply this change? Please provide a solution for both hosted & web mode.
Make sure you are not using the Google App Engine (I'm assuming here you are using the Google Eclipse Plugin): go to your project's properties -> Google -> App Engine, and make sure it's unchecked.
If this doesn't help, read through the suggestions in this thread.