Thursday 31 August 2017

Best rapid app prototyping tools

Looking for recommendations, thanks in advance. A little bit of background: I have 10+ years of full stack web experience. I know how to build real world apps the right way. But I have moved out of development, yet am still in a role where I find myself regularly needing to build FUNCTIONAL applications. I don't have the time nor the need to experiment, learn new frameworks, build things the right way, etc. I just need to crank things out that work and look halfway decent.Things that are important to me:Full stack scaffolding (front end/API/database)AuthenticationConsistency of framework (I don't want to learn a new framework or templating engine just to add some feature or function)Extensibility- I want simple boilerplate, but to be able to customize if neededSimple learning curve. I don't have time to read a novels worth of documentation, or watch hours of tutorial videosmodeling data relationships (one to many, many to many, etc)What isn't important:ScalabilityUsing the hottest new frameworkPretty UI designsUnit/integration/etc testingAdvanced security (Don't get me wrong, I want it to be secure, but my users will be trusted and I won't have super sensitive data. I don't want security to be a hinderance)The ability to plug and play 1000 different frameworks (I'd prefer opinionated over flexible)In an ideal world I would be defining a schema (preferably via UI, but that's not a must) and the front end, API, and database would be scaffolded out. I've tried swaggerui in the past and it's ok, but I've found it to be a lot of work to build the definition.I have no idea if this exists but I figured it would be worth asking.

Submitted September 01, 2017 at 01:22AM by ldhertert

async_hooks in node.js, illustrated

http://ift.tt/2vMpk0p

Submitted August 31, 2017 at 03:53PM by ratancs

The Complete JavaScript - Build a Real-World Project

http://ift.tt/2esknaz

Submitted August 31, 2017 at 04:13PM by myceleb

Gue 0.9.1 a build system/task runner with smart watching [xpost /r/npm]

http://ift.tt/2xP1G4Q

Submitted August 31, 2017 at 03:26PM by skarfacegc

Interview with Ryan Dahl, Creator of Node.js on his life and current work

http://ift.tt/2elJkRm

Submitted August 31, 2017 at 03:00PM by pramodhs

Run remote JavaScript code as if it's your own local library!

http://ift.tt/2iKNlUf

Submitted August 31, 2017 at 02:53PM by meirwah

Currently Considering koa.js and total.js

I've been looking at a few node.js/express.js frameworks, and I started out liking feathers.js, but then I saw koa.js, and then I saw total.js, and there's still sails.js and others. I'm leaning towards koa.js for two reasons: 1) built by express.js authors, and 2) modern JS (async/await).What do y'all think about getting started with these frameworks?

Submitted August 31, 2017 at 06:58AM by cklester

Wednesday 30 August 2017

New nodejs library

http://ift.tt/2iK3rxD

Submitted August 31, 2017 at 05:42AM by exejutable

"The Node Foundation is perceived as condoning such behavior, despite the adoption of a moral code that explicitly condemns it."

Link to PR CommentLadies and gentlemen, I urge you to keep your comments civil within this thread. The last thing I want to do is stir up more frustration, but this comment is too eloquent not to share.Please consider re-Tweeting - https://twitter.com/tkambler/status/903082375311183873I share the concerns of @ktrott and do not believe that I could state it more eloquently than the prior comments. Members of the Node Foundation, when identified as such, are seen as leaders and representatives of a community whether you like it or not.To expand further on this, it should be noted that the choice to personally associate with Node outside of any official Node channels is entirely voluntary, just as is the choice to contribute to Node in the first place. There is a positive benefit provided by making public such an association. It adds clout to your name within sectors of the development community, is seen as a badge of honor for some, and even has the potential to open up new opportunities that wouldn't otherwise be offered.However, you can't have your cake and eat it too by assuming that you can benefit from a public association without also accepting the inherent risks of your choice.Additionally, as the events of this past week have highlighted, such public associations are a two-way street. It seems that not many are considering how this reflects on the Node Foundation as a whole. By ignoring behavior in public channels, the Node Foundation is perceived as condoning such behavior, despite the adoption of a moral code that explicitly condemns it. In that light, this PR, as @jakeNiemiec noted above, only exacerbates the current situation as it changes the perception of condoning to confirmation of condoning by at least some members of the Node Foundation.To be frank, the PR, whether it's landed in the proposed language or not, has already caused further damage to the situation. It is likely to further increase the wedge between those who agree and those who disagree with the manner in which the Code of Conduct has been enforced, and/or the statements of individuals that have brought the Node Foundation's actions into the spotlight.With all that said, I offer the following suggestion...Own the code. A shallow or limited enforcement of the adopted Code of Conduct only hollows out the morality of the document itself. If the Code was written to promote inclusion, then the enforcement of such Code should not be exclusionary. The Foundation should not be prevented from weighing an individual's actions just because they were made within an excluded channel.Much like tax law, no matter your intentions, further clarifications and exemptions in this case are more likely to create loopholes for harassment and discrimination, as well as avenues for Node Foundation's inaction.I personally wish that every member of the Node Foundation shared and promoted the spirit of nodejs/community-committee#119, whether explicitly adopted or not.

Submitted August 31, 2017 at 03:36AM by sotimting

Possible to create a IDE

I am wondering if it is possible to create a web-based IDE with node.js V8.4.0? If so would anyone know how or where to look to learn how?

Submitted August 31, 2017 at 12:44AM by business_for_life

How are Promises in nodejs? Should we still use external libraries?

I'm fairly new to nodejs. and am wondering about its Promise implementation.Articles from just a few years ago would recommend using an external library for Promises, such as bluebird. Is this advice still true today?

Submitted August 30, 2017 at 11:54PM by MonkeyOnARock1

student choosing possible career path, was excited for and studying node.js, but now having second thoughts

I am at an early stage in my career, so can still change and choose my paths. I am male and feel concerned about the recent drama and many of the statements coming from those involved higher up in the policy making community to the point where I have lost a lot of my excitement for taking the node.js MEAN stack route and starting to question my choices.For those of you that are contemplating leaving this project behind and going a different direction, what would you recommend? Should I just apply all my energies into LAMP and being the very best I can be in that environment? Should I just relax and wait for the storm to blow over and hope things go back to where the coding matters more than the politics, or is it a lost cause? Kind of feeling pretty depressed about the recent events, I was excited about the code and setting up my server and playing with Angular and node.js and learning, but now that this recent political stuff oozed out of the woodwork I am feeling pretty discouraged.I have electives I can still choose and change for this fall in school and was already enrolled in MEAN courses but now that is all up in the air in my mind, and it is not too late for me to transfer and take more advanced SQL and PHP or even Java or C# or something instead of node.js etc....I am totally confused and stressed out at the moment, forgive my post if my questions aren't anything anyone but myself can answer.

Submitted August 30, 2017 at 11:40PM by pikachani

What database to use for a social graph?

http://ift.tt/2wXzK1u

Submitted August 30, 2017 at 10:31PM by artost

5+ Ways to Persist Data in Node.js/Electron Apps

http://ift.tt/2xNyV8o

Submitted August 30, 2017 at 09:05PM by ahnerd

Concurrent JavaScript: It can work!

http://ift.tt/2iJQdR9

Submitted August 30, 2017 at 07:02PM by ratancs

Problem with node app on server.

events.js:160 throw er; // Unhandled 'error' event ^Error: Can't set headers after they are sent. at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:357:11) at ServerResponse.header (/opt/bitnami/apps/giftshop/node_modules/express/lib/response.js:730:10) at ServerResponse.json (/opt/bitnami/apps/giftshop/node_modules/express/lib/response.js:253:10) at /opt/bitnami/apps/giftshop/app/routes.js:11:13 at /opt/bitnami/apps/giftshop/node_modules/mongoose/lib/model.js:3822:16 at /opt/bitnami/apps/giftshop/node_modules/kareem/index.js:213:48 at /opt/bitnami/apps/giftshop/node_modules/kareem/index.js:131:16 at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickCallback (internal/process/next_tick.js:104:9)I'm trying to run an angular app on a mean stack and if I run it locally, it works fine I've deployed it to a server using this guide http://ift.tt/1J3WGas I'm getting the above error - the page loads but breaks at the same timeI'm kind of lost as to how to debug this - can someone point me in the right direction?

Submitted August 30, 2017 at 05:14PM by goingtoriseup

Is using req.ip good enough for tracking unique users?

I'm building a web application right now with express on the backend and I am trying to track users to know if they've posted something previously. Right now I am storing ever IP using req.ip to check and see if the user is unique or not. Is this a good method for tracking unique users, and are there other better ways?

Submitted August 30, 2017 at 05:54PM by tommy16p

RisingStack's Node Bootcamp Open-sourced

http://ift.tt/2wourpp

Submitted August 30, 2017 at 04:47PM by hfeeri

E2E testing React/Node.jS application with Cypress.iO and Docker

http://ift.tt/2ipzfrl

Submitted August 30, 2017 at 03:05PM by dmitry-budko

Coming from ASP.NET to node.js. What to look out for as an OOP guy?

Hello everyone,After working as a full stack developer for a company that is working primarily with MS SQL and .NET I'd like to learn some new technology. Node.js always had my attention so I think is time to spend some time and dive into it.I worked in quite a few big web apps built in ASP.NET and I can say I'm fairly experienced with C#, ASP.NET and OOP. I learned to work with abstracts, interfaces, extensions, dependency injections, repositories, services etc.So, my question is, what should I look out for with node.js and functional programming? What of the things I know from OOP programming is applicable to node.js and functional programming and what are the equivalents?

Submitted August 30, 2017 at 02:36PM by YFCBanana

Hi, people im 12 years of age. Can you guys show me a little love. I want to aim for 50 subs. i have 40 at the moment. Thanks a lot

My youtube chanel https://www.youtube.com/channel/UCxOe5Hb-nt1OeX3OEEe0x-wMany many thanks guyss

Submitted August 30, 2017 at 02:04PM by RealK1

cacheable-request: Wrap native HTTP requests with RFC compliant cache support

http://ift.tt/2tby4gv

Submitted August 30, 2017 at 01:41PM by dyslexiccoder

How do I set up my own database on an nodejs only server?

I have a server on https://zeit.co. They only support nodejs. How can I put a database on there so I won't have to use an extern one? Can I do this even with nodejs?

Submitted August 30, 2017 at 09:16AM by badass_toast

Tuesday 29 August 2017

My web game running on a Node server is using 100% CPU most of the time

What can I do fix this problem? I have used v8-profiler to profile my game. It turns out most operations are done on timers.js. Is it because I use setInterval and setImmediate very often in my code?

Submitted August 30, 2017 at 05:18AM by caymanbruce

Node.js CTC and TSC have been merged back together

http://ift.tt/2gf2Bbb

Submitted August 29, 2017 at 11:20PM by akrash14

Why isn't my feed aggregator working?

I just started getting serious with NodeJS and as a learning project I am writing an app that combines RSS feeds into one aggregated feed.Problem is I'm having an issue with the asynchronous nature of returning the data and would appreciate a fresh pair of eyes on the matter.Here's the code in question:/* jshint esversion: 6 / / /dataMiner/dataMiner.js */(function () { 'use strict'; const //Node modules rssp = require('rss-parser'); const //Module methods dataMiner = { getData: function (res, feeds) { let data = []; feeds.forEach(function (feed) { rssp.parseURL(feed.uri, (err, parsed) => { if (err) { console.log(`There was an error with the feed: ${err}`); } let items = []; if (feed.itemLimit) { items = parsed.feed.entries.slice(0, feed.itemLimit); } else { items = parsed.feed.entries; } items.forEach((item) => { data.push({ provider: { name: feed.name, link: feed.uri }, title: item.title, date: item.isoDate, link: item.link }); }); }); }); console.log(data); res.json(data); } }; module.exports = dataMiner; }()); It works great if I only have one feed and I can put the res.json(data) inside the rssp() function, but when I pull that out so I can push multiple items from all the submitted feeds into one array I get an empty array, undoubtedly because the data variable is returned before anything is pushed to it.Any suggestions would be extremely helpful.Thanks!

Submitted August 29, 2017 at 10:52PM by recursiveCycle

What does the underscore in from of a property mean in NodeJS?

http://ift.tt/2xw7ikX

Submitted August 29, 2017 at 10:17PM by HiddenLampPanda

New version of the Express API versioning library (1.3.0) supports Accept header and custom function parsing

New version of the Express API versioning library updated to support parsing the requested version from HTTP's Accept header so it is part of the content negotiation per the RFC. It also supports a function callback that implements a custom parsing mechanism.Welcome to review the 2 libraries that complement each other to provide this functionality: http://ift.tt/2vHmx8K and http://ift.tt/2rPdl1k And

Submitted August 29, 2017 at 09:47PM by lirantal

Collection of cool/useful ES6 Modules. Review, contribute, star, criticize...

http://ift.tt/2vpoA5O

Submitted August 29, 2017 at 07:33PM by snovakovic

Drawing JavaScript logo with JavaScript itself

https://twitter.com/denysdovhan/status/902496507420659712

Submitted August 29, 2017 at 06:35PM by denysdovhan

Building a Basic Todo List REST API in Node.js with Express

http://ift.tt/2vowX1J

Submitted August 29, 2017 at 01:57PM by stickybyte

Turn any callback into promise with babel-plugin-promise

http://ift.tt/2wGaHQI

Submitted August 29, 2017 at 01:50PM by vaheqelyan

Story sharing how one company integrates security testing as part of its CI for Node.js dependencies

http://ift.tt/2wOZEoO

Submitted August 29, 2017 at 01:45PM by lirantal

Load balancing node app sever with docker?

I guess this might be better in /r/docker.I have a node app server that uses the cluster module, each worker shares the same port. I want to dockerize the app, so I'm going to remove the forking part of the app and instead want to load balance the app over multiple docker instances sharing the same port. Could anyone give me some pointers here, couldn't really find much on Google. Fairly new to docker.Thanks.

Submitted August 29, 2017 at 01:19PM by user961234

Node.fz: A modified node.js runtime built for the purpose of exposing concurrency bugs

http://ift.tt/2s2skHM

Submitted August 29, 2017 at 12:50PM by fagnerbrack

Just published my first NPM package, it’s a little function to cut a string to a given length in characters. Criticism welcome.

Will add GitHub when I get back from Costa. http://ift.tt/2wFiIoR

Submitted August 29, 2017 at 11:47AM by OzziePeck

Preferred method for sharing a database connection across files

Hi, relatively new to webdev so excuse any ignorance.I've been researching ways of sharing my db connection across multiple route controllers, all in different files. I'm using Express and SQLite.From what I can see there are 2 main approaches, either making a db file, connecting there and then passing the connection around by requiring that file or storing the connection in app.local.Is there a preferred method between those 2 or any pros/cons I should be aware of? I won't be using clusters or connection pooling, the app will always see very low traffic. Is there any other methods or anything I should know?Thanks guys.

Submitted August 29, 2017 at 10:50AM by weiry6922

Monday 28 August 2017

Framework for building websites (express,handlebars, mysql)

http://ift.tt/2wYfOLM

Submitted August 28, 2017 at 11:54PM by simonsmadsen

Searching for contributions to js-web-framework

http://ift.tt/2wY64kO

Submitted August 28, 2017 at 11:43PM by simonsmadsen

Stupid module of the day, use `await` without `async`

http://ift.tt/2iE0tus

Submitted August 29, 2017 at 12:29AM by ecares

CoC violation reported about Kat Marchán

I submitted the message below just now to abuse@npmjs.com. I don't know if this is the proper place to publicize it (as it is npm, not node.js), but I feel the divisiveness being introduced to the node.js and npm communities is extremely toxic and will only serve to drive away contributors. I, for one, am forced to call into question the viability of a company (npm) and a community (node.js) that allows its employees and members, respectively, to display such unprofessional and abusive conduct.This is the report:From the npm CoC:This policy covers the usage of the npm registry, as well as the npm website, npm related events, and any other services offered by or on behalf of npm, Inc. (collectively, the "Service"). It also applies to behavior in the context of the npm Open Source project communities, including but not limited to public GitHub repositories, IRC channels, social media, mailing lists, and public events.Any spamming, trolling, flaming, baiting, or other attention-stealing behavior is not welcome, and will not be tolerated.Harassing other users of the Service is never tolerated, whether via public or private media.Avoid using offensive or harassing package names, nicknames, or other identifiers that might detract from a friendly, safe, and welcoming environment for all.Harassment includes, but is not limited to: harmful or prejudicial verbal or written comments related to gender identity, sexual orientation, ability, ethnicity, religion, age, physical appearance, body size, race, or similar personal characteristics; inappropriate use of nudity, sexual images, and/or sexually explicit language in public spaces; threats of physical or non-physical harm; deliberate intimidation, stalking or following; harassing photography or recording; sustained disruption of talks or other events; inappropriate physical contact; and unwelcome sexual attention.I believe the following to be blatant violations of the above CoC (and extremely unprofessional). For the sake of inclusivity in the npm and node.js community, I urge that action be taken so that this does not become the norm:http://ift.tt/2vyMEzu (sexually explicit insults)http://ift.tt/2wErhAB (as a man I take offense to this and would feel reluctant to participate in a community with this person)The comments she has made as of late appear to me to be incredibly divisive and unprofessional. As a technology decision-maker, I am now forced to re-evalute npm vs the alternatives in the search for a product that promises long-term stability.Thank you for understanding,Vikram

Submitted August 28, 2017 at 11:15PM by VikramParalkahar

Show /r/node: node.js bot that invests bitcoin

http://ift.tt/2wbIOiv

Submitted August 28, 2017 at 10:12PM by hidiegomariani

In node projects, how often do frontend web devs work on backend and vice versa?

One common selling point for node is how you can share code between both backend and frontend. What I'm wondering is how often do devs work on both?I've noticed in most cross platform projects is people not crossing platform or language boundaries. In a mobile project the C++ guy will work on the C++ part and the java / swift guys will work on their parts. They often don't go into the other platform because they don't know how it works and it's often faster to just ask the C++ guy to do his part.I've also heard that code sharing doesn't happen that much in practice between backend and frontend in node projects, how true is that?

Submitted August 28, 2017 at 09:26PM by whats94842

Y'all are literally the sketchy, sweaty nerds that make us want to vomit.

Screenshot:http://ift.tt/2glgKDM message was brought to you by @maybekatz, the developer behind npm's CLI utility.Consider re-tweeting:https://twitter.com/tkambler/status/902272364158832641More:"The only thing they seem to know how to do is complain, masturbate about upvotes and karma, and be creepy stalkers when women are involved" - https://twitter.com/maybekatz/status/902261844043227136"reminder to reddit manbabies that they are kinda pathetic, irrelevant, boring, creepy nerds who'll never amount to anything 😘" - https://twitter.com/maybekatz/status/902261555588247552"I like how sad reddit boys assume that because -they- are losers with no future wasting their lives on a shitty site... others are too? lol" - https://twitter.com/maybekatz/status/902261555588247552

Submitted August 28, 2017 at 09:47PM by sotimting

Injeção de Serviços em Middlewares HTTP no Node.js – CODECASTS

http://ift.tt/2wDnHqk

Submitted August 28, 2017 at 03:36PM by vinicius73

Node.js Performance Monitoring - Part 2: Monitoring the Metrics

http://ift.tt/2xr8N3W

Submitted August 28, 2017 at 03:41PM by _bit

[Newbie Question] Deploying nodejs apps like Next.js

I'm new to Node and I'm trying to figure out how node based apps are normally deployed. Specifically Next.js.From the tutorials and googling I've done it seems like you upload a server.js file, run node server.js, then run something like pm2 to ensure it continues running. This is great for writing hello world, but I feel like the frameworks and applications I've come across get deployed in much different ways than that.For example Next.js lets you run a build script which then compiles to a dist folder. I can upload the contents of this folder, but theres no clear file to start the app from. No root files seem to be the equivalent of the server.js I've seen in tutorials.The only logical assumption that I can come to is you treat deployment similar to you treat development. That your package.json file should have a start script specifically for production. So you upload your entire repo, run an npm install to get the node_modules folder on your server, then run an npm start command with the proper port. I feel like I'm missing something here or over complicating it.Can anyone point me in the right direction?

Submitted August 28, 2017 at 05:06PM by burgerlove

Find base64 string in a text file?

Hello,Is there a reliable way to find base64 string in a text file?Thanks!

Submitted August 28, 2017 at 06:09PM by iFarmGolems

So long jekyll, hello nextein. Migrating a blog into 100% Javascript.

http://ift.tt/2wMqYDZ

Submitted August 28, 2017 at 03:58PM by elmasse

Can we spread some of that toxic shit from node.js foundation over to react as well?

I hate react and want it to die.

Submitted August 28, 2017 at 02:14PM by shad0proxy

Serverless – edX Engineering

http://ift.tt/2vwbNuA

Submitted August 28, 2017 at 01:20PM by ccb621

Multiple CoC violations by Node.js board member Ashley Williams

Ashley Williams from the Node.js board has been reported for expressing dozens of sexist and racist over the last few years. Below is the full code of conduct report. All information contained within was already public. Updates on the process will be posted here.Hi report@nodejs.orgcc Jim Zemlin and Mike Dolan from the Linux FoundationI wish to formally file a series of Code of Conduct (CoC) violations by Ashley Williams (ag_dubs on twitter) who currently holds a position on the Node.js foundation's Board of Directors underneath the Linux Foundation umbrella. Given the evidence I'll present below, it is clear this individual has violated the CoC on multiple occasions in public forum and appears to harbor racist and sexist views and beliefs making her unfit for participation in the Node.js Foundation's projects, let alone leadership positions. This behavior has been observed since the conception of the Node.js foundation and it is unfortunate it has been allowed to persist for so long.Additionally, it is likely Ashley will be participating in an override vote on August 28, 2017 regarding the complaints filed against Rod Vagg despite clearly being involved in their orchestration, and has been a vocal member and rallying point of the twitter mobs with little to no evidence of wrongdoing. With the combination of the Code of Conduct violations and her active hand in creating the now highly publicized controversy, I would suggest the existence of a conflict of interest, which should prevent her participation in the override vote. I also believe she will not abscond from voting when made aware of these issues, essentially making her a malicious actor towards the foundation and the its governance process.An excerpt from the Node.js Code of Conduct:In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.Below are tweets which constitute a violation of the CoC:"never underestimate the wrath of a mildly inconvenienced white dude (and yes it is all dudes complaining)"http://ift.tt/2wL6wDD - hateful speech towards 'white dudes' (promoting sex based prejudice and stereotypes)omg last RT. when they have the audacity to ask you to apologize. FUCK YOU MEN FUCK YOU I'M NOT SORRYhttps://archive.is/gmzrP - stereotypes and sex based prejudice towards menthe white rich tech dude version of "thoughts and prayers" quoting "My fondest wish for the many communists of Twitter is that you get to live under the system you espouse"http://ift.tt/2wL1ruY - promoting stereotypes and sex and race based prejudice. Openly supporting divisive and bigoted radical politics which do not facilitate diverse and welcoming environments where dialectic can happen.remember how you thought that white dudes conflating their opportunity with merit in tech was awful? literally the same thing in capitalismhttps://archive.is/kmYdS - promoting sex and race based prejudice and stereotypes and highly polarizing socio-political viewpoints"I lol'd" in response to a photo of a "soft white" light bulbhttps://web.archive.org/web/20170516234032/https:/twitter.com/ag_dubs/status/769315029804089345?lang=en Promoting dog whistle innuendo of harmful sex and race based stereotypes and prejudice"Kill all men"https://web.archive.org/web/20160807212533/https:/twitter.com/ag_dubs/status/761962956431187968 - Promoting violence (homicide) towards men."dat crock just slut shamed the web"https://web.archive.org/web/20170516214104/https:/twitter.com/ag_dubs/status/666026590774673408 - Participating in other smear campaigns with questionable grounds towards high profile community members that don't align ideologically."depending on who you are, sexism or misandry"https://web.archive.org/web/20151116102717/https:/twitter.com/ag_dubs/status/658374168283631616 - (See thread) Openly bragging about antagonizing people, 'hating', and joking about misandry."OH: chill all men"https://web.archive.org/web/20151116102859/https:/twitter.com/ag_dubs/status/629371600194916353 - Sex based prejudice and stereotypes indicating all men are no chill."@jessicard @tkellen … when i told all of @bocoup to buy misandry shirts lol"https://web.archive.org/web/20151116102839/https:/twitter.com/ag_dubs/status/520628625956417536 - Promoting the purchase of 'misandry' shirts. Ashley has publicly bragged about owning the 'misandry' npm package. http://ift.tt/2wLwXch"i get mad almost every day about how we sterilize male animals in the wild, but insist that human women take birth control not human men"http://ift.tt/2xFIuXf - A juvenile/nefarious fantasy of forced sterilization of an identity group, a belief commonly held by racists: http://ift.tt/2whAxI6 fact, if you were a white dude and you wanted to talk at the conference, your chances were basically nil.”https://youtu.be/H6cxY5zhFIA?t=1221 - Bragging and laughing about intentional race and sex discrimination practices at npm camp that she was responsible for organizing.Ashley was instrumental to the publicity around the Rod Vagg vote and generating controversy:"there are a lot of good takes re this tweet, but i have one that's a bit more personal."http://archive.is/OCc1D - (see thread) A tweet dated July 19, 2017 responding to Rod's tweet linking to an article about the issues surrounding CoCs."i've been pushing on these issues for a long time. i'm sorry it took what it did to get things moving in the right direction."http://archive.is/DrEYm - (see thread) Admission of animosity towards Rod much longer than the exaggerated evidence has."i am tired of and angry with @nodejs leadership. inclusive spaces are within your reach. at this point, it is clear you dont want them."http://ift.tt/2xFgy5R - (see thread) Targeted harassment and stirring up the twitter mobs. This statement is outright malicious towards the governance of the Node.js foundation and serves to undermine it. It also happens to be totally unfounded as the foundation has done far more than most projects to increase access, inclusion and transparency."60% of the current @nodejs TSC voted to keep a known hostile on the TSC"http://ift.tt/2wL27k7 - This is a personal attack and unfounded/unproven smear. The evidence of CoC violations perpetrated by Rodd are weak, opaque and misleading at best. A board member publicly smearing someone involved in an issue that hasn't been resolve is absolutely intolerable."for the record: i want a community where everyone is held accountable to the same standard. that includes me."http://ift.tt/2wBJaji ought to heed Ashley's wishes and apply the rules defined in the CoC against her own actions as evenly as every other member of the foundation and community. Ashley shouldn't be allowed participation in any upcoming votes or governing decisions until these issues are dealt with and should be immediately ejected from leadership for repeated failure to fulfill her fiduciary responsibility to the foundation and inability to adhere to CoC rules that she advocated for.I want the best for the longterm success of the Node.js foundation, and that can't happen when you have members and leadership actively sabotaging it for extreme ideological motivations. Stop letting these people perpetuate lies! Start telling the truth! Do the right thing. I expect the Node Foundation board to explicitly answer to these issues.Your's truly, Ralph Wiggum(Unfortunately, this is submitted anonymously due to the risk of becoming the target of dishonest slander, mis-characterization and harassment when trying to have a dialectic about difficult and nuanced issues in the Node.js community. This will be posted publicly to the Node Reddit in order to collect sentiment feedback from the wider Node.js community, and to provide transparency to the foundation's CoC enforcement process).

Submitted August 28, 2017 at 07:57AM by node_in_peace

Saturday 26 August 2017

Authentication with node application

How do people authenticate users? What third party service do they use? I will be using passport google oauth20 and facebook, but I also want to implement email authentication too, but it seems like passport doesn't have email authentication... (If i am wrong please correct me). I am open to any advice!

Submitted August 26, 2017 at 08:26PM by IIIIIlllllIIIIIll

occasionally get EADDRINUSE on restart

Hi,as the title states, sometimes when i ctrl+c my node server, and try to restart it, it will not restart because the addess is apparently already in use, eventhough i even added a little delay before it restarts. Waiting even longer in that case, and trying it again usually does the try. Does anyone possible know what this could be caused by? Couldnt find anything on the net except for "well, something is using that port, so kill it", but that isnt the case for me, i guess?Ty!

Submitted August 26, 2017 at 05:55PM by kinsi55

API Authentication with Node | #8 - Bcrypt Explained

https://www.youtube.com/watch?v=Peww_cdgka4

Submitted August 26, 2017 at 06:04PM by eXtremeRR

Searching for a UK based NodeJS Developer to work with Bitcoin project

HelloWe are on the lookout for an individual with a strong interest in Bitcoin plus excellent security skills. Previous experience with Blockchain is desirable. Work with our multinational team building beautiful tools used by financial institutions.The opening is contract based and a Senior position with salary up to £60/phPlease send me a PM if you think you can help for more information. London / Exeter (UK) based startup.Thanks for reading

Submitted August 26, 2017 at 01:10PM by Semgers

NodeJS and GraphicsMagick: Cropping and resizing images on your server (guide/tutorial)

http://ift.tt/2g9WfJW

Submitted August 26, 2017 at 11:33AM by campvanilla

Build a simple Telegram Bot with Node.js

http://ift.tt/2w5eZQy

Submitted August 26, 2017 at 09:24AM by poeti8

Node.js beginner, question about MySQL + HTTP

So I'm following this tutorial at http://ift.tt/1BZEETG. I understood how to connect to DB and get results. Now I want to show the result through a browser. This is what I got:var mysql = require('mysql'); var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); var con = mysql.createConnection({ host: "localhost", user: "xxxxxx", password: "xxxxxx", database: "xxxxxx" }); con.connect(function(err) { if (err) { console.log("Error on connect"); throw err; } console.log("Connected!"); var sql = "SELECT * FROM test"; con.query(sql, function (err, result, fields) { if (err) { console.log("Error on query"); throw err; } for(var i = 0; i < result.length; ++i) { var row = result[i]; var id = row.id; var name = row.name; var address = row.address; res.write("id: " + id + ", name: " + name + ", address: " + address + "
"); } res.end("End"); }); }); }).listen(8080); My question is about con.query(). I've observed that this is an async call because if I place res.end() after that block, it causes a "write after end" error. If this is the case, how do you perform multiple queries then?

Submitted August 26, 2017 at 08:52AM by davenirline

Friday 25 August 2017

Code in any platform - an OSS code editor which runs inside your browser

http://ift.tt/2wwiyjX

Submitted August 26, 2017 at 05:16AM by fredamsouza

Node.js while using Apache Tomcat + Oracle!

Hello all, I am currently working for a company running Java, Struts, Hibernate connecting to a large Oracle DB. I have been tasked to gradually update our web apps and considering node.js. My question is: can I connect to Oracle through node.js and while Tomcat server is also serving out JSP? (basically using the same computer as a server for both) Apache tomcat for the live site, and node.js for testing.My experience is very limited in both areas. I have been out of web dev for about 10 years, and come from a cold fusion/html/css background. So I'm in for a real treat.

Submitted August 26, 2017 at 01:26AM by fazulk

Should I about this TCT issue?

Should I care about this TSC/CTC issue? Will it just blow over and everything will go back to normal or will there be some changes?

Submitted August 26, 2017 at 02:29AM by Greg862

After governance breakdown, Node.js leaders fight for its survival

http://ift.tt/2w5oKy1

Submitted August 25, 2017 at 11:19PM by steveklabnik1

Heroku app keeps on trying to connect to local server when I want it to connect it to a mLab cloud

I deployed my app to Heroku, and created a single-node deployment on mLab to serve as my database.However, whenever I try to use my API in any capacity, I get this error: connection error: { MongoError: failed to connect to server [localhost:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017] This makes no sense to me. I set my MONGODB_URI config variable to the URL of my mLab database.I have a folder called config, and in that folder I have a file called config.js which is this:module.exports = { 'secretKey': '01992-19890-01966-19540', 'mongoUrl' : process.env.MONGODB_URI }; And here is my index.js file where I set up the server and try to connect to the mLab database:const express = require('express'); const passport = require('passport'); const http = require('http'); const morgan = require('morgan'); const LocalStrategy = require('passport-local').Strategy; let path = require('path'); let mongoose = require('mongoose'); let config = require('./config/config'); let bodyParser = require('body-parser'); let recipeRouter = require('./routes/recipeRouter'); let userRouter = require('./routes/userRouter'); const app = express(); // set up DB mongoose.connect(config.mongoUrl); let db = mongoose.connection; db.on('error', console.error.bind(console, 'connection error:')); db.once('open', function () { // we're connected! console.log("Connected correctly to server"); }); // Set up App app.use(morgan('combined')); // app.use(bodyParser.json({type: '*/*'})); OLD !!!! // !! NEW !! // app.use(bodyParser.json({ limit: '50mb' })); app.use(bodyParser.urlencoded({ extended: false, limit: '50mb' })); // !! NEW !! // app.use(express.static(path.join(__dirname, 'public'))); app.use('/users', userRouter); app.use('/recipes',recipeRouter); // Set up Server const port = process.env.PORT || 3000; const server = http.createServer(app); server.listen(port); Can anyone help me? This is driving me bonkers.

Submitted August 25, 2017 at 10:16PM by T-Dot1992

Need help with cheerio and node scraping

Hi guys, so a few weeks ago I started getting into coding and made a discord bot for a game that I play.It mostly does very simple stuff like flip coins and roll dices, but now I want to add some functionality such as getting a list of daily quests from the game API.I looked up some tutorials about web scraping and tried using Cheerio. It didn't work and it might have been because it was a site that took data from a server or something, so I used phantomJS too. That didn't work out and left me even more confused.I found an API endpoint website that gives me the data for the daily quests and decided to go back to using cheerio. Of course, it still doesn't work. The API site point is http://ift.tt/2wvSkOl is the bits of codes that I have tried:Code starts herevar request = require('request');var cheerio = require('cheerio');request('http://ift.tt/2wFIgmz', function(err, resp, body) {var $ = cheerio.load(body);var dailyData = $('pre');var dailyDataText = dailyData.text();var allDailies ={dailyData: dailyDataText}console.log(allDailies.length)EndThe .length is just to see if anything was actually added into the array.which gives me an error: UnhandledPromiseRejectionWarningI also tried this:Code starts hererequest('http://ift.tt/2wFIgmz', function(err, resp, body){if(!err && resp.statusCode == 200)$('pre').each(function() //this is the element that I'm calling. Don't know if it's right andI don't have a reference either.{var url = $(this).text();urls.push(url);});EndThis actually gives me a return array length of 0, which means nothing have added.The site that I am getting the data from is very simple, and there are no id or class elements to it, so I didn't know what to call. I ended up using
 but as you know, it's not working.I'm not sure if this is not working because the site gets it's data from a server that generates the data daily or because I'm doing something wrong.Any help to solve this issue is appreciated!

Submitted August 25, 2017 at 09:57PM by HighestHand

Strapi v3@alpha.5 release

http://ift.tt/2vnBJIx

Submitted August 25, 2017 at 04:58PM by pierreburgy

Getting started with Puppeteer and Chrome Headless for Web Scrapping

http://ift.tt/2wEYsUL

Submitted August 25, 2017 at 05:14PM by emadehsan

You Can Use ES Modules in Node Today!

http://ift.tt/2vqWlAD

Submitted August 25, 2017 at 12:14PM by fagnerbrack

Adonis 4.0 Dev Release

http://ift.tt/2wux1N0

Submitted August 25, 2017 at 12:35PM by romainlanz

Some NodeJS core developers linked to KKK structures in Alabama

http://ift.tt/2xygX9X

Submitted August 25, 2017 at 09:45AM by TransSoldier

node24.se

http://www.node24.se

Submitted August 25, 2017 at 10:32AM by vjv36102

Architecting Electron Applications for 60fps

http://ift.tt/2xuTxCz

Submitted August 25, 2017 at 09:48AM by vertice

Building an API Gateway using Node.js – Node.js Collection – Medium

http://ift.tt/2wDJs9Y

Submitted August 25, 2017 at 09:02AM by justintimecoder

Thursday 24 August 2017

NVM will *not* be adding support for Ayo.js

http://ift.tt/2gaNy24

Submitted August 25, 2017 at 01:17AM by stickyboot

The Truth About Rod Vagg (Rod Vagg's response to the current controversy)

http://ift.tt/2wDaLRL

Submitted August 25, 2017 at 02:31AM by cs--throwaway

Tutorial: Building a RESTful API With Koa and Postgres

http://ift.tt/2vnk4Aa

Submitted August 24, 2017 at 10:56PM by psteeleidem

Help finding resources?

I'm looking to build a nodejs script that will basically proxy a webpage, but also modify the source to ensure all content is also sent through the script.User requests localhost/viewpage?url=http://ift.tt/2wJLGnc will then request google.com and download the html.It will then update all image src, href, css links, etc to point to localhost/viewpage?url=old_src.Finally it will serve the page.I've been googling for proxy, but this is giving a lot of results that don't help. Does anyone know of a script that already handles this or any npm modules that would be helpful in building this service?Thanks in advance.

Submitted August 24, 2017 at 09:14PM by fyzbo

Keystone project on ubuntu/nginx

This is kind of a general question but I have finally gotten a keystone installation set up on a server KeystoneJS Started: My App is ready on http://0.0.0.0:3000How do I go about pointing my domain name to this?

Submitted August 24, 2017 at 04:25PM by goingtoriseup

Node.js Board Statement on TSC Action

http://ift.tt/2xffW7f

Submitted August 24, 2017 at 02:21PM by philnash

A simple notes SPA using Koa 2.3 on the backed and Vue 2.4 on the frontend. Includes a user-authentication flow and note CRUD actions.

http://ift.tt/2w3qoyR

Submitted August 24, 2017 at 02:30PM by adstwlearn

Nodestream - storage-agnostic data streaming library

http://ift.tt/2ah3YPG

Submitted August 24, 2017 at 01:47PM by robertrossmann

Top 10 Programming Languages of 2017 So Far, based on GitHub’s recent data

http://ift.tt/2uBSBLa

Submitted August 24, 2017 at 12:56PM by cristinereyess

What are you guys working on this week?

No text found

Submitted August 24, 2017 at 01:27PM by zack12

ayyo explain like im 5

im confused

Submitted August 24, 2017 at 09:47AM by ricking06

StdLib Updates: Node.js 8.4.0 Support, Use Custom Hostnames For Your Services With Cloudflare

http://ift.tt/2xuXDuo

Submitted August 24, 2017 at 09:13AM by keithwhor

Reference Error - But why?

Hey there currently I'm developing an applications backend as express REST API. I'm using sqlite3 as database and I was about to develop a prestat-script to create all neccessary tables on start.Following code:const path = require('path'); const sqlite3 = require('sqlite3').verbose(); const deasync = require('deasync'); const config = require('../config'); const dbPath = `${path.join(config.dbConfig.path, config.dbConfig.name)}.db`; const db = new sqlite3.Database(dbPath); const get = deasync(db.get); const run = deasync(db.run.bind(db)); function tableExists(table) { try{ get(`SELECT * FROM ${table} LIMIT 1`); return true; } catch(err) { return false; } } function createTable(name, columns) { const tableColumns = columns.map(c => `${c.name} ${c.type}`); run(`CREATE TABLE ${name} (${tableColumns})`); } function ensureTable(name, columns) { console.log(`Ensuring TABLE ${name}`) if (!tableExists(name)) { console.log(`Creating TABLE ${name}`); createTable(name, columns); } else { console.log(`TABLE ${name} already exists.`) } } console.log(`Precheck Database ${dbPath}`); config.dbConfig.tables.forEach(t => ensureTable(t.name, t.columns)); console.log('Database check done.') I'm getting a ReferenceError in the function tableExists - saying Database reference is missing (coming from sqlite3). Through debugging I found that in the function ensureTable my variable db is undefined, outside of any function db is set. Any suggestions on why this error is occuring? I have no clue - googling for any help is especially complicated because you'll find a lot help for ReferenceErrors, but not for this case.dividerEdit: I've checked, this error is not coming from deasync, as db is undefined in ensureTable which is not deasynced. The db variable is instanciated, I can see this while debugging and breaking at e.g. the line "Precheck Database ...". As soon as I'm entering a function it's lost. So maybe theres something about scoping I'm missing here?dividerP.S: I am using node v8.2.0

Submitted August 24, 2017 at 08:15AM by br0wnvetter

Newbie question: I have Node.js installed on my Red Hat Linux server. How do I get it to run scripts so I can put a node.JS app on there?

No text found

Submitted August 24, 2017 at 08:48AM by lindobabes

Wednesday 23 August 2017

lightcookie - lightweight cookie parser and serializer for Node

http://ift.tt/2vh5lYp

Submitted August 24, 2017 at 03:19AM by Etha_n

Nock: No match for request. How do I set authentication headers in nock so I can test requests that need basic auth?

I am using nock to mock an api call for an action but I get this error :Nock: No match for request { "method": "post", "url": "URL TO API", "headers": { "accept": "application/json, text/plain, */*", "content-type": "application/x-www-form-urlencoded", "access-control-allow-credentials": true, "authorization": "Basic emFja3lAZ21haWwuY29tOmh1bnRlcjEyMw==", "user-agent": "axios/0.16.2" } } This is the test for login user action:let user = {"email": "zac@gmail.com", "password": "hunter123"}; const middlewares = [thunk]; let credentials = window.btoa(user.email + ':' + user.password); let encrypted = credentials.toString('base64'); let BasicAuth = 'Basic ' + encrypted; const mockStore = configureMockStore(middlewares); afterEach(() => { nock.cleanAll(); }); it('creates LOGIN_USER_SUCCESS after user is logged in', () => { nock(/^.*$/, { reqheaders: { 'Access-Control-Allow-Credentials': true, 'authorization': BasicAuth }, }).post('/auth/login',user).reply(200); const expectedActions = [ {type: types.LOGIN_USER_SUCCESS} ]; const store = mockStore(); return store.dispatch(actions.login(user)).then(() => { expect(store.getActions()).toEqual(expectedActions); }); }); I create a user and encrypt it then add Basic to it and use that as the headers in reqheaders. The problem is that nock can't mock the headers or may be I have set headers wrong. I have tried using matchHeaders but nothing changed. Here is the actual call made using axios:import axios from 'axios'; import httpAdapter from 'axios/lib/adapters/http'; class AuthService { constructor() { axios.defaults.adapter = httpAdapter; let service = axios.create(); service.interceptors.response.use(this.handleSuccess, this.handleError); this.service = service; } handleSuccess(response) { return response; } handleError(error) { return Promise.reject(error); } post(path, user, callback) { return this.service.request({ method: 'POST', url: path, responseType: 'json', data: user }).then((response)=>callback(response.status,response.data)) } login(path, user, callback) { let credentials = window.btoa(user.email + ':' + user.password); let BasicAuth = 'Basic ' + credentials; return this.service.request({ headers:{ 'Authorization':BasicAuth, 'content-type':'application/json' }, method: 'POST', url: path, responseType: 'json', }).then((response)=>callback(response.status,response.data )) } } export default new AuthService; It sends data correctly but I can't mock login using nock. How do I mock login?

Submitted August 24, 2017 at 03:42AM by uptnapishtim

Part II: How to create a node module — Making pizza with Javascript

http://ift.tt/2w41vmD

Submitted August 23, 2017 at 07:06PM by bukinoshita

The Twelve-Factor App

https://12factor.net/

Submitted August 23, 2017 at 05:10PM by tknew

NaturalScript: Human Language For Machines

http://ift.tt/2u4zBHy

Submitted August 23, 2017 at 03:21PM by ChangeTheGlobe

Node.js library providing high-level wrapper for convenient AWS S3 capabilities

A library I created a short while ago for doing some AWS S3 related work to ease things up. It's also completely tested which means you don't need to add that maintenance in your own code.http://ift.tt/2vf7rYM Happy to receive contributions and feedback

Submitted August 23, 2017 at 03:30PM by lirantal

NOde script to serve your markdown blog posts over a REST API

http://ift.tt/2w3v7jO

Submitted August 23, 2017 at 03:35PM by snazzyham

Continuous deployment for your Node.js projects in 10 minutes with Exoframe

http://ift.tt/2v5Im6u

Submitted August 23, 2017 at 03:39PM by yamalight

Node best practices concerning models

I'm fairly new to node. I was reading about node and express best practices and with Separation of Concerns in mind, I was wondering if my models shouldn't have all the business logic associated with them, so my controllers only call CRUD and static methods, instead of what I was using until now, where the controller is really tied with the model and call db methods directly, in this case mongo. Can someone show me and explain some examples of good architecture solutions for a good model encapsulation and SoC between Model/Controller/View? Thanks

Submitted August 23, 2017 at 03:50PM by Compalvital

Build an app with TypeScript, Express, Mongo and Google Cloud

http://ift.tt/2inl1av

Submitted August 23, 2017 at 12:26PM by fullstackdelivery

I made a promise/event based reddit wrapper to see what i can do. Please give suggestions! It's not finished but core functionality is there.

http://ift.tt/2wnhXRq

Submitted August 23, 2017 at 10:21AM by kishichi

NodeJS 8.0 New LTS Release with Advanced Native Module Features

http://ift.tt/2vLhrKe

Submitted August 23, 2017 at 07:30AM by Ammycode

5 Keys To Get Crystal Clear About NodeJS App Structure

http://ift.tt/2sYkbUI

Submitted August 23, 2017 at 07:31AM by freelancerkatie

Here we go again: Node.js forked to Ayo.js (io.js)

http://ift.tt/2wyG6UE

Submitted August 23, 2017 at 08:08AM by AdventurerSen

10 Reasons that Make Node.js a Top Choice for Web Application Development

http://ift.tt/2vXaWWs

Submitted August 23, 2017 at 06:46AM by cristinereyess

Tuesday 22 August 2017

NodeJS: The FileSystem (fs) module

https://www.youtube.com/attribution_link?a=lgvCIVKg6L0&u=%2Fplaylist%3Flist%3DPLL1UEcDHVPjkGjqM4mvAb2z9meV7jWmbd

Submitted August 23, 2017 at 02:50AM by duly-node

Like GitHub Page

Let's be honest, you can only work with linux servers so long before it becomes very monotonous. So I was looking for a lazy-ish way to do basically what GitHub Pages does. I want this to work on a Linux server preferably all the code NodeJs based (what other reasons for posting here?).Features: Creat Cname File for easy subdomain handling Server static documents Integrate with other services such as jekyll 404 customizationThis is hopeful dream, but maybe you guys can point me in the right direction! Many thanks!!

Submitted August 23, 2017 at 02:59AM by clarkhacks

Hate rewriting your code? This should help!

http://ift.tt/2g3qlyN

Submitted August 23, 2017 at 01:55AM by immortalcoder

When building an express app, should I query the database every request, or cache the results in the app itself? If I cache the results, how much can I cache?

I currently have an express app which uses a mysql database. It's a simple website with a small number of articles...maybe 100-ish. I could easily just query the entire database when I spin up the server and store all of the entire database in variables.But how much is too much in terms of caching? How do devs normally manage this in node?

Submitted August 23, 2017 at 02:20AM by EducationalSoftware

Modern library for stitching several png images together?

Hi, I have 4 images that are actually each one quarter of a larger image. Is there a modern/standard library to stitch them together without much external dependencies?By modern I mean I'd like to use something that uses Promises, await and stuff like that instead of a bunch of callbacks?Cheers!

Submitted August 22, 2017 at 10:09PM by MantraMan

How are large companies running their nodejs infrastructure?

I'm trying to understand how sys admins are running their large scale node.js infrastructures.I'm trying to make the jump from running something like:node server.js & to running clusters of dozens of node processes spanning several servers. In the java world there are lots of enterprise products (JBoss, WebLogic, WebSphere, etc) that handle the creation of application servers, updating host/port routing configuration for your reverse proxies, updating of application code in a graceful "rolling restart" fashion, etc.Is there anything like this in the node world?

Submitted August 22, 2017 at 09:43PM by b-nut

Node with React- Fullstack Web Development

http://ift.tt/2vmra7V

Submitted August 22, 2017 at 09:49PM by myceleb

Which Udemy course should I take?

So here are the options and you can also recommend one if you know one a good one that teaches a lot of things:Node with React: Fullstack Web Developmentpluses: Will teach you how to make a full stack application with different cool things like oAuth, emails from backend server, payment handling with Stripe API.minuses: no traditional authentication?The Web Developer Bootcamppluses: It seems to cover a huge amount of different things.minuses: Too much super beginner level stuff.The Complete Node.js Developer Course (2nd Edition)pluses: Build 3 different types of application and some has user authentication. A lot of backend side of things. Application testing. Socket i/o.minuses: no oAuth, no payment handling.Learn and Understand NodeJSpluses: Deep dive in how the nodejs works under the hood. A lot of theory and consepts.minuses: Probably too much only theory and no app building.Learn Node.js by building Udemy: Stripe + MailChimp + Wistiapluses: Probably a really practical guide to building a real world example app.minuses: Probably not that much of theory going on.If you have any experience from any one of these or something else from somewhere else then give me your opinions please. I would like to be able to build an app that's close to a real world app with authentication and like different things showing to a different people like authenticated user vs non-authenticated user.

Submitted August 22, 2017 at 09:01PM by Jdoda

Async/Await in JavaScript (Node Examples)

https://www.youtube.com/watch?v=f57IHEeDNcA

Submitted August 22, 2017 at 09:05PM by eXtremeRR

Web Audio API - Building Note App with Angular + Node.js

http://ift.tt/2wlbMxb

Submitted August 22, 2017 at 09:18PM by immortalcoder

Making a pizza with Javascript — How to create a node module

http://ift.tt/2vYKvOu

Submitted August 22, 2017 at 05:03PM by bukinoshita

SBAsset6 - Reading a proprietary game archive format with Node.js

http://ift.tt/2g2FqAW

Submitted August 22, 2017 at 05:40PM by Katana__

14-Using Promise to read json file in Node js

https://www.youtube.com/attribution_link?a=u8HLGbN5MI0&u=%2Fwatch%3Fv%3D3lr9HVlgfiw%26feature%3Dshare

Submitted August 22, 2017 at 05:48PM by sunlight4d

Find true love - Build Dating App in Nodejs

Learn how to build Dating App in Nodejs with our live tutorial! Hurry up, livestream starts 22 Aug at 5 PM EST http://ift.tt/2g1z9W3

Submitted August 22, 2017 at 05:43PM by arthur_linov

A crash course on testing with Node.js

http://ift.tt/2vRrqQ1

Submitted August 22, 2017 at 02:27PM by codedesi

Developer productivity tools

Which tools do you use/know that enhance the development work?For example, a very obvious yet valid example: 'nodemon' restarts the process for you on every change. Let's build a comprehensive list, I've few to suggest myself

Submitted August 22, 2017 at 12:01PM by yonatannn

nodejs pkg with sqlite3

Greetings, I'm a newbie to NodeJS.Currently I would like to deploy my application into executable using pkg (http://ift.tt/2qpT95r).Have a problem where one of my node_modules (sqlite3) is not bundled together into the executable. I then grab the sqlite's .node file and place it at root folder along with the executable and the latest error message I get isTypeError: require(...).verbose is not a functionAnyone got idea on how to solve the pkg with sqlite3? I'm sorry for formatting or my weak English.Thank you in advance

Submitted August 22, 2017 at 10:54AM by xjellyfishx

How do I get started with learning Node.js?

I'm working as a Front End Developer but I want to move towards Back End Development. I've been learning JavaScript for about 2 years now and I'd like to say my JS skills are intermediate (6kyu codewars)I'm hoping to eventually to get a job using Node.js and I need to know how I can get started learning it. I've played around with Node + Express before. I also know some ReactJS as well.What are the essential skills I need to know in order to secure a back end job using Node.js?What kind of non-trivial projects should I build?Any good online resources/tutorials where I can learn to build some Node.js projects?Thanks

Submitted August 22, 2017 at 07:39AM by desperate-1

How JavaScript works: inside the V8 engine + 5 tips on how to write optimized code

http://ift.tt/2x67BTh

Submitted August 22, 2017 at 07:20AM by fvilers

Monday 21 August 2017

NG + Loopback Starter | MEAN Stack

http://ift.tt/2xn3cux

Submitted August 22, 2017 at 06:41AM by immortalcoder

Introduction to NPM

http://ift.tt/2uZJhFw

Submitted August 21, 2017 at 08:03PM by HaeziSoya

Last Week in Node.js Working Groups - August 14th

http://ift.tt/2il4jsk

Submitted August 21, 2017 at 07:28PM by _bit

Rock Solid Endpoints: Using Jest snapshot testing for api integration tests

http://ift.tt/2vXbwBX

Submitted August 21, 2017 at 06:49PM by ericwooley

Is Node the right platform for a UI-less client app that has subscribed to a pub/sub service?

I was given a recommendation that I could use Node, but since I haven't used it much before I'd like to see if this is really the best option.We have a pub/sub system setup so I can subscribe to when an event is triggered (something gets added/updated/deleted in the database). The subscription will trigger and send me the details of the event. I will then need to transform that data and send it on to an external source. So the "app" needs to always be on.What do you think?

Submitted August 21, 2017 at 04:25PM by ianoble

Can't connect server to server through socket

I am making a simple load balancer (basically a server) that listens to a GET request from browser (port 8080), and communicate through socket to another server on another port (8989). That's what i'm doing, simple right ?. But i keep getting error on my loadbalancer.js everytime i try to make a GET request.The error is ECONNREFUSED 127.0.0.1:8989. Why is that ?the code is here http://ift.tt/2uZZOcB in advance.

Submitted August 21, 2017 at 05:49PM by StupidRandomGuy

Question regarding promises

I saw this code: bcrypt.hash(req.body.password, 10) .then(function(hash){ //do something with hash }) .catch(console.error) }); I know for a fact that bcrypt.hash() will retiher return the hash valueor return an error value. When using promises, how do you know which value bcrypt.hash() will resolve or reject? do all bcrypt methods always resolve the desired value, and reject the error?

Submitted August 21, 2017 at 02:51PM by badboyzpwns

How should I implement pagination using node/express without mongoosee?

Hello folks, sorry for the "dumb" question, but I'm a newby and could not figure out how to do that.I'm developing my first application in node/express and using a local json file as BD for test purposes. All that I found in the internet about pagination is using some kind of mongo plugin, what is the alternative way to do pagination using a json file without these plugins? Any advices? Documentation?Thanks in advance.

Submitted August 21, 2017 at 12:32PM by deutsch_ed

I am looking for a websocket library with performance that comes close to uWebsockets.

http://ift.tt/2vSwNhL the numbers that uWebsockets achieve something I can only dream about in NodeJS or is there an equivalent library out there for node?

Submitted August 21, 2017 at 12:39PM by ThatBriandude

Simple draw and send app using Node.js and Socket.io

http://ift.tt/2wplNKg

Submitted August 21, 2017 at 11:49AM by Mussky

HTTP/2 Server Push with Node.js

http://ift.tt/2wh5zSY

Submitted August 21, 2017 at 11:07AM by hfeeri

Saturday 19 August 2017

Interviewing Ryan Dahl, Creator of Node.js, on his life and times. Any interesting questions to ask him?

Hello Node.js Community,Next week, I have a rare opportunity to interview Ryan Dahl, Creator of Node for the podcast http://ift.tt/2uTCxJn leave a comment if you have any interesting questions to ask him.Thanks, Pramod

Submitted August 20, 2017 at 06:16AM by pramodhs

Websockets for mobile backend (Swift)

New to node and websockets and am wondering if any of you know could suggest some resources for me to learn and get started with them.

Submitted August 20, 2017 at 12:26AM by maximum360

How to configure Phusion Passenger with Nginx and NodeJS via NVM

http://ift.tt/2fVkoEf

Submitted August 20, 2017 at 04:24AM by rdogg

Node Apps - Time to Market... Does It Improve? Is There a Secret?

Hey, JavaScript ninjas! I've been wrestling pretty hard with a question: Which back end solution is right for me?Recently, I had the pleasure of playing with Laravel. I was amazed at how quickly it solved problems right out of the box. Want to send an email? Cool, just throw some info in this config file and generate a mailer. User authentication? Run a make:auth command. That said, I've actually been gunning for Ruby, just because Rails seems like a "safe" choice.Anyway, the thing is that I love JavaScript. Maybe it's Stockholm syndrome (I've spent a lot of time with it because I'm primarily a front end dev). If I were to use it on the back end, it'd mobilize me immediately. I wouldn't have to learn another language, I'm familiar with the ecosystem, I can write tests, etc.However, assuming that I use Express (I haven't used Sails, or any other framework), I'm left to wire everything up myself, including user authentication and authorization, security solutions like CSRF fields, etc. For me, this is rather time-consuming. In fact, it's so time-consuming that I wonder if it's the right solution for our company. When the owner asks, "Why shouldn't we use Rails if you can (eventually) get a product to market more quickly using it?" it's hard to respond.I understand that Express apps will be faster in terms of application speed, but for most of our clients' needs, I don't suspect that extra speed will be noticed. Speed in terms of development, however, will be.I just want to know if you've experienced anything similar. If so, did you get faster at spinning up apps? Is there an initial "hump" in every project to get over, at which point developing in Express becomes just as fast as developing in Rails or Laravel? Is there something I might be missing? When do you reach for Express?Thanks for reading!

Submitted August 19, 2017 at 11:18PM by Mathematicks

Websites & Dev tools : Initial load time is important

http://ift.tt/2uQLMtF

Submitted August 19, 2017 at 09:42PM by idesi

Downsides of "app maps"

I've noticed that some node frameworks (especially the ones implemented in TypeScript) always require you to register your components (controllers, services, ...). In case it's not clear what I mean, an example would be http://ift.tt/2wbGTeE Symfony framework on the other hand creates a "map" of all routes, hence it's no longer required to register your controllers. In case you're wondering:

Add real-time to your application with Server-Sent Events and expresse

http://ift.tt/2wqr4jP

Submitted August 19, 2017 at 09:29AM by toverux

Friday 18 August 2017

Getting started with NodeBots and Johhny 5

http://ift.tt/2vf7gx8

Submitted August 19, 2017 at 04:40AM by gregbaugues

Is there some package or native mongo tool to prevent duplicate name entries?

"Donkey Kong" and if someone enter "Donkey Kong" again it does "Donkey Kong 1" or a slug "donkey-kong-1"...or does everyone manually code this validation?

Submitted August 19, 2017 at 12:49AM by InsertCoinPushStart

Facenet: a TensorFlow backed FaceNet implementation for Node.js

http://ift.tt/2w60jkN

Submitted August 18, 2017 at 07:26PM by gregbaugues

Working with Environment Variables in Node.js

http://ift.tt/2wAJ7kR

Submitted August 18, 2017 at 07:10PM by gregbaugues

Setting Up Slack Notifications for Your Node.js Apps with N|Solid

http://ift.tt/2wXsC1P

Submitted August 18, 2017 at 06:44PM by tedcarstensen

How to Build a Call Center with Node and TaskRouter

https://youtu.be/XMg5ytgyn1E

Submitted August 18, 2017 at 07:00PM by gregbaugues

Extend Salesforce with Node.js

http://ift.tt/2w9iCpA

Submitted August 18, 2017 at 04:51PM by gregbaugues

Quickly generate device screenshots of a webpage through the command line

http://ift.tt/2vPAZgr

Submitted August 18, 2017 at 04:45PM by umpox

textics: JavaScript Text Statistics

http://ift.tt/2wVYgh9

Submitted August 18, 2017 at 02:05PM by jimmy02020

Newbie - What does it mean when you "modify a cookie" or when a user tampers it?

I'm trying to understand more about cookies, and I;ve heard these terms a lot. Unforutnatley, I' cant find any resources (probably searching th ewrong term). Could someone clarify/give an example of these 2 scenarios>

Submitted August 18, 2017 at 01:41PM by badboyzpwns

Node.js Weekly Update - 18 August

http://ift.tt/2w8bnOo

Submitted August 18, 2017 at 11:44AM by hfeeri

Fraternate is an open source user and team subscription boilerplate(MIT License) looking for contributors.

http://ift.tt/2tVgpbU

Submitted August 18, 2017 at 12:02PM by jdav89

Web scraping as a service

http://ift.tt/2vIg5T7

Submitted August 18, 2017 at 10:20AM by JericaBailey

How to Build a Collaborative MIDI App with Express.js & Socket.io

http://ift.tt/2uLEMhh

Submitted August 18, 2017 at 10:04AM by harlampi

Javascript @ Uber - Dustin Whittle

https://www.youtube.com/watch?v=JWFyH13_I3o

Submitted August 18, 2017 at 10:07AM by dobkin-1970

Thursday 17 August 2017

How can I serve a JSON file?

I need to access a JSON file in Javascript on a page, how can I 'serve' a JSON file with node.js so that I can access it?Thanks I am a beginner!

Submitted August 17, 2017 at 10:58PM by matthewfelgate

Vile — A punishing yet easy to use tool for writing insightful code

Vile is a project I have been working on to help developers build better software and maintain it more confidently.The library and CLI itself is written in TypeScript:http://ift.tt/2i95wmc is also a lot of advanced support for Node.js and JavaScript in general, notably:http://ift.tt/2fQfAjz is also support for plugging in existing lint projects, such as:http://ift.tt/2i95wTe any thoughts or feedback! =)

Submitted August 17, 2017 at 09:01PM by theapokalypsis

Rapid development & deployment with Node.js and Docker

http://ift.tt/2vf6M9P

Submitted August 17, 2017 at 07:41PM by ginger-julia

API Authentication with Node | #7 - Passport and Strategies

https://youtu.be/lbmOoZuElKI

Submitted August 17, 2017 at 02:49PM by eXtremeRR

2017 and there is still no request-context

I'm concerned with the lack of such a fundamental tool: storing information on the request/transaction level. In almost every web programming framework, one can pull the current user+roles+other contextual properties without moving them around in each and every function (also on other layers of code, not only within express).How do you solve that?Does CLS work fine for you? how about CLS-hooked?http://ift.tt/2rA1E1E

Submitted August 17, 2017 at 02:18PM by yonatannn

From Front-End to Node.JS

http://ift.tt/2v45eye

Submitted August 17, 2017 at 11:36AM by codedesi

Programming language from scratch: 3 easy steps to an interpreter

http://ift.tt/2whOcAT

Submitted August 17, 2017 at 06:49AM by FrancisStokes

Wednesday 16 August 2017

Ranvier (node.js MUD game engine) hits version 2! [xpost from /r/MUD]

http://ift.tt/2uKvgLw

Submitted August 17, 2017 at 01:49AM by shawncplus

The Death of JavaScript

https://www.youtube.com/watch?v=hn-qA7EjFDY

Submitted August 16, 2017 at 11:16PM by rick4470

SFNode Meetup: Numeric Computing with Node.js

https://www.youtube.com/watch?v=sYF_pJI93tc

Submitted August 16, 2017 at 08:26PM by harlampi

When trying to upload an image to an S3 bucket, I keep getting “Unexpected Token -” error

http://ift.tt/2x55Sgr

Submitted August 16, 2017 at 07:22PM by T-Dot1992

Headless Chrome Node API

http://ift.tt/2vIrEas

Submitted August 16, 2017 at 07:26PM by ratancs

The comment made my day more than the joke itself

http://ift.tt/2vDKp0c

Submitted August 16, 2017 at 04:46PM by tardis215

Express tutorials - Dynamic single page e-commerce site

Looking for tutorials or walkthroughs which will help with my current task.I'm first and foremost a back end developer, so my current web design skills are slim to none.Wondering if anyone could link some good walkthroughs/tutorials that I can run through for an e-commerce style site which dynamically renders pages depending on the products requested.Also, does anyone thing I'd be better off using react?Thanks in advance!

Submitted August 16, 2017 at 04:12PM by LastMan0nEarth

Please help me setup a test environment on my Node TypeScript boilerplate!

http://ift.tt/2v1DQAO

Submitted August 16, 2017 at 02:05PM by xeoneux

Builder pattern magic in Node.js

http://ift.tt/2v0UOPW

Submitted August 16, 2017 at 09:24AM by RST_IT

I made a open source REST API for generating PDFs using Headless Chrome

http://ift.tt/2w9fcTY

Submitted August 16, 2017 at 09:05AM by esbenp

A Redux First Router Saga

http://ift.tt/2vnRnob

Submitted August 16, 2017 at 09:19AM by emiliosantana

Tuesday 15 August 2017

13-REST api with DELETE request and Mongoose

https://www.youtube.com/attribution_link?a=6-l1EW5foYE&u=%2Fwatch%3Fv%3DrrTUERyxRpM%26feature%3Dshare

Submitted August 16, 2017 at 12:07AM by sunlight4d

Node v8.4.0 (Current)

http://ift.tt/2x28Ouj

Submitted August 15, 2017 at 10:59PM by dwaxe

I can't upload an image to S3 in my Node API via multer.

I have a backend API, but I haven't deployed it yet, because I first need make sure the API can upload images to my S3 Bucket.I spent the last two days Googling non-stop on how to to do so, and I ended up writing this code in the process.My app is a website where people can create and share recipes. I want the user to be able to upload a profile pic for themselves, and have it so that the user has to upload a picture of their own meal whenever they create a recipe.Here is the code for a file called userRouter.js , where I try to upload a profile pic to Amazon S3. This isn't all the code in the file, only the relevant lines where I try to upload an image to S3.const bcrypt = require('bcryptjs'); const authentication = require('../controllers/authentication'); const express = require('express'); const passport = require('passport'); const passportService =require('../services/passport'); const config = require('../config/config'); const User = require('../model/user'); const router = express.Router(); const mongodb = require('mongodb'); const mongoose = require('mongoose'); const jwt = require('jsonwebtoken'); mongoose.Promise = Promise; const Recipe = require('../model/recipe'); ///!!!! NEW !!!!// const AWS = require('aws-sdk'); const fs = require('fs'); AWS.config.loadFromPath('./config/aws-config.json'); const bucket = new AWS.S3({params: {Bucket: 'deelish'}}); const multer = require('multer'); const upload = multer({ storage: multer.memoryStorage(), limits: {fileSize: 52428800} }); router.post('/uploadProfilePic', authentication.verifyOrdinaryUser, upload.single('avatar'), (req, res, next) => { bucket.putObject({ Bucket: 'deelish', //// req.decoded.id is the id of the user who logs into the app via the authentication.verifyOrdinaryUser function Key: String(req.decoded.id), Body: req.file.buffer, ACL: 'public-read' }, (err) => { if (err) return res.status(400).send(err); res.send('File uploaded to S3'); }); }); However, this route does not work whenever I try to test it in Postman. The error message I get is "SyntaxError: Unexpected token �" and I have no idea what any of that means.

Submitted August 15, 2017 at 09:44PM by T-Dot1992

Learn Nodejs by building 12 projects

http://ift.tt/2uSMogH

Submitted August 15, 2017 at 08:25PM by myceleb

Bee-Queue v1.0: a simple, fast, robust job queue for Node.js, backed by Redis

http://ift.tt/2uVsA98

Submitted August 15, 2017 at 06:02PM by LewisJEllis

My new AI project proudly powered by node

http://ift.tt/2uYCcA5

Submitted August 15, 2017 at 06:21PM by MishUshakov

Extend Salesforce with Node.js

http://ift.tt/2w77Ikj

Submitted August 15, 2017 at 05:32PM by Ramirond

page is rendering before function is finished

I'm new to node and I'm having a problem with my page loading before my database query is finished. Here is an example of what I am trying to do:app.get('/', function(req, res) { var result = getResult(); res.render('page', {result: result}); }); function getResult() { result = (database query) return result } Does anyone know of a way that I can have the page render after the result is returned?

Submitted August 15, 2017 at 04:02PM by craig384

Using Babel to import/export ES2015 modules in Node.js

http://ift.tt/2uFNNIU

Submitted August 15, 2017 at 04:08PM by saranshk

Colyseus — HTML5 Multiplayer Games Made Simple (v0.5.0 update)

http://ift.tt/2wMs7se

Submitted August 15, 2017 at 03:27PM by endel

Looking for advice on a webapp I want to comission..

Apologies in advance if this isn't the best sub for this question.I have a very basic knowledge of programming/node and looking for someone to build a web app but I'm not 100% sure how the developer will accomplish what I need.I want to make sure I'm clear before I hire someone so looking for some guidance from experts if possible.I'm a cryptocurrency trader and for obvious reasons, I'm interested in how news / social media affects the price of crypto currencies.The real-time price of crypto currencies is available from many api's (http://ift.tt/2x07Yy6) for example.What I want to do is correlate sudden rises in price with blogposts, tweets and reddit posts that are getting retweets/upvotes.I'm not sure if this could be done via the twitter/ reddit API's or if it would involve web scraping of some kind.Any advice would be gratefully recieved...

Submitted August 15, 2017 at 02:35PM by thegreatoverdog

Newbie - Secret, resave, saveUninitialized in Sessions.

I hope someone can dumb this down for me or ELI5 this to me.I have this code, which is used for sessions:app.use(session({ secret: 'matt', resave: true, saveUninitialized: false })); My question is, what do these attributes mean?I've tried understanding from this post, but I'm still completely loss/http://ift.tt/2w6GL0c

Submitted August 15, 2017 at 02:36PM by badboyzpwns

Can anyone help solve /r/changemyview's issue where DeltaBot makes multiple sticky comments in a post?

Quick background: /r/changemyview uses /u/DeltaBot to run the delta system.One task it has is to make a stickied comment when OP awards a delta, and a corresponding post in /r/DeltaLog.A big issue for us recently is DeltaBot making multiple stickied comments/DeltaLog posts for the same CMV post. Here is the issue on GitHub (duplicate issue), which I believe might be related to this issue.Does anyone know how to fix this?

Submitted August 15, 2017 at 01:48PM by Snorrrlax

Node config best practices

http://ift.tt/2vXZhr5

Submitted August 15, 2017 at 01:03PM by tamastorok

How to Innovate Inside an Enterprise Organization: Matt Savino of DIRECTV

http://ift.tt/2vspWt4

Submitted August 15, 2017 at 10:27AM by harlampi

Monday 14 August 2017

Bootstrapping a JavaScript Library

http://ift.tt/2uDERUB

Submitted August 15, 2017 at 03:04AM by roperzh

Query builder vs parameterized queries?

From my understanding, this is a parameterized query:router.post("/register", function(req, res){ console.log(req.body); bcrypt.hash(req.body.password, 10, function(err, hash){ if(err) return console.log(err); else{ req.body.password = hash; var sql = "INSERT INTO SCHEMA.user_authentication(first_name, last_name, email, password, age)" +"VALUES(?, ?, ? ,? ,?)" var values = [req.body.first_name,req.body.last_name, req.body.email,req.body.password,req.body.age] app.con.query(sql, values, function(err, result) { if(err) return console.log(err); console.log("1 record inserted"); }); } }); }); Then there are query builders like knex. My question is, what is the difference between them? readability? etc

Submitted August 15, 2017 at 02:51AM by badboyzpwns

RFC: @nodejs async-hooks team would love to hear any feedback about real world systems running with hooks enabled

http://ift.tt/2vDwQwc

Submitted August 14, 2017 at 11:30PM by refack

Is it possible to run into issues mixing yarn and npm in the same project?

I find myself accidentally switching between the two from time to time. I don't think I've ever run into an issue but I'm curious if it would be possible for that to happen.

Submitted August 14, 2017 at 11:41PM by likeaspacemonkey

Unit testing Node.js

http://ift.tt/2uVFu72

Submitted August 14, 2017 at 08:11PM by HaeziSoya

TCP Emitter

http://ift.tt/2wJBrge

Submitted August 14, 2017 at 06:24PM by taboneIO

[Q] Key press event anywhere

Hello! Is there any way to write function for pressing key outside terminal?For example, I press key A on keyboard when writing code in sublime text and I want my running NodeJS code in background to run some code. Is that real?Also it would be great to get keyboard name, so I can run different functions for different keyboards when pressign same key.

Submitted August 14, 2017 at 04:49PM by MeldironSK

Converting a Buffer to JSON and Utf8 Strings in Nodejs

http://ift.tt/2fDMkwc

Submitted August 14, 2017 at 08:24AM by simplicius_

Sunday 13 August 2017

Async/Await Will Make Your Code Simpler

http://ift.tt/2uByRaH

Submitted August 14, 2017 at 06:44AM by tremendous_turtle

How to bundle a Web project server side written in Node.js for production?

I know how to use webpack for production but that's only for client side. I used to deploy my simple project to pm2 but that project has only one single server.js file. Now the server side code consists of multiple files in different locations/folders, how can I bundle them for production?I have tried writing scripts in package.json. But I am stuck when using babel for bundling. My project is written in ES6. So I think I need to use babel to bundle the files.I have a few questions for now:Can babel cli bundle different files from different locations? (Some in project root, some in server folder).Can I just use the server.js file which is the entrance of my project for production? ( I use node server.js in development, actually I just run yarn start)Where should I put the production files? Currently I put it in a sub-folder called "lib" of the "dist" folder which also contains the client files.Is there a better way to do this for production?

Submitted August 14, 2017 at 06:51AM by caymanbruce

NodeJS - All route functions until the actual one are invoked and non-existent routes are called

It is a very long question and I don't know how to format code here, so please http://ift.tt/2wHx4SR for details.

Submitted August 14, 2017 at 06:54AM by dhanushuUzumaki

16 Does anyone know of a real-world, complex, open-source NodeJS application that using Restify? I need to make a RESTful API/ examples are way to simple

I love Node, but it’s so easy to build things the wrong way… I need a real example I can learn from which uses restify

Submitted August 14, 2017 at 05:31AM by ekevjn

Filter objection.js models over HTTP using complex search queries (objection-filter)

http://ift.tt/2vSyhtd

Submitted August 13, 2017 at 10:19PM by jeff3yan

Code execution vulnerability in node-postgres

http://ift.tt/2w350LP

Submitted August 13, 2017 at 04:34PM by also_on_sunday

ES Modules in Node Today!

http://ift.tt/2vmI9dq

Submitted August 13, 2017 at 12:40PM by codedesi

How to Bundle Project using Webpack?

http://ift.tt/2w2Bc1Y

Submitted August 13, 2017 at 12:12PM by vishal_saxena

12-Upload images using Node js with formidable

https://www.youtube.com/attribution_link?a=8gxDVFNZQq0&u=%2Fwatch%3Fv%3DcNG6VrGszck%26feature%3Dshare

Submitted August 13, 2017 at 10:12AM by sunlight4d

Tools beyond Mocha & Chai & Sinon

Which non-obvious testing tools do you use to ease your testing process?For example, how do you ensure good code coverage? that your API conform to the schema (swagger)? your DAL layer? test message queue?

Submitted August 13, 2017 at 08:34AM by yonatannn

Saturday 12 August 2017

Faster zeroing of typed arrays?

Zeroing typed arrays in Node.js is painfully slow. On my machine with 1Mb array it is about 0.45 op/ms:let a = new Uint8Array(1000000); start = process.hrtime(); const runs = 1000; for (let i = 0; i < runs; i++) { a.fill(0); } let ms = to_ms(process.hrtime(start)); console.log(ms, "ms,", runs / ms, "op/ms"); function to_ms(hr) { return (hr[0] * 1e9 + hr[1]) / 1e6; } Is there a better way to clear typed arrays, short of creating a new array (so as to not produce excessive garbage)?

Submitted August 12, 2017 at 01:16PM by jshacker

Friday 11 August 2017

NodeJS: A Playlist On The NodeJS FileSystem Module

https://www.youtube.com/attribution_link?a=_Ie3aIIh5LI&u=%2Fplaylist%3Flist%3DPLL1UEcDHVPjkGjqM4mvAb2z9meV7jWmbd

Submitted August 12, 2017 at 12:56AM by duly-node

How to use response from Request.js ?

I am sending an AJAX request from a webpage to a node server with Express and from the node server I am processing that request and then sending it to another server with Request.js. The node server is successfully receiving the response but Request.js doesn’t allow us to return that response in any format (We can print the data though). Should I use a different HTTP request module or am I not using Request.js properly?Webpage --AJAX request--> Node Server --Request--> Server

Submitted August 12, 2017 at 12:24AM by SaintPeen

Subscribe to Notifications for the Node Docker Image

http://ift.tt/2lyuXKG

Submitted August 11, 2017 at 08:06PM by Kailuaboys

5 ways to make HTTP Requests in Node.js

http://ift.tt/2uvltJq

Submitted August 11, 2017 at 06:04PM by jessgarson

Back end templating engine or front end framework?

Hi all,I recently started learning node. I've become quite confused about which technologies I should/can use to do what, as Webdev seems to include thousands of unique technologies that all do different things..!I started learning Node & Express which led me down the path of template engines. I love the idea of template engines, as most of my website will inherit/extend functionality from a core layout. I also wanted to design parts of my website programatically/dynamically, where some elements will be rendered according to data on the server (featured items being displayed on the frontpage!)*. I'm trying to learn how to do that stuff with templating engines currently.Jade's pseudo-english-language syntax seems a little weird to write websites in, however. I've taken a brief look into EJS and Handlebars.I was always going to learn either Angular or React, but recent trips around the internet have gotten me confused as to whether I even need a templating engine. Do Angular/React allow me to extend a base layout html and do they let me render elements according to data on the server (whether in a database or otherwise).*I have a lot of OO pogramming experience in Java and C++ so if there's a framework that lets me have a collection of objects and display an identical html block with text/links/images adjusted for each object then that'd be grand.

Submitted August 11, 2017 at 04:56PM by MightyLemur

A set of best practices for JavaScript projects.

http://ift.tt/2sj545H

Submitted August 11, 2017 at 05:00PM by vahidpg

Thoughts on User Passwords in REST APIs

http://ift.tt/2uxfSOH

Submitted August 11, 2017 at 04:43PM by code_barbarian

A Faster More Secure Internet with HTTP/2

http://ift.tt/2uNhPWF

Submitted August 11, 2017 at 03:44PM by justintimecoder

Your Node.JS experience in your development team

Hi there,We evaluate Node.JS to be added to our development stack since we think it may have some great benefits. To get a better understanding I want to ask you folks about your experience with Node.JS in your teamI'm interested in topics like: maintain ability, ~bugs per deployment, on boarding of new members, ability to move written software over different teams, development speed, performance of the artifact and of course fun. Do I miss something? Feel free to add :-)Please share as well your - development environment (science, product dev, ...) - kind of Software (big data, mission critical services, fast iteration web stuff) - team size, avg skill and avg education - gotchas and faultsI appreciate your thoughts, Marc

Submitted August 11, 2017 at 12:39PM by mrcrgl

The Complete Node.js Developer Course By Andrew Mead & Rob Percival

http://ift.tt/2vpVQZj

Submitted August 11, 2017 at 12:10PM by loveitfresh

Free eBook: Node.js Design Patterns - Second Edition (PDF/ePub/Mobi)

http://ift.tt/2hQznzZ

Submitted August 11, 2017 at 08:52AM by PacktStaff

Exploiting a V8 OOB write

http://ift.tt/2qXplzZ

Submitted August 11, 2017 at 06:12AM by fagnerbrack

Thursday 10 August 2017

11-Working with both POST and PUT requests

https://www.youtube.com/attribution_link?a=EwJR767vo6c&u=%2Fwatch%3Fv%3D_Ouu2mH0kXM%26feature%3Dshare

Submitted August 11, 2017 at 03:06AM by sunlight4d

[Question] Atomic middleware in Express a bad idea?

The problem is this:I'd like to reuse my server-side code as much as possible (duh). I have seen many people suggest using "controllers" for all business logic, and leveraging the express middleware as just a way to direct traffic to different functions on the controllers. This is the swagger.io philosophy.Okay sure, I get that, but would it be such a bad idea to make each express middleware atomic (one small isolated piece of functionality) and simply call the middleware manually while passing req,res, and next to it? It is essentially the same concept without the need for quite as much abstraction.Any thoughts are appreciated.

Submitted August 11, 2017 at 12:51AM by LionaltheGreat

True but not...

Hi guys,So I have this code:User.getUserById(userID, function(err,user){ console.log("going"); if(err){ console.log(err); } //assign the user to a variable to hold the user data to make the variable in the form we want var userTemp = user; //create a variable to hold the users assets var assets = userTemp.assets; var name; //Go through the assets until we find the one with the same id as that post in the patch request body for(i = 0; i < assets.length-1; i++){ //Same id so same asset console.log(assets[i]._id); console.log(assetID); if(assets[i]._id == assetID){ console.log("match"); name = asset[i].name; //Set the asset variable coordiantes to that which where passed in the post request assets[i].location.coordinates = coordsArray; //Add these to the past array and add the date so I can get past hour/day/week/month assets[i].past.push({ numbers: [secondCord,firstCord], date: new Date(Date.now()) }); } } }); but the output is this:2017-08-10T22:33:41.211147+00:00 app[web.1]: 595e9c411fa2bd0011a33cfd 2017-08-10T22:33:41.211053+00:00 app[web.1]: 595e9c411fa2bd0011a33cff 2017-08-10T22:33:41.211070+00:00 app[web.1]: 595e9c411fa2bd0011a33cfe 2017-08-10T22:33:41.211163+00:00 app[web.1]: 595e9c411fa2bd0011a33cfe 2017-08-10T22:33:41.211556+00:00 app[web.1]: 595e9c411fa2bd0011a33cfb 2017-08-10T22:33:41.211573+00:00 app[web.1]: 595e9c411fa2bd0011a33cfe So the second run through should evaluate to true but it doesn't, any ideas why?Thanks, Ed.

Submitted August 10, 2017 at 11:38PM by thelynched

Is there any way to scrape data from a LinkedIn company profile?

Hello Guys,So i'm trying to use X-Ray to scrap data from Company Profile on Linkedin to get all his employees.Couldn't figure out where to search in the DOM.LinkedIn Scraping is extremely difficult.couldn't figure out where to search..So i'm trying to get all names from a list of users working in a company in Linkedin with X-Ray, couldn't find a way to do it.const request =require('request'); const Xray=require('x-ray'); var x = Xray(); x('http://ift.tt/2fwZoDH', 'WhatTodoHere?' ,[{ name:'.name actor-name' }]) .write('results.json') http://ift.tt/2hP6DHK

Submitted August 10, 2017 at 10:27PM by G3nzo

simple, just for fun async await task queue for node

http://ift.tt/2usYdvw

Submitted August 10, 2017 at 06:37PM by HansGans

Node.js 8.3.0 is now available shipping with the Ignition + TurboFan execution pipeline

http://ift.tt/2uspMoz

Submitted August 10, 2017 at 06:02PM by mmsme

Setting up Amazon Web Service: a Real Time Chat App On The Cloud With Docker And FeathersJs

http://ift.tt/2hK0bSr

Submitted August 10, 2017 at 05:14PM by redaBoumahdi

Finding real production MEAN apps' code

I've been told that one of the best way to learn and get better at programming is to look at other people's code. I would love to look at the code for a real, used in production, MEAN app. What would be the best way to find that?I'm especially interested to see how others structure their unit and integration tests for the backend and the frontend.

Submitted August 10, 2017 at 04:20PM by Neoflash_1979

Gathering opinions on full-featured frameworks (Feathers, Loopback, Nodal, Adonis, etc.)

I'm curious to hear opinions from those who have evaluated more full-featured frameworks such as Feathers, Nodal, Adonis, Loopback that provide more "out of the box". (The only thing I've heard consistently is to avoid Sails, and Trails seems to have not really taken off that much.)At work we build things with Koa, Sequelize, Passport, etc. and stitch everything together ourselves, which has worked great. For side projects, though, it'd be nice to have something closer to Django or Rails that gives you more stuff out of the box without having to wire it all up every time.Any opinions from those that have used one of these frameworks?

Submitted August 10, 2017 at 04:25PM by djslakor

Server-Render like a Pro /w Redux-First Router in 10 steps

http://ift.tt/2vRz3Gu

Submitted August 10, 2017 at 12:37PM by FaceySpacey

A new open source project to send all kinds of transactional notifications

http://ift.tt/2uryyDB

Submitted August 10, 2017 at 12:50PM by david2436

Adapter pattern in Node.js | RST IT

http://ift.tt/2vHZ4IG

Submitted August 10, 2017 at 12:23PM by RST_IT

Build a "Serverless" Stripe Store in 5 Minutes with Node.js and StdLib

http://ift.tt/2vRqZGp

Submitted August 10, 2017 at 10:28AM by keithwhor

What is the best npm lib to work with AWS Dynamodb?

Trying to find the best lib that can be used to work with AWS dynamodb. Would be better if it would be something like mongo/mongoose. That's how I have found the dynamoos and dynongo. What lib do you use? Why? ) Thanks

Submitted August 10, 2017 at 10:53AM by hakarapet

Uploading Images to a Node.js Backend Using Multer and Express

http://ift.tt/2vb8rk3

Submitted August 10, 2017 at 09:00AM by harlampi

Create Evernote Clone in MEAN

http://ift.tt/2hMLuOa

Submitted August 10, 2017 at 09:05AM by immortalcoder

Node v8.3.0 (Current)

http://ift.tt/2hMfObL

Submitted August 10, 2017 at 05:08AM by dwaxe

Wednesday 9 August 2017

NodeJS FileSystem: Write Data to File Using fs.createWriteStream()

https://www.youtube.com/attribution_link?a=SaFjUZ2pcaQ&u=%2Fwatch%3Fv%3DnkhLOldYQW8%26feature%3Dshare

Submitted August 10, 2017 at 04:07AM by duly-node

hapi Tutorial —€” How to Handle 404 Responses for Missing Routes

http://ift.tt/2upMny7

Submitted August 09, 2017 at 07:11PM by futurestudio

Become Nodejs Developer While Building Real World Applications

http://ift.tt/2wIZivL

Submitted August 09, 2017 at 07:27PM by debmace

You need an App, not an IT team.

http://ift.tt/2vO6s4V

Submitted August 09, 2017 at 05:13PM by nawazdhandala

An Easier Way to Authenticate Users in E2E Tests

http://ift.tt/2v1uLfQ

Submitted August 09, 2017 at 05:26PM by ginger-julia

Can you critique my attempt at writing an API function and unit test for it?

I'm about to begin developing a huge project, and before I write all the API I want to get some professional feedback and redo things correctly.So right now I try to keep my functions as small as possible "create" "delete" etc. But each function has a bunch of logic inside of it and relies on other data in the database as well as multiple SQL transactions.I read about spies and stubs.. but I can't grasp my head around how I could use them to test my API functions.As of now.. this is how I'm testing..Here's a function called create that creates a team in the database http://ift.tt/2vPmuvS here's the tests for it http://ift.tt/2wIh1DH someone please elaborate a better way I could either be creating my create function or the tests for the create function?Thanks

Submitted August 09, 2017 at 04:27PM by pomeloanthony

The easiest way to serve Angular 2+ from NodeJS

http://ift.tt/2vmVsJa

Submitted August 09, 2017 at 04:28PM by criszz

Simple key-value store with support for multiple backends

http://ift.tt/2vmHOs0

Submitted August 09, 2017 at 02:29PM by dyslexiccoder

Upcoming RegExp Features

http://ift.tt/2u2QOiV

Submitted August 09, 2017 at 11:16AM by sam_ua

JavaScript for People Who Hate JavaScript

http://ift.tt/2vLqSvg

Submitted August 09, 2017 at 09:50AM by ratancs

10-Write restful api with GET request

https://www.youtube.com/attribution_link?a=ZybYwiDu07I&u=%2Fwatch%3Fv%3D9EwvXkPJMvI%26feature%3Dshare

Submitted August 09, 2017 at 08:01AM by sunlight4d

Tuesday 8 August 2017

Using Express Router

http://ift.tt/2vonNxV

Submitted August 09, 2017 at 03:05AM by funJS

Created My First Module Today (for assisting those of use who use AWS for email)

http://ift.tt/2vKPg03

Submitted August 08, 2017 at 09:19PM by h1ll37

Rawkit – Immediately Open Developer Tools When Running Node.js Apps

http://ift.tt/2fiIBnB

Submitted August 08, 2017 at 07:14PM by clarke78

Any way to add timestamp to Nodemon?

Would like to see the time re: when changes are happening and seeing output

Submitted August 08, 2017 at 06:40PM by InsertCoinPushStart

Projects to learn node

I am interested in learning node and more about programming in general. What are some projects that I build to teach me more node. I already cloned colt Steeles YelpCamp without looking at his code or videos.

Submitted August 08, 2017 at 04:19PM by business_for_life

Learn regex the easy way

http://ift.tt/2uwf1i3

Submitted August 08, 2017 at 11:36AM by ratancs

Setup Nodejs Development Environment on Windows

http://ift.tt/2wsPrtP

Submitted August 08, 2017 at 09:46AM by jamesaidan111

Advice

I'm at a bit of a crossroads in my career. After using PHP based CMSes and frameworks for years I've been working primarily on front end contracts for a while now. I'm a huge fan of the JS ecosystem, which I think is much more organised and lends to better workflows than PHP.When I encounter clients looking for a whole solution, I would like to be able to offer a product built around node instead of the LAMP stack I've been clinging to, but I don't have the time or inclination to set up and maintain barebones node servers. Is this a problem that you guys come across? Are there SaaS like products which will let me easily host node apps? Are they reliable? Affordable? I find a lot of cloud services hard to price without trying them out.Huge thanks to anyone who can point me in the right direction!

Submitted August 08, 2017 at 09:53AM by baselinegrid

Here is what you need to know about JavaScript’s Number type

http://ift.tt/2vdDEAn

Submitted August 08, 2017 at 09:22AM by ratancs

TensorFire runs neural networks in the browser using WebGL.

https://tenso.rs/

Submitted August 08, 2017 at 09:24AM by ratancs

Machine learning comes to your browser via JavaScript

http://ift.tt/2vo0gQL

Submitted August 08, 2017 at 08:49AM by ratancs

Monday 7 August 2017

Redux-First Router - Interview with James Gillmore (@faceyspacey)

http://ift.tt/2vgcNDN

Submitted August 08, 2017 at 04:02AM by FaceySpacey

[Express] Recording size of response sent

Hey guys, just wondering if any of you have figured out how to record the size of responses sent when a user uses an API I've made? The idea is I want to record how much data they're getting off my API and be able to lock them out when they exceed some limit in megabytes. Is this feasible, or should I do something else to create request limitations?I was looking at the Content-Length header but I'm not sure if that would be the thing to use.

Submitted August 08, 2017 at 02:31AM by acylus0

"wait-as-promised" Easy way to wait for changes.

http://ift.tt/2uBe0DD, me and my colleague had this idea when we were testing the result of some promises with cucumberjs. What do you guys think about it? Some suggestions?

Submitted August 08, 2017 at 01:36AM by alexsuzume

09-Connect Node js with Mongodb

https://www.youtube.com/attribution_link?a=KT6-YfZoeYY&u=%2Fwatch%3Fv%3DlFuQ39jNLOg%26feature%3Dshare

Submitted August 08, 2017 at 01:44AM by sunlight4d

Nextein (Next.js + Markdown) New guides on getting started and more...

http://ift.tt/2uiQI6o

Submitted August 08, 2017 at 01:04AM by elmasse

Call NodeJS via Excel spreadsheet?

Hi,I have a Excel script that currently pulls the HTTP status codes from a list of IPs and present them in a text document.Would it be possible to call my NodeJS script straight from Excel like you do VBA code or am I asking for too much?

Submitted August 07, 2017 at 06:03PM by UpYourQuality

[Question] How to make an event based project.

Hello, I want to try to make a project for my self. My idea is to make an event based open source project and make events for Coinbase. How can I get started. I looked/familar with Coinbase API,but where do I start for making the events. So I could perform likeclient.on('payment'), () => { } http://ift.tt/2vGN1ec something like this project.

Submitted August 07, 2017 at 08:38PM by KoncealedCSGO

Compile error on package.json when trying to deploy

Hi guys, I have just started developing with Node.js, so please excuse me if this is a very silly question... anyway, I wrote a simple app, it works fine when I run locally. So now I'm trying to publish it with Heroku, but when I try to deploy the files, I get this error:remote: Installing any new modules (package.json) remote: npm ERR! Unexpected string in JSON at position 125 But I can't find anything wrong with the package.json file:{ "name": "test-bot", "version": "1.1.0", "description": "Test Bot", "main": "bot.js", "author": "Daniel Clua", "scripts": { "start": "node bot.js" }, "dependencies": { "discord.io": "^2.5.1", "winston": "^2.3.1" } }

Submitted August 07, 2017 at 07:24PM by DanielMGC

Using MySQL With Node.js

https://www.youtube.com/watch?v=EN6Dx22cPRI

Submitted August 07, 2017 at 08:07PM by ginger-julia

find-in: Searching Text In File.

http://ift.tt/2vIt5Zk

Submitted August 07, 2017 at 08:09PM by jimmy02020

API Authentication with Node | #6 - JSON Web Tokens

https://youtu.be/YxFZC8FtRao

Submitted August 07, 2017 at 05:23PM by eXtremeRR

Invite for Pull-Request - Make the 'licenseye' npm package compatible with older Node.js versions

THE CHANGELOG featured in the last issue the npm package 'licenseye' - Node.js CLI tool to visualize an aggregate list of your dependencies' licenses.Due to underlying packages requiring async/await functionality the tool wouldn't work with versions older than 7.6, which a user opened an issue about.I thought to jump in and invite an open call for anyone who'd be interested to contribute to the project by fixing the issue (babelifying or another way).Licenseye: http://ift.tt/2vI9KqP Full disclosure: I'm the author of licenseye

Submitted August 07, 2017 at 04:12PM by lirantal

Gulp - A beginner's guide.

http://ift.tt/2uyrEr7

Submitted August 07, 2017 at 04:16PM by gregbaugues

Protect your secrets from crossenv and other malicious NPM packages

http://ift.tt/2vjxS2C

Submitted August 07, 2017 at 04:27PM by gregbaugues

How can you do accent insensitive searches with regex?

It seems if you use the $text operator, you can use diacritics but it doesnt work with regex.Is this relative? http://ift.tt/2vx37aD seems regex with collation, strength: 1 doesnt work either.Here is an example query I have:router.get('/wine/search/wine/:name', auth, function(req, res) { wineName = req.params.name; var wineSlug = wineName.replace(/\s+/g, '-').toLowerCase(); var db = req.db; var collection = db.collection('wines'); var wineSearch = '/' + wineSlug + '/'; collection.find({slug: eval(wineSearch)}).collation({ locale: 'en', strength: 1 }).toArray(function(err, docs) { res.render('searchwine', { "wineslist": docs, params: { slug: wineSlug, winecount: docs.length, search: req.params.name } }); }); });

Submitted August 07, 2017 at 03:18PM by InsertCoinPushStart

Simple REST API with Auth and PostgreSQL?

Hi!I want to write a personal finance app (mostly budget and transaction data) for my dad and myself. What can you recommend for creating a simple RESTI API with login/auth and PostgreSQL? I don't care about things like security that much at this point as it will never be released to the public, so I'm looking for something quick to set up which serves it purpose.Thanks for your suggestions!

Submitted August 07, 2017 at 01:40PM by Shovez

Is there a memory leak on one of my express servers?

Hi guys, I've just launched two Express servers on a $5 DigitalOcean droplet along with an instance of mongodb. The first server is querying the api and serving templated html pages, the second server is an api written in express interacting with the database via mongoose.When I use htop to see the memory usage, the total usage is usually around 200-250mb (out of a total 488mb). The only thing I can see changing is the blue bars which I assume is buffer memory, the actual green memory in usage seems to always be the same.I look on digitalocean's graph however and over the past 24 hours the memory graph has been climbing upwards slowly - is this a memory leak within one of my servers?I'm running PM2 with both of the node servers as start up services.Here's a look at the graph of the memory usage, the server has been up for around 15 hours now.And also a screenshot of htop on the VPS.This is the first time I've deployed an app so I assume I'm making a mistake somewhere, any ideas of where to go next to fix it?

Submitted August 07, 2017 at 01:10PM by wires55

NodeJS hierarchical logging module?

I am trying to find a suitable replacement for log4js.Basically i am looking for something more similar to pythons logging framework. Basically where i can define a hierarchy of loggers.For example in python:logger = logging.getLogger('hats.cats')This creates a logger cats, that has a parent logger hats. I can configure hats, attach handlers, etc to it, and it will propagate downwards in the tree to cats.Log4js - Does not elegantly support this without me defining every logging category in advance.winston - Does not support child loggersRufus - Has not been updated in almost 4 yearsdebug - Is awesome, but its too basic for my needsBunyan - Does not easily support child loggersThe main reason i am looking for this is because our codebase is massive. I would like to be able to turn on and off diagnostic logging for parts of our app while the app is running. E.g. i would like to be able to suddenly disable all loggers under app.models, or if i really wanted to be specific i would turn on logging for app.models.Cat.

Submitted August 07, 2017 at 08:55AM by SonOfSpades

Sunday 6 August 2017

Very small and secure a URL-friendly unique ID generator for JavaScript

http://ift.tt/2fiSvFE

Submitted August 07, 2017 at 07:45AM by ratancs

How to store number of fb shares?

We allow for our users to share their stories in fb, twitter and imgur. Our client contains the following number in export class Story facebookEventCount: number; twitterEventCount: number; imgurEventNumber: number; But the Node.js do not store these numbers in the database. Have you any idea, how I can code it?

Submitted August 06, 2017 at 05:18PM by Emajt

I wanted a small boilerplate for koa.js graphql API server. I couldn't find any up to date, so I've made another boilerplate

http://ift.tt/2vv8uqC

Submitted August 06, 2017 at 06:39PM by Capaj

Building an event system in NodeJS using Redux and Sagas

http://ift.tt/2ueoHwB

Submitted August 06, 2017 at 06:47PM by FkGhost

An easy to use yet complex NodeJS web application framework.

http://ift.tt/2v8NOUs

Submitted August 06, 2017 at 03:58PM by kepempem

Using Sql Server from NodeJS

http://ift.tt/2jG9PSy

Submitted August 06, 2017 at 02:46PM by funJS

Did somebody scrape instagram?

Hi guys, need some help. I'm trying to scrape some pics from one instagram tag page. I'm using needle module and trying to request the page which u get by clicking "load more" button. The problem is that i always get this response: { data: { hashtag: { name: 'name_of_my_tag', edge_hashtag_to_media: [Object], edge_hashtag_to_top_posts: [Object], edge_hashtag_to_content_advisory: [Object] } }, status: 'ok' }I cant figure out what I'm doing wrong. I'm already sending the same headers with csrf token and cookies(from first request) like my browser does. But still getting this, and browser gets full valid json.I hope to get some suggestions please.

Submitted August 06, 2017 at 01:40PM by sergey_yermak

What if a public node package has no license?

For some reason I cannot find succinct information on Google:What if a public node package in npm has no license specified? (Package in question).Does this mean it is completely free to use for everyone, or does this mean it is not free to use publicly or commercially?I imagine it's the former, since there are thousands of downloads of this particular package.Information I've found regarding this topic, but which did not answer my question. (I might be too dumb to grasp a conclusion out of these discussions):http://ift.tt/2vbuvIv the UNLICENSED option, it seems to specify that is for private and unpublished packages only.I'd appreciate a clarification!

Submitted August 06, 2017 at 01:30PM by gluonnode

Using PostgreSQL with Azure And Node.js – Burke Knows Words

http://ift.tt/2tQuTvj

Submitted August 06, 2017 at 12:26PM by r-wabbit

How to direct a user to an available websocket server when she logs in to my multi-server Node.js app?

I have seen many realtime apps that do this: When a user logs in she doesn't know which server she will be assigned to. She will just login, do something and logout and that's it. A user won't be interacting with other users on a different server, nor will her details be stored on another server.In the backend I assume the Node.js server will put the user's login details to some queue and then when there is space it will assign this user to an available server (A server that has the lowest ping value or is not full). Because there is a limit number of users on one physical server when the user tries to login to a "full" server it will direct her to another available server.I am using ws module of node.js. Is there any service available for this purpose or do I have to build my own? How difficult would that be if I need to run the same app on different servers and be able to assign users to one of the available servers?

Submitted August 06, 2017 at 11:35AM by tvallday

Saturday 5 August 2017

Question about scale?

Hi /r/node!I'm brand new to node.js - I've made a small 4-player HTML/JS game as well as a chatroom with socket.io.I'm currently working on a Unity game, and have decided to custom-code the multiplayer side of it with node.js and socket.io.My question is pretty simple:I want my project to be scaleable to have a lot of people playing at once - is this best accomplished through having a few (or even a single) node.js server(s) with many rooms, or by running a full server for each game?Thanks

Submitted August 06, 2017 at 05:19AM by MitchTJones

Pattern for CoffeeScript modules

http://ift.tt/2vCriVo

Submitted August 06, 2017 at 12:25AM by thewwfguy

Simple server side cache for Express.js with Node.js

http://ift.tt/2uzTWoX

Submitted August 05, 2017 at 02:52PM by harlampi

What the f*ck JavaScript?

http://ift.tt/2eXzVCJ

Submitted August 05, 2017 at 01:55PM by ratancs

07-Events in Node js

https://www.youtube.com/attribution_link?a=n9Tu8fQlZpw&u=%2Fwatch%3Fv%3Doj7GCJg3wJk%26feature%3Dshare

Submitted August 05, 2017 at 01:02PM by sunlight4d

Introducing http/2

http://ift.tt/2wfNPV0

Submitted August 05, 2017 at 10:20AM by fvilers

Friday 4 August 2017

Creating a microservice in NodeJs

http://ift.tt/2nM2gOk

Submitted August 05, 2017 at 12:03AM by funJS

Node.js Streams: Everything you need to know

http://ift.tt/2twMRG5

Submitted August 05, 2017 at 02:53AM by fagnerbrack

qroute - CLI utility to host fast TCP forwarding servers

http://ift.tt/2vqmK4a

Submitted August 05, 2017 at 12:53AM by Etha_n

wtfjs: A Repository With Most Known JS Counter-Intuitive Behaviors And Their Explanations

http://ift.tt/2eXzVCJ

Submitted August 05, 2017 at 02:14AM by fagnerbrack

Looking for a very clean and simple Node API for MySQL CRUD

I'm a Node beginner, and I've been going through tutorials, trying to put together a basic Node project to connect to a MySQL database.After jumping through several tutorials, my project is just a mess. And now it's broken and I don't know why.Does anyone know of a clean and simple Node project for an API on MySQL that just does basic gets and posts?

Submitted August 05, 2017 at 02:08AM by mostlyemptyspace

Omnent Network - Discord server for creative Node people, code people, and gamer people

http://ift.tt/2ucbaJP

Submitted August 05, 2017 at 01:48AM by Etha_n

VueJS Nodejs Tutorial

http://ift.tt/2vAV5O6

Submitted August 05, 2017 at 12:17AM by KrunalLathiya

The marriage of WordPress and Grunt/Gulp

Please don't mind me, I was recommended to come here because I'm a bit unexpectedly out of my depths.I got hired to do some conventional WordPress work where the experience talked about making plugins and doing some design/layout changes.There are a lot of great resource, utilities and frameworks that I've yet to get up to speed on, though, and Grunt and Gulp are a pair of them that are currently in a staging environment I don't own and operate but that I have to work within.Nothing about the hosting, WordPress or the plugins in this installation seem to indicate that they're doing any CSS minifying, but I found files for Grunt and Gulp and associated package files in the site's theme folders.I didn't know they existed as of two weeks ago, and they both appear to allude to minifying CSS (among many other tasks).When I make a change to the stylesheet (the real one, just regular *.css) there's no conventional way to see it represented on the site, which is in a staging environment, because the source of the page is only pointed to the minified stylesheet, which does not update to reflect the changes.I asked in /r/WordPress thinking that if someone made the effort to bind the two, that there'd be some deliberate connection, like some way to be sensitive to both softwares to make the change and have the minification "triggered" the appropriate way. From the sounds of it, my issue leans more on my lack of understanding of how these two tools operate in a staging environment, and so it was recommend that I come here and seek your help.There was something along the lines of a 'watch list' or some similar-sounding convention, that would look for changes in files before going through every task on their list, which, it seemed, would include minifiying those new regular-stylesheet changes. That doesn't happen, though, and so I'm wondering what particular piece of fundamental knowledge I am ignorant of (in this case...that could be its own list! =)Thank you so very much, genuinely.

Submitted August 04, 2017 at 09:50PM by HelpsWithWordPress