Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular IBM Bluemix Cloudant Example Code

Does anyone have any example code for using an Angular 2 web app to CRUD data from a Cloudant database on IBM Bluemix? I have had some success developing an Ionic 2 application to do so. However, I am not sure how I can do the same for a standard Angular 2 Web App. I have been unable to find any good tutorials online.

like image 748
UrbanCondor Avatar asked Mar 05 '26 05:03

UrbanCondor


2 Answers

Cloudant does not have the library support for Angular 2, so please call HTTP requests to Cloudant database through your Angular 2 web app.

like image 174
Carthage Avatar answered Mar 06 '26 19:03

Carthage


There is no Cloudant library for Angular yet.

To develop a Cloudant communication in Angular, there are at least 2 options :

  • Code an HTTP service in Angular with the HttpClient. Exemple : How to code a Cloudant service with Angular (Link to Medium)

  • Use Cloudant NodeJS Client and adapt it to TypeScript. Exemple : See this article on Cloudant Blog (link to Cloudant Blog)

like image 27
Adrien Arcuri Avatar answered Mar 06 '26 18:03

Adrien Arcuri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!