I know that firebase can be used with webrtc and I was easily able to go through creating a one to one video-audio calling webapp.
I'm Trying to Create a One to several peer broadcasting system,(like twitch) and when i tried to know how it can be done, i found this, its pretty old and i cant figure out how i can implement it with firebase.
If there are any npm packages which can help me achieve this or any guide I can refer to, it would be great if you could share them. I'm using ReactJS.
I haven't created a WebRTC + firebase one-to-many streaming application myself yet, but here are a few resources I'd look at if I was:
Coding with Chaim
Doug TV site walkthrough
awesome-webrtc repository has a lot of gems
Since you asked about other npm packages, there's also daily-js, but I'm biased. Full disclosure: I work at Daily. You could use the daily-js call object to handle some of the WebRTC complexity. We built a React + daily-js webinar, which could be similar to the one-to-many use case you're building (here's the first blog post and sample code).
Related
I am converting a vanilla project into react native and got stuck in this finding equivalent of navigator.bluetooth.requestdevice() in react native.
I have tried packages like https://github.com/innoveit/react-native-ble-manager but the problem is I have the code of that web project and finding this alternative can solve many tasks.
anyone who is trying to configure BLE in reacts native application but doesn't have a full idea about it let me give you a brief explanation as I was one of you.
There are not many packages out there with the maintained author so you have to rely on this https://github.com/innoveit/react-native-ble-manager package only or you have to get a response back from the natively build package by your self...
but not to worry because there aren't any major changes and its GitHub page is well-documented.
in my case, I was looking for a specific services id and Specific characteristic id to locate while looking for devices.. this package has serval events that can help you with it.. if you need detailed explanations please comment on this..
I am a newbie to Meteor JS so please pardon me if my question is sort of stupid. I've been struggling to find the right way to implement push notification on Android with Meteor JS. It seems like the options out there are surprisingly limited. I've looked into Raix Push, but unfortunately it didn't work for me.
I was wondering if anyone has found a way that still works today to successfully implement push notification on a Meteor JS application (whether through OneSignal SDK, Raix or something else)? If so, can you please be so kind to tell me what the method is, so at least I have a general direction to follow?
Thank you in advance!
I'm using Meteor on one of my bigger projects and have successfully implemented Push Notifications.
I used Raix/Push package combined with FCM (Firebase Cloud Messaging).
There are plenty options like you mentioned yourself but for me the mentioned one was the best.
RAIX/Push only does the sending of push messages to your cloude service (e.g. FCM) and does the token management. But you need to configure the FCM service yourself so it knows, who is a client, who do I send a push notification to..
When you build a APK with Meteor you will get an Android Project which is an Cordova Enviornment which runs your Meteor Application.
You need to follow the steps given in your FCM console (console.firebase.google.com) and bind in some custom data and manipulate gradle and xml files here and there. (You will find detailed explanations there).
edit
here you can see my old post explaining my own mistakes done with FCM/GCM and raix/push
meteor cordova app push notifications (FCM/GCM)
I'm trying to implement a OAuth2 appcelerator connector for Studio to connect to a wordpress (WP has installed plugins REST API, OAuth2 server). And appcelerator download this module https://github.com/JiriChara/titanium-oauth2-client, but it is a version of 2012 which certainly has flaws. Unfortunately I could not make them work together.
I want to ask the community (Since it is the first time I am developing this type of connection between an app and a website in wordpress), if they have any solution please.
Thank you very much
I think that since the oAuth protocol hasn't changed, you should still be able to use that library you linked to. I see that it hasn't been updated in a while - and maybe that's because there is nothing to update.
If you encounter specific problems using the library you can clone the source and try to fix (maybe even revive the project and push back to GIT).
Basically, oAuth is a set of HTTP calls - so you can write it on your own. But since a lot of the job was already made in that module I would try to get it working and push whatever fixes I can so others searching for the same thing can enjoy it as well.
Take a look at this repo. It is an Appcelerator Titanium widget that was written to work with Azure oAuth2 but it would only take slight modifications to make it work with other oAuth2 systems. I was successful doing this for a recent project.
https://github.com/grantges/co.grantges.azure.adal
The first is that they can update the code (include to require) . I also try to take this module, but does not work .
regards
I am asked to project a web solution to allow vote casting in public assemblies.
The solution shall be written with node.js on the server, and javascript, possibly using angular.js on the client (since javascript is the language I know best, today :-).
The app shall run on mobile devices, and will be quite simple: it shall handle some sort of authentication, to identify the owner of the device (the 'user'), and shall show a form with two buttons (Yes and No).
The button press shall be sent to a central server (on the LAN).
The server shall collect and store the votes from the users, and shall choose when to enable the buttons (voting session opened), and when to disable them (voting session closed).
Trying to be clearer, the app shall replace current devices, which look like this one:
It's not so clear from the picture, but the device has two buttons, one for "Yes" vote, and one for "No" (there are more buttons, but their use is irrilevant, here).
Initially the app will handle only the vote casting (not the audio).
I'm totally new to web realtime programming, so I'm in doubt about which software stack of libraries to adopt for the project.
Googling around, I see socket.io could be a good solution, but I prefer asking the community, to try to find the most suited solution for the job.
So the final question: do you know of any open-source project, tutorial, bolg post, anything I could study to start designing the app I tried to describe?
Any solution, observation, opinion, real-life experience would be welcome, too...
I would also look at PubNub, which is a realtime global data stream network--here's a good voting app tutorial to get started: https://www.pubnub.com/blog/2014-11-18-power-a-realtime-voting-app-with-live-results-using-d3js/
There's great developer resources to get your started, for help, and lots of add-ons, like presence, history, and realtime charts, like EON: https://www.pubnub.com/developers/eon/
Socket.io is used essentially when you need something in realtime. The tradition RESTful APIs are a better/proven method.
To get started I would suggest reading up on the MEAN stack (also allows you to use the MongoDB database), A couple of tutorials should be a good starting point :
https://scotch.io/tutorials/setting-up-a-mean-stack-single-page-application
https://thinkster.io/mean-stack-tutorial
https://www.npmjs.com/package/slush-meanjs is a good resource to scaffold out your project. Slush is a generator that uses GULP as compared to yeoman generators which are only just beginning to implement gulp as its task-runner (currently uses grunt as the default task runner). Yeoman still doesnt have a great generator for the MEAN stack. If however you plan to exclude the database a good starting point would be to just use express on the backend and angularjs as the front end. To do this you can scaffold out a express project using generator-express (https://github.com/petecoop/generator-express) and once express is setup you can add angular to it using https://github.com/yeoman/generator-angular.
The directory would look something like this :
-app
---*client side libs*
-bin
--- www /* npm start to start the server */
-routes/ /* for all your express routing */
-test/
...
-app.js
...
For authentication you could use the scaffolded out CRUD model. If using socket.io for all the client server communication this is a good resource -
https://auth0.com/blog/2014/01/15/auth-with-socket-io/
Is there a Javascript implementation of Git?
I'm wanting to use HTML5 to create a rich Javascript application and have the idea that I could use git to track changes to the data. So, I'm wondering if there is a javascript implementation of a git client, or maybe some way of controlling a git repository by making POST requests.
Check out: https://github.com/danlucraft/git.js
A pure js implementation of git in javascript.
This https://github.com/creationix/js-git is and will be the future!
It is backed by a kickstarter campaign and has a very sound software design.
Many of the client use-cases such as git clone have been implemented
According the answer to my question on the issue tracker [1]. The author also plans to implement parts of the server side stuff to allow you to build a server with it.
https://github.com/creationix/js-git/issues/33
You can use https://github.com/isomorphic-git/isomorphic-git
isomorphic-git is a pure JavaScript reimplementation of git that works in both Node.js and browser JavaScript environments. It can read and write to git repositories, fetch from and push to git remotes (such as GitHub), all without any native C++ module
isomorphic-git is a continuation of https://github.com/creationix/js-git
isomorphic-git would not have been possible without the pioneering work by
#creationix and #chrisdickinson. Git is a tricky binary mess, and without
their examples (and their modules!) I would not have been able to come even
close to finishing this. They are geniuses ahead of their time.
Related questions:
Run git push from javascript hosted in static site
How to implement Git in pure Javascript to create a GUI?
I guess it depends on what you need, but there's a few related projects out there.
The most "robust" implementation I can think of is this one by the 280North crew (of Cappuccino fame).
There's also some server-side JavaScript projects underway (e.g., http://github.com/ajaxorg/node-github), but that won't run entirely within a browser client.
Update (for anyone else who comes across this):
Please be sure to check out vanthome's answer. Tim Caswell's js-git project is well funded and undoubtedly the best answer here at this time.
I just recently wrote a Git client called Nougit. Maybe this resembles something you are looking for?
$ npm install nougit
https://github.com/gordonwritescode/nougit
This is a full GUI, but the module inside named "git.js" is an API I wrote specifically to do what you are describing. Yank out the file, and you can use express to handle the http routes.