Questions tagged [seneca]

Seneca is a microservices toolkit for Node.js. It helps you write clean, organized code that you can scale and deploy at any time.

Seneca is a microservices toolkit for Node.js. It provides plugins that look after the foundations of your app. This leaves you free to focus on the real, business code. No need to worry about which database to use, how to structure your components, or how to manage dependencies. Just start coding.

You write everything as a command. Your commands get called whenever they match a set of properties. Your calling code doesn't know, or care, which command gets the work done. One JavaScript object goes in, and another comes out, asynchronously.

senecajs

50 questions
0
votes
0 answers

Nodejs not working with expand in OrientDB

var database = require('./../../models/index').database var GError = require('./../../helper/Gerror').G_Error var libMessage = require('./../../helper/constant') module.exports = function (input) { return…
Dinh Luong
  • 127
  • 3
  • 15
0
votes
2 answers

Unable to run seneca for rest microservices

I am having the following code in my executable Js after the necessary imports. seneca.ready(function(err){ seneca.act('role:web', {use:{ prefix: '/products', pin: {area:'product', action:'*'}, map: { list:{GET:true} …
Sumit Bisht
  • 1,507
  • 1
  • 16
  • 31
0
votes
1 answer

Query,url and body parameters not merged correctly in seneca with seneca-web

I'm in trouble with seneca and seneca-web. I'm a really a beginner. This is my code so far: "use strict"; var express = require('express'); var Web = require("seneca-web"); var bodyParser = require('body-parser') var plugin =…
0
votes
1 answer

what is the difference between seneca redis pubsub transport and seneca redis queue transport?

I'm learning on how to get data from redis using seneca js but seneca provides multiple plugins to connect to redis. and available plugins are the ones mentioned in the title. which should I use just to fetch a couple of keys from redis? and what is…
chip
  • 3,039
  • 5
  • 35
  • 59
-2
votes
1 answer

Please provide working example of seneca with express to expose REST apis

I have used this: var seneca = require('seneca')(); seneca.act('role:web',{use:{ prefix: '/cam', pin: {role:'api',type:'*'}, map:{ asset: {GET:true,POST:true} } }}); seneca.add({role: "api",type: "asset"}, function(args, done)…
Shobhit Srivastava
  • 501
  • 1
  • 6
  • 16
1 2 3
4