New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rethinkdb and angular2 with typescript #6305
Comments
RethinkDB is designed to be talked to by a server (e.g. a Node.JS server), not directly in the browser. |
oh ok. So best practise in my case is to use horizon? |
Yes indeed. And if you like to use rethinkdb directly from horizon, you can in embedded mode: |
thanks a lot 👍 |
@ternes3: I ran into the same issue with the I guess we both came from here: https://github.com/rethinkdb/angular2-typescript-example/blob/master/app.ts In the example Angular talks to rethinkDB directly. I'm running rethinkDB in Docker and thought I could connect to it right away. @chrisvariety: Is there no way around that middleware/proxy? Do you guys know any instructions on how to talk to rethinkDB using Angular? thanks :) |
@markusfalk Hi, did you manage to figure it out how to use rethinkdb with Angular 2+? |
@rbasniak, I have uploaded a sample project here https://github.com/BartNetJS/AngularWithRethinkDB |
@BartNetJS Thank you so much, This will be very helpful |
Hey there,
i´m completely new in this kind of programming, with nodejs, angular2 and even typescript. I want to use rethinkdb as realtime data storage for my angular2 application. First step was to install the npm driver according to the right types definition for typescript2. Really confusing and a kind of pain in the ass, it isn´t well documented.
Well now I try to connect to a local rethinkdb instance like this:
I even tried the hole stuff with '127.0.0.1' but i got this:
In plain js with nodejs this kind of code works. I believe there is some kind of trouble between the driver, the typings and angular2. But for me as beginner in this topic it is really confusing to get the right address to complain, maybe someone of you have a idea for me, in best case a solution.
Update 1:
I am trying to unterstand whats going on, it seems so there is going something wrong:
When i add a protocol like http to my host it will combine it to
http://http//127.0.0.1:28015undefinedajax/reql/open-new-connection?cacheBuster=0.9364257713950803
, seems correct so, because its going to remove the : in my provided protocol to prevent malformed urls. Pretty confusing.The text was updated successfully, but these errors were encountered: