Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7580215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:51:39+00:00 2026-05-30T17:51:39+00:00

I am using NodeJS to send notifications to my clients using NowJS but the

  • 0

I am using NodeJS to send notifications to my clients using NowJS but the data that I need to send in the notifications has to come from my database.

Since I am using Django backend, I can make HTTP requests to my Node.js server and send the required data. But I need to be able to accept this data using Node.js. How can I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:51:40+00:00Added an answer on May 30, 2026 at 5:51 pm

    I’m a fan of using Connect/Express, so here’s a trivial example you could use:

    var express = require('express');
    var app = express.createServer();
    var nowjs = require("now");
    var everyone = nowjs.initialize(app);
    app.use(express.bodyParser()); //If you want nice JSON parsing
    
    app.post('/sendNotification', function(req, res){
      console.log(req.params) //Look at the POST params
      console.log(req.body) //Look at the POST body
    
      everyone.now.receiveMessage(req.body.dataYouCareAbout); 
    
      res.send('Notification Sent!');
    });
    

    You could then use that “sendNotification” endpoint to accept POST data and send it (or some piece of it, or anything really) down to NowJS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Maybe it's just the fact that I've been using http://nodejs.org/ lately, but the lack
I'm using ssh root to a VPS Ubuntu 10.04 server from Linode that has
I need to send a JSON string to a number of TCP clients from
I need to make a nodejs client application that can send a POST request
I am using the sample code from nodejs.org and trying to send the response
jqGrid tree nodes are read from server using json data. Click in node reads
I'm trying to send push notifications to an iPhone using Python. I've exported my
I'm doing a simple UDP send using Node's inbuilt datagram UDP socket : http://nodejs.org/docs/v0.3.1/api/dgram.html
I am trying to send a http request to a neo4j database using node.js.
I am using node.js with express. I read out data from MongoDB with Mongoose

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.