Getstream Support with Lumen - getstream-io

I'm trying to use getstream with Lumen and it seems like the laravel package they created is not compatible with Lumen. Is there anyone out here used getstream with Lumen?

I saw your GitHub issue about this as well. I'll be looking into our PHP support very soon, and have spoken to my colleagues here at Stream about ORM-level support. Since our Laravel client library hooks into Eloquent, it should be easy enough to reduce it to simple Eloquent support at the ORM level, allowing folks to use it in any framework or application using that ORM.

Related

How to build Restful API without using frontend javascript

I have been searching all over for a tutorial that could make a RESTFul API without using any frontend javascript to no avail. I am very new to Javascript/ web-development and have been doing many tutorials and mini projects to get myself acquainted with it.
This is a test for a job at a startup as they looking for an entry level developer. Their requirements are much different as they want me to use their in house build APIs.
What I am looking for is some help on how to get started building a RESTful API using node.js, express, Mongo and without using any frontend javascript. Thanks.
Recommendations for tutorials usually don't make good questions for Stack Overflow, but you might want to take a look at the following books. They helped me out quite a bit when getting started with Node:
Express Web Application Development
Advanced Express Web Application Development
RESTful Web API Design with Node.js
As others have commented, a REpresentational State Transfer API is implemented server-side. You could consume such an API from the client-side using JavaScript, but not build one on the client-side.
Express is a very popular web framework for Node, and you can certainly use it to build APIs, but you might also take a look at Restify. Hope that helps you out.

Node.js multi platform project structure

Its really confusing to setup the best project structure for node.js
I'm developing node.js application that works on Browser, Mobile and Desktop.
This application has many modules like billing, support, dashboard etc..
I started with express.js MVC pattern, later Sails.js looked very attractive.
Then came across MEAN Stack and finally landed on Microservices Seneca.js
Micro-Services looks like what i needed, But i see that Sails.js don't support it.
I wanted to use Aerospike NoSQL, but waterline orm doesn't support it right now.
So what is the project structure solution you are using for node.js that works in Browser, Mobile and Desktop?
This is an highly subjective question. But Meteor is what you are looking for. It does support desktop, browser, mobile, etc. and encourage NoSQL by it's native MongoDB support.
As a reference, I personally did try every single one of the frameworks you have tested (Sails, MEAN, etc.) and ended up with Meteor as my preferred.
As for the project structure, you can read more on various tutorials, books and YouTube videos. The learning curve is steep, but the community behind the project is quite alive and helpful.

How do you make a Hapi.JS plugin/module?

I'm new to both Node and Hapi.js, but not to programming.
I've made a few simple Hapi.js servers, just for testing out Joi and other plugins.
I'm now trying to understand how best to package up chunks of functionality in a Hapi way, so we can re-use them in future projects and potentially share them with the world!
Are there any good resources for learning this available?
EDIT:
I've found a few good resources, but non which go into deep details about the plugin system.
https://github.com/hapijs/hapi/issues/1489 - Getting Started Tutorial Contest
https://github.com/otodockal/hapi-tutorial - Entry in above contest, with a section on plugins
I've made a sample project which groups functionality into plugins which might be what you're looking for:
https://github.com/johnbrett/hapi-level-sample
If you're looking at sharing functionality between plugins, look at the usage of plugin.expose, plugin.depend.
If you have any questions on it, you can raise an issue on the github project.
The latest hapijs.com website has a good intro as well: http://hapijs.com/tutorials/plugins
For some additional detail about hapi plugins (and hapi in general), see the following:
Developing a hapi Edge: A Rich Node.JS Framework for Apps and Services - This book is available now (also from Amazon), and has a chapter on how to create a plugin in hapi.
Matt Harrison's upcoming hapi.js in Action - This book is available currently in "MEAP" (Manning Early Access Program), and will soon (?) have a chapter available on plugins ("Building modular applications with Plugins").
hapi plugin search engine
Getting Started with hapi.js by John Brett also has a chapter on creating and using plugins.
Edit 2015-10-04: The chapter "Building modular applications with Plugins" in Matt Harrison's above mentioned book is now available in the MEAP edition.

What backend can I use to setup breeze properly on a mac?

I would like to develop an AngularJS app with Breeze. I usually use NodeJS with Express but I hear it wont work with Breeze. All the example on breezejs.com use ASP.Net but i am on a mac and you can't run visual studio... What are my options ?
We are releasing a sample later today (in breeze v1.3.0) that shows Breeze talking to an arbitrary web service that could have been written on any platform using any technology.
Obviously, we need more of these examples and as importantly we need to show server side implementations of how one might write these web servivces to best leverage Breeze. But... this is all definitely on our roadmap, and we are actively looking for partners in this process.

SocketStream.js without client side how to?

I am interested in develop a rt module for my website with socketstream + node.js. I am only interested in do the server side in socketstream, not the client side. How can I access the socketstream from a normal php/html app, wich js i have to include ? I am mainly interested in rpc, pub/sub and authentication/session.
I would not recommend doing this, as it is unorthodox.
That said, I do recall that someone wanted to use an early version of SocketStream from within their application, which was built on the .net platform. It turned out that they got it to work by embedding the SocketStream app's web page inside of an iframe.
Check out to this framework:
http://www.socketstream.org/
Comes with a lot of examples and it's easy to use.

Resources