Integrating an operational transformation library with Meteor - javascript

When building apps with Meteor, its capabilities have really amazed me. However, to be able to drop in Etherpad-style collaborative editing bits into my app would really be a holy grail.
While looking up how to do this, I found some projects that seem to use OT libraries in meteor.
Projects using ot.js:
https://github.com/TeamCocoDojo/cocodojo (Demo at http://cocodojo.meteor.com)
Projects using ShareJS:
https://github.com/mad-eye/meteor-sharejs (Demo at http://madeye.io/)
I can't seem to tell how these projects integrate with Meteor. Are they actually using Meteor Collections? Do they just use the Node server that is hosting Meteor and do the OT as a separate component, not using Meteor at all? Is there a different OT library that integrates better with Meteor?
If anyone is familiar with these projects or has implemented OT as part of a Meteor app, please share your thoughts on the best way to approach this.
(This isn't a duplicate of Operational Transformation in Meteor.js? as that question is almost a year old and Meteor has moved a long way since then.)

I've started the process of integrating ShareJS with Meteor via a smart package:
https://github.com/mizzao/meteor-sharejs
Please try it out in your Meteor app, and submit new features!
Demo here:
http://documents.meteor.com

Related

Nativescript core OCR plugin

I'm trying to develop an ocr app with the Nativescript plugin:
https://market.nativescript.org/plugins/nativescript-ocr
https://github.com/EddyVerbruggen/nativescript-ocr
and it seems that the example doesn't works or I'm doing something wrong. I read something about Firebase ML kit but I have no idea about that and if it works offline (Offline work is a must for me).
https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/ML_KIT.md
Could be deprecated the first plugin?
might I use firebase?
could it use with nativescript core (only js)?
It works offline?
Any idea about how to start?
Yes, the OCR plugin is kind of deprecated, not actively maintained anymore.
Firebase ML-Kit is recommended and it has different methods you could use for text recognition, one works on device and another on cloud. Refer the same read me you have linked in your question.

How can I connect a Vue.js frontend with java backend?

I'm developing a project with a team in which we need to create a simple CRM. Some people recommended us Vue.js to create a great looking UI, but the problem is that with the team we mainly use java. So, we wanted to know if it's there a way in which we can connect a UI made with Vue.js with backend made in java. Any recommendations on how to do it? I've searched a bit and some articles say we can use java+tomcat to connect the Vue.js UI. We need to know if these kind of integration is possible before starting to spend time into making the UI in Vue.js if we can't connect it with our java backend.
Thanks.
I did an example of a project that integrates a java api (built with spring boot) and a vue.js frontend. It uses frontend-maven-plugin to build the frontend and copy it into the resources.
The source is in my github repo
Yes is possible, see this question
you will use your java application which is your "backend" as web service.

How to start a project using meteor.js and vue.js

I am new in meteor.js. I want to build a project using meteor.js and vue.js. but I can't find the proper way to manage files in meteor.js. So can anyone help me to find demo project or video link?
There are some scaffolding projects already on this.
This is a very nice and maintained set of packages for Meteor+Vue.
https://github.com/meteor-vue/vue-meteor
I recommend you starting with an already scaffolding example, so you can see how is it used Meteor Collections, Meteor Publications/Subscriptions, and Vuex (not necessarily for a small app, but as soon as you start to worry about a centralised App State manager, it is very helpful).
https://github.com/Akryum/meteor-vue2-example
I am experimenting with this nowadays, if you need any more help ping! Wishing some native integration of MeteorJS and VueJS soon.
cheers.

Adding api.ai chatbot to my Meteor.js chat application

I have a Meteor.js app similar to this one -> https://www.youtube.com/watch?v=66DH69e-wJ0&t=936s as my first Meteor.js app.
And I have created a API.ai chatbot.
And now I need some guildlines of what should I learn/read to achieve something like this:
I want a function to send user messages to the api and then posts
api's answer into the chat.
It's hard to answer your question if we don't know any details, but I would suggest to read carefully Meteor tutorial. Depending on frontend library you use:
Meteor tutorial for Blaze
Meteor tutorial for Angular
Meteor tutorial for React
If you would like to use other libraries the best place to start is the GitHub repository with Meteor integration for this library. For example Vue.
Secondly, you should read Meteor guide. You will find here tons of useful tips.
I took a quick look at the video you included and API.ai. I guess that you will need this node package. Also, take a closer look at Methods section in Meteor guide. You will need them to use API.ai package from your client side. When you work with third-party APIs you should also read about HTTP package.

Angular2 Template App

I am new to Angular2 client side development and i want to have a sort of a base project structure so i could go on from there.
I have found that you could create the structure using yeoman and angular2 generator but it seems that it builds on top of very early version 2.0.x.
Maybe there is an up-to-date generator?
I have also found some examples on github but all of them vary a bit from each other when it comes to structure and the content.
Regarding the site that i am developing, it would be a small company website with some static content, blog with comments, polls and an ability to sign-up / log in (i will be using Play as the backend). Nothing special so i guess a single module angular2 app would do.
Thanks in advance for the advice and tips on this one.
Angular-cli will help you out. and its up-to-date regularly. also it will help you in production deployment. and much more things goes on.
If you want configurable build processes, it's better to start with https://github.com/angular/quickstart else go for angular-cli https://github.com/angular/angular-cli

Categories