Friday 31 August 2018

What do I need to be a back end engineer working with node?

What skills should I have?Common things to expect in interviews?At a point, I just don't know what more to research. I guess I don't know what I don't know

Submitted September 01, 2018 at 03:15AM by jsscrub

Caching and ratelimiting made simple. Feedback Welcomed!

Hi, I recently released v0.3.0 of my new package simple-data-loader on npm. It is a simple function wrapper that caches the results in memory as a promise.Its api is heavily inspired from facebook/dataloader but supports very different features.simple-data-loader supports wrapping functions with varying number of arguments, and arguments that are not necessarily primitive values.It is made to be flexible and easy to use. I use it to improve performance and reduce load on external resources (like calls to my database for non realtime sensitive information).Please read the README, and let me know if this is something you would like to use in your projects.All feedback is welcome.link to npm: simple-data-loaderThanks!

Submitted September 01, 2018 at 02:56AM by davidmdm

As an experiment, I cloned "Streamable" using node. What do you think?

https://ift.tt/2wDSRgb

Submitted September 01, 2018 at 12:27AM by chicametipo

module-timing - identify the heaviest and slowest modules within your app with a simple breakdown tree

https://ift.tt/2wt7qCi

Submitted August 31, 2018 at 10:12PM by dankalen

Need help running a file.

Hey, I am doing a project for a job interview, and they want me to make a small program using Sibilant, which I never used before. I followed the instructions they gave me, but can't get passed this point ";; Install Sibilant by running: ;; npm install -g sibilant ;; Then, copy this file to a local directory and run it to see an explanation of the project: ;; sibilant -x -f project.sibilant "I installed NPM, node.js and sibilant, and copied the GitHub file to my local directory, but when I try to run the file, nothing happens. I know to replace the -x with the directory, and -f with filename. I am not asking for help on the project, just getting the file to run.​Thank you in advance.

Submitted August 31, 2018 at 07:47PM by Misterman30

Inserting a hashed password into MongoDB with bcrypt does not work, but plain text password inserts fine

Sorry if this is a really novice question. I'm currently learning Vue with a Node backend and am creating a Sign Up form.My form posts the sign up data to the backend using the fetch API. I catch the POST request in my server.js file and create a newUsermodel. When populating the password of the model, I run it through an encryption method using bcrypt:let newUser = new userModel({ username: username, email: email, password: hashPassword(password) }); hashPassword function:function hashPassword(password) { bcrypt.genSalt(saltRounds, (err, salt) => { if(err) { return console.log(err); } bcrypt.hash(password, salt, (err, hash) => { if(err) { return console.log(err); } return hash; }) }); save new user:newUser.save((err, user) => { if(err) { return res.send({ success: false, message: 'Server error: ' + err }); } return res.send({ success: true, message: username + ' successfully added.' }); }); and for some reason, the password will not save into my MongoDB instance hashed, but saves fine as plain text.Can anyone help please? Or point out a stupid mistake I've made somewhere.If you need any more info or code samples, please let me know.Thanks for your help. :)

Submitted August 31, 2018 at 08:05PM by _fka_

Фриланс проекты › Внести правки в back-end. Часть 2 Внести правки в back-end. Часть 2

https://ift.tt/2CgQF3t

Submitted August 31, 2018 at 06:40PM by ICYMI_email

Introducing Awaitjs-Express: Async Function Support for Express

https://ift.tt/2PospxJ

Submitted August 31, 2018 at 05:59PM by code_barbarian

The Laravel Admin Panel That You Need

https://ift.tt/2NlsWA3

Submitted August 31, 2018 at 06:35PM by ICYMI_email

Looking for something to do this weekend? Opengift Weekly Online Contest: Week 3 - Node.js!

https://ift.tt/2wuXYy0

Submitted August 31, 2018 at 04:18PM by OpenGift

What kind of blog posts would you like to see here?

I am wondering what kind of blog posts people here would like to see on the sub. I am curious as to if people want basic ones or stuff like mirco service based applications.

Submitted August 31, 2018 at 04:58PM by jsdfkljdsafdsu980p

News Clipping/Email Newsletter App (Node+React)

Sharing an open source project we've released here at the Case Foundation! Please check it out, try it out, and submit ideas for features and bugs!Weekly Roundup is a news clipping and emailing tool built for the Case Foundation's internal communications team. The tool scrapes metadata (title, date, publication, and description) from submitted URLs, then formats the information into a newsletter that users may organize and edit before sending. The system distributes the newsletter via SendGrid.https://ift.tt/2BA1zwr

Submitted August 31, 2018 at 02:38PM by johnjones4

How we built an automated dependency verification tool to secure Node

https://ift.tt/2wAROwv

Submitted August 31, 2018 at 03:40PM by rhyswes

Hosting a web server on my companies internal network with a VM (Red Hat Linux)

I'm trying to host a web server on a VM running Red hat Linux in a Network Attached Storage unit on my company's network using NodeJS/Express. I've hosted a server with Express before on my own personal computer on my home network, but I can't seem to figure out how to do it in this setting.In the interest of privacy, I'm not going to actually write out the IPs, as I don't know how those could be used adversely...so I'd rather be safe.I'm listening to port 3000 in Node on the VM, and the NAS is located at "IP1"(10.xx.xx.xx) on our network. As of now, all the server does is return some JSON when the "/" route is requested.After running ifconfig, I see an "inet" IP and a "broadcast" IP, and I've tried navigating to those via port 3000 in my browser and I get nothing.I access the VM for remote access via http://IP1:8080. IP1:3000 doesn't work in my browser either.Do I need to forward the ports within the VM somehow? So that port 80 points at 3000, or something similar? Please feel free to ask questions, as this is something I'm new to (Red Hat Linux and hosting a server on an internal intranet via VM).To clarify, this server is NOT meant to reach out to the Internet, only within my company's network. We have lots of web services running this same way, so I know it can be done, I've just never done it before so I'm a bit lost.EDIT: Spelling

Submitted August 31, 2018 at 03:00PM by PM_ME_A_WEBSITE_IDEA

Learning Node without JS experience

Hi, I'm looking for the best resource (online) that would help me jump into Node.js without any JS experience. I bought a udemy course on Node JS, all was going well but I'm starting to slow down.​An example is:var duplicateNotes = notes.filter((note) => {return note.title === title;});​I have the fundamental grasp that filter takes a callback but the syntax is really throwing me off. I can simplify the line some by moving the function and calling it but I'm still struggling with the idea.​I don't need the above explained, it's just an example of what I need from a JS tutorial.​

Submitted August 31, 2018 at 03:13PM by eastoncr

JavaScript idiosyncrasies

This is a collection of things in JavaScript that may not be well recognized, espcially to beginners.Disclaimer: Some of these snippets are simply to demonstrate the quirky parts of JavaScript and by no means encourage best practices and should never be seen in production code.​https://ift.tt/2PUif97

Submitted August 31, 2018 at 02:12PM by reddittedf

Will someone please explain to me how to unit test and any tutorials to get me started?



Submitted August 31, 2018 at 03:01PM by unstoppablenow

IDGAF-js it's just a best architecture in node.js

https://ift.tt/2C1G6B9 (sarcasm)

Submitted August 31, 2018 at 01:47PM by reddittedf

Unit testing

Hi, I started node recently an I heard about unit tests, this confused me so much. I don't really understand what are they, but I guess it is a way of testing if my app works correctly. The thing that confuses me is why do we even need them? Can't I just test everything manually, e.g every time I save something in the DB, manually check if the record has been saved? Thanks in advance:)

Submitted August 31, 2018 at 01:25PM by everek123

Framework help

Hello guys​I will be building a game server, and I need some help in choosing a framework.I would like to choose a framework that does most of the decisions for me as in architecture and relations. Since I am still learning node, I would like to use this opportunity to learn from a fw that has best practises inside.​For the game part, I will need web frontend for statistics, bunch of tables and some actions as well. Players will be able to enter the dashboard to see detailed statistics for themself, so It would be cool if the framework has support for different user groups ect.. I will use angular6 to build it.Database should be mongo, as it is the one I am familiar with and I have been using it for some time now.Mobile app for the game will be needing socket connection to the game server. Although, there is no multiplayer options, It would be good if I could have chat groups for players to enter and chat. Also, user session management and (login logout) would be great.​I already looked into several frameworks (sails, loopback, actionhero, nestjs, ect...), but I know you have much more experience in them so you can help me make the right choice.​I am familiar with writing game backend code, but not so much with dashboard features. This, with socket user session management would be the main part where I would expect help from the framework.I come from strongly typed environment, so typescript or modern js features are a plus if used. Anything that goes in that direction.Scaling of course is important.​Is there one solution for this, or will I need to do game server and dashboard separately?​Help me please :)​My colleague brought to my mind that our priority is game backend. We can always hook up dashboard up with loopback+angular.

Submitted August 31, 2018 at 09:52AM by matejthree

Install mongoDB on digital ocean server

Hi, I recently learned how to deploy a node js app, however the tutorial didn't show how to install mongoDB. Do you know any good tutorials that show this process? Or is it better to use a DB hosting service such as mlab? Thanks in advance :)

Submitted August 31, 2018 at 09:28AM by everek123

Thursday 30 August 2018

My first package in npm

Hi guys, I created my first package in npm, any suggestion is welcome!!https://www.npmjs.com/package/kigi​

Submitted August 31, 2018 at 04:02AM by zmisael

Question about Electron Asar permissions

In my Electron app, I am using an SQLite3 database. I need to write to this database but since the packaged asar file is read only, how can I get past this problem? Is there another way of storing data?

Submitted August 31, 2018 at 04:01AM by Jarmahent

understanding profiler output

Buy Learn and Understand NodeJS course at 2018?

I've been looking whether is a good choice at 2018, I have doubt because appears outdated from close 2 years ago, but in any place that I look for info, I end reading good things about this course (from few years ago), I would like to ask you, currently on the latest august 2018, it still being a good purchase?Link; https://ift.tt/2LHIuwj you help me with your opinion about?

Submitted August 31, 2018 at 02:03AM by MagoMerlin

Mocha glob pattern

https://ift.tt/2PRYwqB

Submitted August 30, 2018 at 07:09PM by ICYMI_email

ITFM & Cloud Computing News

https://ift.tt/2PnNGb3

Submitted August 30, 2018 at 06:59PM by ICYMI_email

How to Write a Node.js CLI using OpenCV with Neural Network Models for Image Classification

https://ift.tt/2N56K0e

Submitted August 30, 2018 at 07:04PM by ICYMI_email

I want to add images and save url to mongodb

I have a project running on heroku, and I want in my form where I add new items to add images that will be directly saved in the public folder on the heroku app and the url to be saved in the Mongo database(so I can pick it up later to src the image). How should I do this ? maybe also with cropping the image to a fixed ratio.

Submitted August 30, 2018 at 06:34PM by shiust

How Would You Build A Node Based Marketplace

I had an idea for a marketplace in a small niche and was thinking of working on it as a side project.​This is more for fun / out of curiosity, as I know there are much easier ways to build a marketplace MVP, but if you were going to work on a Node based marketplace, would you build on top of an existing open source solution like Strapi? Or start from scratch? What tech stack would you be looking at?​How would your thought process change as you get bigger / have a large amount of investment?

Submitted August 30, 2018 at 05:54PM by dfkjshkflhdgdfgfd

An article discussing the basics of REST API design

https://ift.tt/2wqCQdl

Submitted August 30, 2018 at 12:16PM by tpiros

Build next generation app with live projects and master in developing Node

Learn to build projects and next generation app from scratch in this course. Join us and be have the first mover advantage in this amazing emerging technology and learn to build the next generation apps.What you will be learning -Learn to build chat IOLearn to build portfolio AppMaster E learning systemLearn User Login systemThis course will train you Html/CSS frontend technologies, NoSQL database, Column Databases, Database ORM. You will learn how to design next generation app by learning multiple projects.Start your new learning phase now with NodeJS by building multiple projects from - https://ift.tt/2PQvNmk

Submitted August 30, 2018 at 12:31PM by SuspiciousCompote6

Strapi v3@alpha.14 - GraphQL Aggregations, Customization & Security

https://ift.tt/2wtpuwF

Submitted August 30, 2018 at 10:36AM by pierreburgy

Client does not support authentication protocol requested by server;

accessing mysql via local ip from a different computer

Submitted August 30, 2018 at 10:22AM by cariaga123

A better npm install

https://ift.tt/2EsqvXD

Submitted August 30, 2018 at 10:26AM by kimchimac

Angular 2(or 4) and NodeJS- A Complete Guide to MEAN Stack

http://sumo.ly/Stba

Submitted August 30, 2018 at 09:00AM by aqsir

mocking microservice dependencies [Mountebank]

https://ift.tt/2Nwt3cd

Submitted August 30, 2018 at 07:35AM by castlemilk

Wednesday 29 August 2018

Complete beginner wondering how to work a GroupMe bot example in node.js

Hi, I’ve been working on a GroupMe bot for chats that are specified for different subjects for my classes to have fun and assist my classmates but I’m completely new to this and have been following this template and it works well for commands that take input from a user in the chat and provide output like an image. I’ve already deployed it to Heroku and it works in the chats for responding to commands with just text or links.I’m wondering how to connect to things like Google Calendar, which is probably through their API, but I’m wondering how I’d go along as to doing that for taking a command input with details, for example: /addevent Test Friday which would add that event to a google calendar on the upcoming Friday, and later have that same bot give a reminder the day before the event begins.Any pointers for learning how to connect with the API or even if there’s npm packages that would work for the GroupMe bot that’d be very helpful.Basically my question is, how can I use external API’s when someone tries to use a command in a GroupMe chat so that they’d get a response based on that API’s information?Maybe tutorials or anything of the sort that would help in regards to what I’m trying to do?

Submitted August 30, 2018 at 01:13AM by learningconstantly

TensorFlow.js Crash Course - Machine Learning For The Web - Getting Started - CodingTheSmartWay.com

https://ift.tt/2LC3GUB

Submitted August 29, 2018 at 08:32PM by codingthesmartway

Nodejs IIS deployment issues

Hi, i'm nearly finished with my first node app, it's a real time chat application. I'm looking for something else to build, any projects you guys have in mind or ones you worked on would be appreciated.



Submitted August 29, 2018 at 07:20PM by Giiin

RunKit is Node prototyping

https://runkit.com/home

Submitted August 29, 2018 at 06:32PM by ICYMI_email

Build a Task List with Authentication Using SQL, Node.js and Adonis (Part 2) | Jscrambler Blog

https://ift.tt/2N19P1a

Submitted August 29, 2018 at 06:37PM by ICYMI_email

Converting rsa public key xml to pem format for crypto.publicEncrypt ?

Casbin: An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js

https://ift.tt/2vwJtKC

Submitted August 29, 2018 at 04:58PM by hsluoyc

Need Feedback on my Node module

Node Architecture Generator I just made a architecture generator for Node projects. I am looking for feedback on the project. It's a node modules which generates a PNG image of module-to-module relationships in your projects. Also shows exports of each module.GitHub Link

Submitted August 29, 2018 at 05:21PM by CodeNinjaWarrior

Node.js and Ruby on Rails compared

https://ift.tt/2N05oDH

Submitted August 29, 2018 at 05:36PM by sandrobfc

want to buy a gift (beginners book to node). which one to choose?

Hi,​I've found this book with nice topics. "Node.js in Action, Second Edition".I want to offer it for my friend birthday who is learning webdev in nodejs.Q: is it a good fit for beginners with updated contents?​PS: I am not a developer :O​Thanks :)

Submitted August 29, 2018 at 05:50PM by include007

Use 'let' and 'const' instead of 'var'

https://ift.tt/2NvayVv

Submitted August 29, 2018 at 05:54PM by evertrooftop

Live Phone Call Audio Streaming

Has anyone ever tried working with live streaming the audio from a phone call to a server to process that audio for usage? If so, can anyone try and point me in the right direction?I've looked at different VoIP services like Twilio and Nexmo, but they don't offer the ability to access the live audio stream from a call that's happening in real time. I want to get that audio stream in real time to send to my server and process it myself for other uses.Would appreciate input from anyone on this!

Submitted August 29, 2018 at 02:09PM by deve1op

Lerna changes to non-FLOSS license, prohibing use by companies who are ICE collaborators

https://ift.tt/2NxtEuh

Submitted August 29, 2018 at 01:55PM by curiousdannii

Help - How to Reverse a crypto hmac function

Hello friends!I have a crypto function here, and the output of testcardmac is: 3b9eb72dbad8e246b5b3483a7bc18e57708d3cbf3db84594b00bc0360c3f33f1​var crypto = require('crypto'); var testcard = '378282246310005' var hmackey = '038445bb4e33677064ff911095b2416efe272adf' var testcardmac = crypto .createHmac('SHA256', hmackey) .update(testcard) .digest('hex'); console.log(testcardmac);​If I wanted to reverse this to get testcard again, how is this done? (conceptually and/or programmatically)And if so what is the reverse output of:cb15h+Mzl5pZxeNSWe3b

Submitted August 29, 2018 at 12:31PM by StellarSteve

Fastest/Most performant HTTP framework/lib?

What is the fastest HTTP server lib as of 2018? Looking online I see a lot of varied results, generally I see that Koa2 is faster than Express and raw Node being the fastest. Is this the case?

Submitted August 29, 2018 at 09:22AM by TG__

How to use local js file like jquery.js, instead of using CDN in NodeJS app ?

react-native-video component code base

https://ift.tt/2BTivCt

Submitted August 29, 2018 at 08:03AM by rest453w

Tuesday 28 August 2018

gyp ERR! stack Error: `gyp` failed with exit code: 1

I'm trying to compile node project using jenkins, which hosted on windows machine.When I run npm install command, i'm getting following errors. What does it mean and how to overcome it ?​gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stackat ChildProcess.onCpExit (C:\Program Files (x86)\Jenkins\tools\jenkins.plugins.nodejs.tools.NodeJSInstallation\NodeJS\node_modules\npm\node_modules\node-gyp\lib\configure.js:345:16) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:239:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\\Program Files (x86)\\Jenkins\\tools\\jenkins.plugins.nodejs.tools.NodeJSInstallation\\NodeJS\\node.exe" "C:\\Program Files (x86)\\Jenkins\\tools\\jenkins.plugins.nodejs.tools.NodeJSInstallation\\NodeJS\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"HOWEVER when I run npm audit fix --forceI'm not getting that error. Downside is I don't want to update my dependencies cause the project is build specifically for them​EDIT 01: Complete ERROR log​https://ift.tt/2MZHTuA

Submitted August 29, 2018 at 05:59AM by YouWillNeverSeeMe

How to use Docker for Node.js development

https://ift.tt/2LzOur3

Submitted August 29, 2018 at 05:25AM by codycraven

Node-postgres question regarding clients

In the FAQs, it says that if you need a one time query, you can simple use pool.query, but what does it mean by "one time"? Is this one time?app.post('/test', async(req, res) => { let result1 = await pool.query(`statement`, [data]) .then(result => { return result; }) .catch(err => console.log(err)); let result2 = await pool.query(`another statement`, [more_data]) then(result => { return result; }) .catch(err => console.log(err)); }); Will the first query release the client back to the pool when it is done?

Submitted August 29, 2018 at 12:50AM by eggtart_prince

Featureful Board-based Task Manager for the Terminal

https://ift.tt/2v4JepI

Submitted August 28, 2018 at 08:27PM by ohaiomasta

Help with Jira webhook server.

Hi all, I've been looking all over the web for a simple tutorial on how to make event handlers for a Jira webhook but so far I've come up with nothing. Currently I am trying to use the jira-connector node package but the documentation is verrry light and even looking at the source code doesn't help me because there doesn't seem to be anything beyond getting and deleting webhooks. Even in the source, the comment just says returns a promise. I am not sure what to put in the options, or even whether or not I need some kind of auth.​If somebody could point me to a better node package or github library, or better yet, help me understand jira-connector that would be very much appreciated.

Submitted August 28, 2018 at 08:39PM by KO782KO

github-feed-notifier - A cross-platform desktop notification service for notifying you when your personal GitHub dashboard feed gets updated with new activity!

https://ift.tt/2N04vLs

Submitted August 28, 2018 at 08:41PM by MihirChaturvedi

Temporary Session Storage using Node.js?

I have a bot that I have coded in node.js and users interact with this bot. You can talk with it and use commands but everything is pretty come and go. There is no storage of persistent data (except for a MySQL database to keep track of certain things like how much gold a person has, which they obtain by interacting with the bot)​I was working on creating some games with the bot that users can gamble the gold with. And the game I coded was a blackjack game. (Simple 21 against the bot)​The user is dealt two cards to start and can either hit or stay and the values are added up. The hard part of this though, is that only one person can seem to play at a time because of conflicting function calls. So I was wondering if there was a way using node.js to have temporary storage of persistent asynchronous data.So I could code something like:function playBlackjack(userid, betamount){ session_start(); var unique_id = session['id']; { ... } //all the code for the various things like hitMe(), stay(), start(), endGame() etc... giveReward(session['id']); //for if they win/lose it'll get removed/added to their mysql user session_end(); //this cleanly ends the players session and if they were to run the blackjack command again it would start a fresh session, giving their userid a new session variable } So that way the user can walk away from the bot, come back tomorrow and since the session never ended they can pick up where they left off and continue playing as long as their session hasnt ended cleanly and other users data for their unique sessions are tracked individually.I generally dont want to use a JSON file to do this because I dont want to clog the server up with JSON files (sure I could have them set to auto delete after X amount of time, but if there is a more elegant solution I would love to explore that)​Next, I want to try to code a DND mini game where the bot generates random scenarios (this parts already done) but I need persistent sessions so that when the bot prompts the user to roll a die and awaits their response, they enter !roll d20 and the value thats retrieved from the roll, can then be used in the bot for the progression of the story telling. I wonder what is the cleanest way to handle this also. I dont think MySQL would work here, nor would a JSON file unless i create a JSON file that has username, date/time, story (other data like gold, stats etc) to keep the story telling persistent..​Any ideas? If the JSON route is the best, I assume I would have to create files like:DND_userid.jsonBLACKJACK_userid.json​which would have multiple arrays with session_idsI reckon it would look something like this{ "user_id" : "mrsodasexy", "mode": "DND", "sessions": [ { "id" : "845skjjd93jf94f", "data": [ { "date_start" : "08/27/2018 15:11:11", "date_end" : "08/27/2018 16:30:32", "story" : " ... ", //as HTML string "last_sentence" : "you rested in the inn", "stats" : [ ... ], "inventory" : [ ... ] } ] }, { "id" : "167sjd93j9woiwiw", "data": [ { "date_start" : "08/28/2018 16:14:16", "date_end" : "", "story" : " ... ", //as HTML string "last_sentence" : "and you found 20 pieces of gold", "stats" : [ ... ], "inventory" : [ ... ] } ] } ] } And I would just look for each session where date_end is empty and continue from that session?Is that the best way to do this?​

Submitted August 28, 2018 at 07:11PM by mrsodasexy

Best Practices For AWS Lambda Timeouts

https://ift.tt/2NoKUl5

Submitted August 28, 2018 at 07:40PM by ranrib

Cracking JWT Tokens: A Tale of Magic, Node.JS And Parallel Computing | SkillsCast | 11th July 2018

https://ift.tt/2PKyB4c

Submitted August 28, 2018 at 06:57PM by ICYMI_email

Using Mac to survive as a developer: My Mac terminal & app setup for .NET Core, Java (Android), Node, Golang (Go), and more...

https://ift.tt/2BXGosE

Submitted August 28, 2018 at 07:02PM by ICYMI_email

Send data to client

Hi, I have a simple route which renders an ejs view. Is there a way to send data to my JavaScript front end script? Thanks in advance :)

Submitted August 28, 2018 at 06:25PM by everek123

How to Write a Node.js CLI using OpenCV with Neural Network Models for Image Classification

https://ift.tt/2BVUpqL

Submitted August 28, 2018 at 04:26PM by kiarash-irandoust

JavaScript Object Type Coercion

https://ift.tt/2PcUJD4

Submitted August 28, 2018 at 05:21PM by nucleocide

Best Practices for AWS Lambda Timeouts

https://ift.tt/2BTT8AE

Submitted August 28, 2018 at 05:35PM by nshapira

Looking for programming buddies to discuss Node.js topics in voice chats

Hi! I'm Max, 35 y.o., from Russia. I've worked as a programmer for 15+ years. I work remotely on private projects. Since August 2017 I've worked only on projects which use blockchain, mostly Ethereum. I often work on projects alone. So, I'm a full-stack developer.I’m currently working with the following technologies:- Programming languages: JavaScript, TypeScript, Solidity- Backend: Node.js- Front-end: Angular- Databases: PostgreSQL, MongoDB, Redis- Message Queues: RabbitMQ- Blockchain: Ethereum- DevOps: Docker, Ansible- OS: Linux, macOSI suggest having 45-60 minutes tet-a-tet audio/video conversations from time to time. We can discuss tech news, do code reviews for our open source projects, help each other with finding solutions for tech problems, etc.I try to have one voice chat per day. I work in small teams and such conversations help me be informed about tech news and trends, learn new patterns and so on.I'm able to have the conversation within this time range: 4:00-9:00, 12:00-18:00 UTC, any day of week.If you are interested in discussing above-described techs and that time range is suitable for you, contact me via Discord max7z#4494 or Email max7z@protonmail.comThank you!

Submitted August 28, 2018 at 03:30PM by max7z

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

https://ift.tt/2MCeGGP

Submitted August 28, 2018 at 01:33PM by Fewthp

Best practices for file structure in a Node / Express app using Gulpjs

I've just started messing with Gulp and I really like it's potential. But many of the tutorials I watch depart from the Node / Express file structure that I'm used to.Is it the practice with a Node app using Gulp to simply put an entire project including server files into the production (dist) directory? Minifying everything?

Submitted August 28, 2018 at 09:03AM by InkToe

Good resources to learn node

Hello,I have a friend who wants to get into software (mostly, web) development, and I think a good idea is to start with node. Guy has only some experience from his high school where they learned the basics using Pascal.What would be the best resources on node js for dummies?

Submitted August 28, 2018 at 07:26AM by helge47

Monday 27 August 2018

SDK for PDF documents creation and manipulation in Aspose.Cloud

https://ift.tt/2BRFldN

Submitted August 27, 2018 at 10:57PM by Aspose-PDF

Formatting buffer from console in node / electron app

Hi all, I am working on an app that takes results from a terminal command, like “cd desktop\n ls\n”, and displays it in the UI window. I’ve been able to convert the buffer with .toString(‘utf8’).split(RegEx stuff) etc, and I can get the data formatted, kinda, but what I’m hoping to do is just clone what the output would look like as if you were actually looking at the console. Is there a module or easier way to do this out of the box somewhere? Any suggestions appreciated.Edit: a word

Submitted August 27, 2018 at 09:30PM by cinema-tech-on-call

What is a good example of a nodejs app built to support an extensible architecture? I.e. designed to be pluggable without modifying the core?

I guess the best example of something that compares would be wordpress. Note that provided examples doesn’t have to be an example specific to blogging.

Submitted August 27, 2018 at 09:57PM by MyyHealthyRewards

Give your logs more context — part 2

https://ift.tt/2BLYqy4

Submitted August 27, 2018 at 07:47PM by Fewthp

Cross Compiling Node.js for ARM on Ubuntu

https://ift.tt/2wlp0YI

Submitted August 27, 2018 at 06:38PM by ICYMI_email

RESTful Web Service with Node.js, Google App Engine and Firebase Real-time Database

https://ift.tt/2wipcZD

Submitted August 27, 2018 at 06:28PM by ICYMI_email

Create a news alerting app

https://ift.tt/2E53ICa

Submitted August 27, 2018 at 06:33PM by ICYMI_email

What should be my work/learn flow?

Hello everyone,I have now a strong foundation in HTML, CSS and JS. I have a project in mind which I would like to use and build while learning the MEAN stack + Ionic.Considering that I know close to nothing of these technologies, what are your recommendations or thoughts for me to learn while doing?

Submitted August 27, 2018 at 02:29PM by rdalot

My new OSS, an efficient data loader based on zeta distributions

https://ift.tt/2PH71Vl

Submitted August 27, 2018 at 02:03PM by fed135

Packing files with the 'targz' package and ignoring .txt files

So I am currently trying to pack all the contents of a folder, but now I want it to ignore all files with a certain extension. The code I have looks like this:targz.compress({ src: "./" + this.sourcePath + "/", dest: "./" + this.targetPath + "/" + "result.tar.gz", tar: { entries: this.fileArray, ignore: function(name) { return path.extname(name) === '.txt' } }, gz: { level: 6, memLevel: 6, } }, function(err){ if(err) { console.log(err); reject(err); } else { resolve(); } }); As I just started with node, I have no idea how I can write this ignore filter into the code in a way that it works: ignore: function(name) { return path.extname(name) === '.txt' } It is supposed to ignore all files with the extension '.txt'.If this is the wrong place to ask please tell me where else I can ask for help :)

Submitted August 27, 2018 at 12:57PM by Rado86

Very practical, yet in-depth explanations. I like the use of diagrams the instructor makes to clear things up. Stephen gets down to the nitty-gritty of developing real-world web applications. Recommended!

https://ift.tt/2vAPJki

Submitted August 27, 2018 at 12:26PM by usualyprogramming

What happens when I create a class instance but not assign it to a variable ?

https://ift.tt/2MwP91z

Submitted August 27, 2018 at 09:26AM by abkibaarnsit

The not fancy CLI output of pnpm

https://ift.tt/2MUs3l1

Submitted August 27, 2018 at 09:46AM by zkochan

Hosting nodeJS

Where do you guys host your nodejs app?Currently I have a RDS running on AWS pretty affordable.I'm considering hosting it on AWS as well. Thoughts?Looking for affordable hosting plan.

Submitted August 27, 2018 at 07:56AM by andyprince

A complete GraphQL Server Tutorial

https://ift.tt/2OUHuqK

Submitted August 27, 2018 at 08:24AM by rwieruch

Sunday 26 August 2018

Is there any open source website like hacker news implemented in Node.js ?

I need a hacker news like website with few changes, is there any such open source project ready to use in production ?

Submitted August 27, 2018 at 02:26AM by -___I---I-___

X-Post: A call for (programming) help on node-red-contrib-home-assistant • r/homeassistant

https://ift.tt/2MPYP6M

Submitted August 26, 2018 at 10:51PM by SpartanII117

Cloud services with Node

Can you share your experience of using cloud services like Azure, AWS etc with node.js?Which are the most popular, have the best libraries and pricing?

Submitted August 26, 2018 at 11:04PM by bablador

mongoose edit returned object

Hi, I have this piece of code://comment pagination router.put('/:id/paginate', (req, res) => { //decide by what to sort var sortCriteria = null; switch(req.query.sort){ case 'top': sortCriteria = {'meta.hearts': -1}; break; case 'old': sortCriteria = {date: +1}; break; default: sortCriteria = {date: -1} } var skipDest = parseInt(req.query.page) * 10; Comment.find({quoteId: req.params.id}).sort(sortCriteria).skip(skipDest).limit(10).then((comments) => {userPromises = []; for(var i = 0; i < comments.length; i++){ userPromises.push(User.findOne({_id: comments[i].author})); } Promise.all(userPromises).then((users) => { for(var i = 0; i < comments.length; i++){ comments[i].authorName = users[i].username; console.log(comments) console.log(comments[i].authorName) } console.log(comments) res.json({ comments: comments, user: req.user }) }) }) })So everything works great except the second part of it. What i try doing in the second part of it is to add an additional property to each comment. The console.log() (line 26) logs all the comments however none of them have the authorName property , however console.log(comments[i].authorName) logs the author name as if it would exist. I have totally no idea why this happens, all the code seems correct. Please help!Thanks in advance ;)

Submitted August 26, 2018 at 09:07PM by everek123

Full Stack Developer Courses On Udemy

https://ift.tt/2MTknzt

Submitted August 26, 2018 at 06:51PM by ICYMI_email

Ajax Live Search Using Angular and Node | Codeforgeek

https://ift.tt/2xcvbC4

Submitted August 26, 2018 at 06:56PM by ICYMI_email

How does Django compare to Express?

Django was my first framework and I kind of liked it although I hated some aspects of it like Class Based Views. Now I am transitioning to Node because of the job market and I was wondering if someone here has been through the same and what they think of Express compared to Django?

Submitted August 26, 2018 at 06:11PM by Bergli

Open source tool to identify unused AWS Lambda functions

https://ift.tt/2wcFdjS

Submitted August 26, 2018 at 03:25PM by nshapira

What really happens when your AWS Lambda is running

https://ift.tt/2BPzC88

Submitted August 26, 2018 at 03:00PM by nshapira

Tesseract.js Selective scan

Hey,I am using Tesseractjs lib to identify text within an image.With other cv libs you can define the border which it will scan for text, I was wondering if this is true with Tesseract aswell?https://ift.tt/1RphbZc search the github page and didn't find a thing, anyone might have some experiance with this?

Submitted August 26, 2018 at 01:52PM by techg9

Saturday 25 August 2018

API Gateway in a Nutshell

https://ift.tt/2BOirE4

Submitted August 26, 2018 at 03:16AM by acdota0001

Intro to adding search engines to site?

I built a website with a postgres database, express api, and react front end and wanted to look into developing a search engine next. What are some good resources to learn all about adding search engines and how to develop one? I want to get it to be have the feature where as you type, it will show some auto complete suggesions.

Submitted August 26, 2018 at 03:44AM by qpal123

Is there a way to require a package that is globally installed?

Barely use node for anything, so sorry if this is really basic.What I'm trying to do is download a package once so I can just write one-off scripts and call that package whenever I need it.Is this possible?

Submitted August 26, 2018 at 02:51AM by nobrandheroes

JavaScript Promises with Node.js

https://ift.tt/2P7ANSq

Submitted August 26, 2018 at 12:20AM by kiarash-irandoust

Node.js TypeScript Boilerplate Without ts-node

I made something for my own projects that I thought might be useful to anyone trying to set up TypeScript for a Node.js project, who doesn't want to use ts-node to run the tests. I understand that using ts-node is subjective, some people might not share my desire to remove it from my build tools. Personally, I found it hard to get consistent code coverage results with Istanbul when I used it. I wanted to create a base setup that compiled the tests and ran them as JavaScript, while still providing me with good code coverage results and the ability to debug both my program source code and test source code in VS Code. This setup achieved those goals for me.https://ift.tt/2wcuMgb you run yarn test (or npm test), the HTML coverage report generated will show the TypeScript source code:​https://ift.tt/2wkvgzO if you use the included VS Code launch configs, the debugging will let you step through the TypeScript. The fact that the TypeScript compiler generates source maps is what enables this. Most other IDEs should be able to be setup to detect the generated source maps as well:​​https://i.redd.it/lwe7wzwxjai11.png​https://i.redd.it/qaannfeyjai11.png

Submitted August 25, 2018 at 08:30PM by welkie

Top 5 IDEs and code editors for Node.js - JAXenter

https://ift.tt/2B8JVUB

Submitted August 25, 2018 at 06:47PM by ICYMI_email

Developer platform - Teams

https://ift.tt/2LrRLbU

Submitted August 25, 2018 at 06:52PM by ICYMI_email

'await' multiple async functions?

I have a set of async functions that I want to run and I do not want the program to execute any further without all of them returning their callback function. The problem is that if I await every single one of them linearly it will take a long time to complete.Is there a way to run a set of async functions and await all their callbacks simultaneously? like wrapping them in a larger function and then awaiting that single function?I just thought of this...could I have a boolean array filled 'false' and then in each callback update one index to true. then after my await functions have: while(boolArr.indexOf(false) !== -1){} inorder to hold the program in suspension until all have calledback?

Submitted August 25, 2018 at 03:36PM by CSS_Programmer

Fastest csv parser for Node?

Currently using the fast-csv node module for csv parsing and the chokidar module to check for file changes. There are about 3000 lines.I add each line from the csv file to an object called csvList using one of the columns as a key. I compare the list on the next read to the one already in memory.Is there a better / faster way of doing it? I noticed sometimes the csv file change is not detected or it's not read correctly.var fs = require('fs'); var chokidar = require('chokidar'); var csv = require('fast-csv'); let csvList = {}; var csvWatcher = chokidar.watch('file.csv', { ignored: /(^|[\/\\])\../, persistent: true }); csvWatcher.on('change', ()=> { runupdate(); }); function runupdate() { let csvStream = csv.fromPath("file.csv", { headers: myHeaders, trim: true, ignoreEmpty:true, strictColumnHandling:false}) .on("data", function(r) { if (r) { csvStream.pause(); if (!csvList[r.symbol]) { csvList[r.symbol] = {symbol : r.symbol, time : r.time, volume: r.volume } } else { if (csvList[r.symbol].time != r.time) { csvList[r.symbol] = { volume : r.volume, time : r.time} } csvStream.resume(); } }).on("end", function() { csvStream = null; }); }

Submitted August 25, 2018 at 03:36PM by mainst

Sort in mongoose

Hi i know how to sort in mongoose but the problem is that the thing i want to sort by is a property ie field.sortParam. I tried doing .sort({field.sortParam}) but this throws an error is there any way to solve it?Thanks for any answers ;)

Submitted August 25, 2018 at 01:55PM by everek123

Query string problem

Hi, I have a route /quote/:id?sort=new this works fine. However on this page user can post coments I use ajax for that. The ajax post request goes to this url window.location.href + '/post' the problem is that the final url I get is /quote/:quoteId?sort=new/post. How can I move the query string to the end of the url? Or is there any better solution? Thanks I advance :)

Submitted August 25, 2018 at 01:28PM by everek123

Learn Node with React - Complete Full Stack Development

http://sumo.ly/S9qW

Submitted August 25, 2018 at 12:44PM by atkarti

Full node.js web development.

Hello everyone,I want to develop a website using node.js. Which packages should I use for the front-end and the back-end? I want to use a database, which database should I use? I saw some people talking about using React and Express?

Submitted August 25, 2018 at 09:50AM by KyleUzerty

Friday 24 August 2018

Help. Mongoose save triggers twice and saves my data but also another empty

i use ajax to trigger the on-click and do a post on the url, car.save(function (err) { if (err) { return next(err); } res.send('Product Created successfully') }); but it saves it twice for some reason, i can't figure it out why

Submitted August 25, 2018 at 12:46AM by shiust

Good resources to learn Node.js?

I ran across thishttps://http://www.youtube.com/watch?v=k_0ZzvHbNBQand this seems good.Is there any other good recommendation/resources for a newbie who is new to node? After I finish a Udemy course online, I will put sometime into learning the backend

Submitted August 25, 2018 at 01:18AM by Dr4gonkilla

Developing Better Node.js Developers

Hey people, a couple of weeks ago I posted my first medium post where I talk about my own and my teammates experience while either learning or teaching Node.js, I thought you might find it interesting or useful.https://ift.tt/2MoIWRf

Submitted August 24, 2018 at 11:45PM by kito0

excel4node add cell comment, or recommend excel package

s there any work arounds to add comments to the cell using the package, excel4node? It is currently not a feature for this package and I find this package to be the best for making excel files with node.OR do you know any node excel packages that supports cell comments?

Submitted August 24, 2018 at 09:27PM by qpal123

Is TypeScript the new 'best practice'?

https://twitter.com/nodepractices/status/1033071141932425217

Submitted August 24, 2018 at 08:21PM by yonatannn

brandonsueur/Boilerplate-API

https://ift.tt/2wcewM3

Submitted August 24, 2018 at 07:15PM by ICYMI_email

Node.js and the "HashWick" vulnerability - NodeSource

https://ift.tt/2LiFfvb

Submitted August 24, 2018 at 06:57PM by _bit

Anyone using Fastify in prod? What are your opinions?

https://www.fastify.io/

Submitted August 24, 2018 at 05:22PM by gibriyagi

Refresh document before save

Hi, I have 2 functions running in a post request each of them saving the same document. The problem is that I always get a mongoose version error for one of them. This happens because the first function saves the document and therefore changes the version of it. The second one retrived the document before the first one saved so it has the old version of it, therefore when saving it throws a version error. What I tried doing is performing some operations and retrieving the document again right before saving it. Unfortunately this didn't solve the issue. I guess that both of the functions retrieve the document faster than one of them manages to save it. Is there any way to overcome this problem? Thanks on advance :)

Submitted August 24, 2018 at 03:49PM by everek123

Filesystem storage abstraction for local&cloud, feedback needed

https://ift.tt/2wsxihI

Submitted August 24, 2018 at 03:06PM by Germanazo

Validating Responses Sent From Server on Client Side?

I use express validator to validate data sent from the user. I was wondering does any sort of validation libraries exist for validating the response sent from servers on the client side?So for example if the JSON response contains specific error codes certain things happen on the frontend (in my case React). And to also validate the response is in the correct format and is nothing malicious.

Submitted August 24, 2018 at 02:53PM by VeryOldFilms

Help a noob out

Where can I learn nodejs, any books, video tutorials or anything?

Submitted August 24, 2018 at 10:22AM by lcrysis_HR

Insight on security question

Hello, I am doing a penetration testing on an app built on nodejs, angular and express. The app does all the work through api calls using json format I was looking at ways of passing my own objects and see if could get that object deserialized I'm not a savvy nodejs and since this is Blackbox testing I can't figure out what is going on. When I pass an array as value for a variable I get an error can not cast variable name of type String/enum so I'm guessing the app is doing type checking before processing, however if try to pass constructor as a variable name I get an error can not cast constructor of type undefined so I'm not really sure of what is going on. On some fields username for example if I pass an array instead of a string the username changes to [object : object] does that mean the app is not type checking that field? What are the best practices to enforce secure input? What are your assumptions about this implementation? Thank you in advance

Submitted August 24, 2018 at 10:59AM by neglektd

Is this a valid authentication flow for a server renderer React + Apollo + Express app?

https://ift.tt/2NgTFxM

Submitted August 24, 2018 at 10:17AM by cutcopy

Why doesn't this program terminate?

If I run this top level async function, the program prints but then doesn't exit.async function print() { console.log('print') } print() Same with this(async function print() { console.log('print') })() Why does it work like this in the first place?If I want the program to terminate, do I need a process.exit()?

Submitted August 24, 2018 at 10:03AM by nowboarding

Is it worth learning Node with express if the industry has already "moved on" to something else?

I'm interested in learning Node, I don't really know that much about it; but I am interested in its potential.I have been told that Node with express is probably the best way forward to start learning, but I am cautious about it.I'm concerned that the industry has already "moved on" to something else, or that express isn't even used in industry; so it makes me wonder why I'd try and learn something that isn't used.Also, is it worth learning Node with angular or Node with something else? Is react really the best thing to learn with?

Submitted August 24, 2018 at 06:20AM by zardon0

Thursday 23 August 2018

[HELP] Nodejs cms supporting MySQL

I need a nodejs cms that supports MySQL. It seems that most of the ones out there are mongo based. Do you know of any?

Submitted August 24, 2018 at 05:38AM by tonde_mut

Starter project with graphql

https://ift.tt/2PA5VuK

Submitted August 24, 2018 at 01:16AM by drog27

Drag and drop issues

Hello everyone. I built an electron app and want to have a drag and drop feature where an image is dropped onto the window and it display. Now, this was working on an old version of electron, but I had to wipe my hard drive and installed electron 3. The problem is, when I drag the image over my app, I see, what I can only describe as a stop sign.Here is my code:​window.addEventListener("dragover", function(event){event.preventDefault();event.stopPropagation();},false);​// when file is dropped, check if it is an image, if not do nothingwindow.addEventListener("drop", function(event){ console.log(event); event.preventDefault();event.stopPropagation();// if dragged file is an imagedisplayImage( event.dataTransfer.files[0].path.toString(), true, -10);}, false);​Thanks for any pointers

Submitted August 24, 2018 at 12:38AM by daibatzu

How to send text via http module and read it?

https://ift.tt/2LnWOdr

Submitted August 23, 2018 at 07:41PM by adamski234

SD Times news digest: Quick Base Kanban reports, Node.js downloads, and Google Play Instant updates - SD Times

https://ift.tt/2w3Wo6Q

Submitted August 23, 2018 at 06:40PM by ICYMI_email

Elastic Search Index and Mapping in node JS – Morifeoluwa Jebutu – Medium

https://ift.tt/2obj3Kt

Submitted August 23, 2018 at 06:45PM by ICYMI_email

GitHub - nexe/nexe: 🎉 create a single executable out of your node.js apps

https://ift.tt/2iWXrgw

Submitted August 23, 2018 at 06:50PM by ICYMI_email

[HELP] Showing data based on user.

Hi.I'm trying to do a Note-Taking App and I got a doubt. How could i show the notes from the person that created it?I'm using Mongo as DB.The logic is simple:IF note is from user => ShowBut how would i validated this?Should i make a MAP in all Notes in Database and verifying each one if the user owns it. Or there is a simple way to do that...​Sorry for my newbie question.

Submitted August 23, 2018 at 06:58PM by JKFher

Snipcart as a first E-commerce project?

I have been getting into node and express recently, done a few video tutorials through udemy, and played around with the basics. I have a couple of friends who would be interested in a website, but they want e-commerce included, without going through something like shopify(they want it to look native to the website). My question is, would snipcart be the best option for me to look into, or is it for more advanced developers? I found this tutorial, but haven't touched graphql yet (but completely willing to!). https://ift.tt/2vjR25a

Submitted August 23, 2018 at 05:22PM by bdburns6389

Let's Learn How to Create a Discord Bot

https://ift.tt/2BFaqkR

Submitted August 23, 2018 at 02:42PM by shsh3

Couple of noob question about routers and app.use

I've installed the default express.js application.It has this line:app.use("/users", usersRouter); If I open up usersRouter it has this line:router.get('/', function(req, res, next) { res.send('respond with a resource'); }); Whats with the slash in router.get('/')? Would doing:app.use("/", usersRouter); router.get('/users', function(req, res, next) { res.send('respond with a resource'); }); ...achieve the same?Is the slash in the router.get relative to the path given to it by app.use?

Submitted August 23, 2018 at 01:45PM by Whale_Eating_Cheese

Firebird high-level native client for Node.js / TypeScript updated to v0.1.0 marked as stable

https://ift.tt/2MMON6r

Submitted August 23, 2018 at 11:39AM by mariuz

Choosing a good nodejs framework to create marketplace application.

Today is my second day as a junior back end developer. I have been asked by my boss to propse the best framework to use in the new project and explain why i chose that particular framework. The project is a marketplace application, we'll be using React on the front end and mongoDB as the database.Any suggestions? articles i should read? thank you.

Submitted August 23, 2018 at 12:02PM by AdventurousAnalyst

Take screenshots of Twitch Stream

Hey,I am working on a twitch stream cv project.My main problem is to take screenshots off twitch live streams every sec for manipulation.​I know how to extract the .m3u8 file off twitch, and I read that ffmpeg lib can take a snapshot of a .m3u8 file.what I am currently struggling with is that the .m3u8 stream get stuck 5 sec after I open the file via VLC, which leads me to think that I am doing something wrong.Thanks for your help.​

Submitted August 23, 2018 at 11:23AM by techg9

Node.js Open Source of the Month (v.Aug 2018)

https://ift.tt/2Lox6oS

Submitted August 23, 2018 at 09:46AM by Rajnishro

The Node Handbook

https://ift.tt/2wmXFFH

Submitted August 23, 2018 at 09:31AM by flaviocopes

New library for parsing and writing binary files

https://ift.tt/2LjAIIE

Submitted August 23, 2018 at 08:25AM by mator

mock-require bleeds between test files

Hi, long time lurker here.I have a small node app that synchronizes data between two api's and I've been writing tests for it using mocha, chai, mock-require and sinon. To import modules in the app I use require, and to mock this I have opted for "mock-require". My problem is that the mocksetups seems to bleed in to eachother. The only way to run the test is to comment out all the other tests than the file I am working on.I use the mocha lifecycle method to stop all mocks after the tests have finished and have also tried using the sinon sandbox without luck.How do you guys set up your tests in node? Is there an alternative to mock-require that might work better for me?Thanks

Submitted August 23, 2018 at 06:15AM by reeferd

Wednesday 22 August 2018

New library to interact with all cloud storage providers: SMCloudStore

Hi /r/node!Sharing with you SMCloudStore, the latest thing I've been working on. This is a Node.js module to interact with multiple cloud storage providers, including AWS S3, Azure Storage, Backblaze B2, Google Cloud Storage, and Minio (self-hosted S3). I just published version 0.1.0, which is the result of three weeks of work.While SMCloudStore is not the first library out there to provide an abstract interface on top of cloud storage, this has some interesting features:The library itself is very lightweight. Each storage provider is published as a separate module, so you don't need to install the SDKs for dozens of cloud providers just to use one or two! (each SDK can include hundreds of NPM dependencies!)Stream-first approach. While you can also work with strings and Buffers, the library is optimized to upload/download objects as streamsStorage only. I'm not trying to recreate something like libcloud: I'm focusing on storage only to keep things simple. In fact, storage is the most common service used on the cloud, and each provider's APIs are different and incompatible.Modern APIs that support async/await (but code is actually written with Promises to support older versions of Node.js)It's all written in TypeScript (and transpiled to JavaScript), so full typings are available too.Project is on GitHub and released under MIT:https://ift.tt/2w7WVEV, full documentation is available too.

Submitted August 23, 2018 at 02:57AM by ItalyPaleAle

Common Docker + NodeJS Issues

https://ift.tt/2wdmLYr

Submitted August 23, 2018 at 01:28AM by acdota0001

Looking for help on how to improve my codes execution speed

Dear node-community. I currently have a bot running, that tries to buy stuff from a site when certain criteria is fulfilled.The workflow is: My software is listening to a websocket, it shoots jsons whenever something happens on the site. I make objects out of those jsons and compare them with a hashmap, if price is < that, i am making an api-call to buy.That api-call is made over https, so in order to not have to build a completely new connection, I am utilizing „keep-alive“. In order to having an alive connection, I am making periodical calls to another api endpoint.The software is on a nano droplet, and that is located in the server farm of that site. It runs on ubuntu 16.04.I am looking for ways of how to improve my software. Any Ideas are greatly appreciated!

Submitted August 23, 2018 at 01:10AM by S1r_Mar71n

Bitcoin - Run a node, be a node.

https://ift.tt/2o4lduZ

Submitted August 23, 2018 at 12:07AM by BlockDelta

Hitchhiker's Guide to AWS Step Functions

https://ift.tt/2MGJqp9

Submitted August 22, 2018 at 10:43PM by nshapira

HashWick V8 Vulnerability, affecting all versions of V8

https://ift.tt/2ByBdPA

Submitted August 22, 2018 at 09:09PM by _bit

Good Alternatives to hapijs/good process monitoring?

I was between using Hapi and Koa for my next API project, and decided to use Koa.The only thing I'm missing is the Good library, which is not only a logging middleware, but also can get me server statistics.So, my question is: Is there any good libs for self-reported statistics? Or anything else that I can use to monitor my nodes.

Submitted August 22, 2018 at 07:46PM by tabarra

Replace crypto with create-hmac package by southpolesteve · Pull Request #107 · Azure/azure-cosmos-js

https://ift.tt/2w3Kfz2

Submitted August 22, 2018 at 06:33PM by ICYMI_email

Performance Timing API | Node.js v10.9.0 Documentation

https://ift.tt/2jmr7s7

Submitted August 22, 2018 at 06:38PM by ICYMI_email

Is there any advanced mongoose guides?

I mean, about two days ago i found out about Schema and model methods and i wanna learn from example. If there is one, of course. I wanna try binding every auth method to my schemas.. Thanks.

Submitted August 22, 2018 at 06:42PM by warchild4l

New calculus library on NPM! (calculess)

I just finished making a calculus library called calculess. You can evaluate limits, derivatives, and integrals on your own custom functions! Think of this as an extension to the beloved Math class. Comment suggestions, if you have any!https://ift.tt/2Ms6cSv

Submitted August 22, 2018 at 05:05PM by blake_sanie

How to download large files efficiently?

Hello there :)For my desktop app using NodeJS, our users can download content (multiple dozen megabytes each) to use the app with.At first I went with FTP downloads and it worked well for me and some users, but others had issues with downloads stalling randomly, and not even throwing errors, even, just hanging the download process.I switched to HTTP by using got or download. Again, it worked for some users, but others have had similar issues with FTP.As a last resort, I've made a system call to curl to download the files I wanted, and again, for many users it solved things, but lately I've had a few reports of curl not even starting up, and the download hanging there (somehow, Windows won't let my node app start up curl, even though if the user starts curl separately, it works fine, meh.)As a last, last resort, I offered a rsync command to my users so they could download their content, and it worked flawlessly every single time, for everyone.My question is : does anyone have had similar issues ? Or has a recommendation on which module I should use to make these downloads safe?Something with automatic retrying, and events to follow on download progress ?I've already rewritten my file download functions a dozen times already, I'm a little fed up with that and would like to find a solution to my (users') issues for good.Any idea?

Submitted August 22, 2018 at 04:01PM by AxelTerizaki

Nesting a separate Express app within a parent Express app

My portfolio site runs on Express, with a setup generated from the default options of the CLI Express app generator, so it has app.js, /routes directory, /views directory etc. Over the past month I've been producing something else, a game, which also runs on Express and has that same default file structure.How do I nest the project I've made within my portfolio site and continue to maintain independence between the two? I'd like the project to be accessible at portfoliosite.com/project. Do I need to run the project's start script with pm2 as well as the portfolio's start script?Running two Express apps on the same server at the same time, one nested inside the other, both running independently. How do I achieve that?

Submitted August 22, 2018 at 04:03PM by koenigsforst

Understanding a RESTful API using Node.js, TypeScript and Pokemon

https://ift.tt/2OXVFLM

Submitted August 22, 2018 at 04:33PM by JSislife

(Opinion) using ORM is probably the biggest mistake i made

unhelpful documentationanti patternunresponsive maintainersgenerate terrible queriesvery few tutorials are available i might as well go back to SQLi used to be an advocate of orm for 3 years from Entity framework,Sequelize to Hibernate.its nice that you can do simple queries Insert and select but that's about it. what i might recommend though are query builders those are acceptable a little.

Submitted August 22, 2018 at 03:33PM by cariaga123

Best Paid Learning Resources

Hey guys,​I'm looking for some courses/tutorials that go in depth on Node and maybe React.Not looking for the classic make your first web app that you can find everywhere and usually is very limited.Instead I'm searching for a bit more advanced/in depth resources that touches things like microservices, GraphQl, Apollo, high traffic handling, testing, CI, CD, Docker, Kubernetes, etc..​Do you guys know about anything that might contain some of this content in high quality?

Submitted August 22, 2018 at 11:15AM by ElDiegod

Making slow queries fast with composite indexes in MySQL

https://ift.tt/2wkY7UG

Submitted August 22, 2018 at 08:44AM by hpeinar

Tuesday 21 August 2018

Is this a good way to organize an API to get, add, update, and delete blog posts?

Say my database schema has blog posts with attributes id, title, and content.app.get('/', (req, res) => { /** code to get all blog posts */ } app.put('/', (req, res) => { /** code to add a blog post where body contains title and content */ } app.post('/:id', (req, res) => { /** code to edit blog post with id = :id */ } app.delete('/:id', (req, res) => { /** code to delete blog post with id = :id */ } My question is, for the post and delete requests, should I pass in the id in req.params, or the body of the request (req.body)?What is considered best practice?Thank you!

Submitted August 22, 2018 at 05:06AM by v_95

What would be the best cloud platform to deploy my node app, I am looking for something that scales automatically.

Hello, I currently have a node js app running on a dual core 4GB vps and I am having performance issues because the app invokes ffmpeg for certain functions. I just want to get some opinions since I never deployed anything to "the cloud". I am looking at google's cloud engines but I am not sure whether to choose between the cloud functions, Paas, Iaas or if I should go with amazon. My app basically does this.Takes a request from a clientinvokes ffmpeg to transform a filestores the file (anywhere from 3MB to 100MB) in diskuses mongodb.What do you guys recommend?

Submitted August 22, 2018 at 02:21AM by apphut

Can Someone Please Explain To Me How To Run Musicope & NPM?

I wanna try to learn piano again, and Musicope always seems interesting to me. Problem is it’s kernel-based. I know a little bit but not enough to do much. I clone installed it into me home folder, but that’s about all I can figure out. It says stuff about NPM. NPM confuses me.https://ift.tt/2LeqOby says to run NPM. Which I did. I keep trying to run it and it’s giving me errors. I guess that’s because the server is already running. And I guess in NPM you’re supposed to go to the host via a browser. I have no idea how to do that. • run npm install​run npm startopen your browser (e.g. Google Chrome) and navigate to http://localhostmodify \static\web\config\default-config.ts according to your needsI don’t know where static\web\config\default-config.ts  is, what to do with it or what my needs are.Please someone explain this to me. f .

Submitted August 22, 2018 at 01:38AM by EPrimeTV

Strategies for dealing with poor code in limited time

https://ift.tt/2AVdw3z

Submitted August 21, 2018 at 09:17PM by innerspirit

Help with writing test cases for an Node/Express app

I would like to write some test cases for my project, riddler, which is a Slack app. I'm finding it hard to do so for a couple reasons:Slack encourages sending 200 status codes immediately after a request, thus, I'm not sure how to truly test my endpoints.My "business logic" ends with making a request to a specified url so again I don't know how to test if the response is correct.I feel like I need to make things more modular before being able to write tests; hopefully I can get some pointers where to start with that. The code is too long to post here, but there are only two files in question, which are:server.js: https://ift.tt/2Pt08Hq https://ift.tt/2wiNjGH help and suggestions would be greatly appreciated!

Submitted August 21, 2018 at 08:39PM by Cedricium

keemor/quizair

https://ift.tt/2PsJN5c

Submitted August 21, 2018 at 06:54PM by ICYMI_email

bahmutov/cypress-cycle-unit-test

https://ift.tt/2OXUig7

Submitted August 21, 2018 at 06:59PM by ICYMI_email

Damien Lloyd on LinkedIn: "Old JavaScript Jordan and team are at it again! Hit him up for a role in React, Front end, Node.js or even to discuss…

https://ift.tt/2w3Xek5

Submitted August 21, 2018 at 07:04PM by ICYMI_email

Build a Secure ReST API in Node

https://ift.tt/2OWSFPN

Submitted August 21, 2018 at 02:49PM by leebrandt

WebAssembly vs. the world. Should you use WebAssembly?

https://ift.tt/2LdYnKH

Submitted August 21, 2018 at 02:09PM by ecares

Can I ping using request-promise? Or what’s the quickest module

Is this even a thing?Or if not, what’s the quickest module for pinging? I don’t want to load the full page html, I literally just want to check how quickly a proxy can ping a webpage and get the response/time from that.Thank you!

Submitted August 21, 2018 at 09:51AM by vq42

PM2 single point of entry (app.js) or multiple microservices (entries) with NginX, Redis and cluster mode?

Hi,Is it better to have a single point of entry (app.js) to run in cluster mode, or multiple (microservices)?My stack runs on Node (obviously), Redis with Persistence and NginX for load balancing.I am planning to run it on a cheap VPS with sufficient amount of RAM 4GB+ and 2 vCores+.Thank you in advance

Submitted August 21, 2018 at 10:01AM by k_rx1337

Build a Project Management Tool with Vue.js, Node.js and Apollo — Part 4

https://ift.tt/2OP2rDp

Submitted August 21, 2018 at 09:14AM by onig90

Wait for mongoose save() before continuing

Hi, I have the following piece of code:commentsAuthors.forEach((commentAuthor) => { //some code saveUsersPromises.push(User.findOne({_id: commentAuthor.id}).then((commentAuthor1) => { commentAuthor1.comments.splice(position, 1); commentAuthor1.save().catch((err) => {console.log(err)}); })) }) Promise.all(saveUsersPromises) So basically i have an arrray of documents retrieved from my DB. I run a forEach over this array and each time i perform some operations, and then refresh (re-fetch) the current document, change it and then save it. The problem occurs when i have 2 documents that are the same. For the first it works fine but saving the second one throws a version error. I think this happens because the second document is retrived (line 3) before the previous one is saved (therefore its version isn't changed). How can i wait for the document to save before retriving another one? Is there a better solution?Thanks in advance ;)

Submitted August 21, 2018 at 08:05AM by everek123

Monday 20 August 2018

More Than A Billion Downloads of Node.js F389 – Node.js Foundation – Medium

https://ift.tt/2N9GUok

Submitted August 21, 2018 at 12:49AM by ICYMI_email

Is using Mongo bad?

From comments and threads on here, I get a sense that people frown when someone uses Mongo? If so, what are the reasons?

Submitted August 20, 2018 at 09:47PM by sum1udontknow

Damn those packages are large :D

https://ift.tt/2vYUTXy

Submitted August 20, 2018 at 11:04PM by Falk_csgo

Viable html to pdf converters

I've been trying and looking for awhile now for a good HTML to pdf on the client side or using node but can't find any that work. I want something that will take HTML and CSS like this here: https://ift.tt/2LaKjBD and create a pdf with the correct styles. If I could target a div with nodejs that would be nice too but getting any html to pdf library has seem to be rather difficult

Submitted August 20, 2018 at 09:54PM by qpal123

Should I use Express.js for a simple React Blog?

I'm trying to build a simple blog with React that uses a PostgreSQL database and will consist of posting and retrieving data from the database using Node.I'm trying to also incorporate Express, but after using Express App Generator, I'm realizing this creates a lot of boilerplate that I'm sure provides lots of functionality, but I'm not sure I'll need it or know what to do with it. For instance, because I'm using React, I don't think I'll be using a templating engine or anything like that.Primarily, I'm trying to figure out how to use Node/Express to interact with PostgreSQL using something like the npm module pg-promise.Does anybody have some advice for me in this situation? Thanks for any help.

Submitted August 20, 2018 at 08:36PM by stoned_phillips

An Introduction To Node Package Manager(NPM)

https://ift.tt/2OS0OEP

Submitted August 20, 2018 at 07:32PM by ICYMI_email

Anybody using Redis and Apache Spark?

Just looking for general opinions if you have used it before or currently are. Anything you consider hindsight I consider useful info. Please and thank you.

Submitted August 20, 2018 at 08:05PM by jblevins1991

Installing Submodule Packages

While working on a project using submodules, I found it a constant pain having to run npm i for each one anytime something changed. Especially when there's nested submodules.. I'm lazy, I just want things to work, so I built a thing. I figured I'd share, incase this is a frustration for anyone else.It's a light weight package. It's very simple require() before anything else. It will scan recursively for .gitmodule files, parse out directory paths, and then use a child process to cd into each submodule directory and run npm i. Unless --sub_reload was used, if node_modules exists that submodule directory will be skipped.https://ift.tt/2ONHd91

Submitted August 20, 2018 at 07:24PM by SpermicidalFoam

Learning to make packaged node apps

Apologies up front that my terminology might be a bit messy here; I'm learning a lot of programming stuff out of order.I am starting a new job where one of the opportunities I'll have is to build a handful of tools to do some automated tasks, like file management or sending control messages to pieces of equipment. It's all stuff I feel pretty confident I could do pretty effectively with node.Ideally, these would be built with a GUI instead of needing CLI commands, and would be packaged for easy installation on different systems. I can build a local server with express and a front end, but I don't have any experience packaging apps together for easy installation / running.I'm familiar with Electron in passing but have no experience. Is that the right direction to go, or are there alternatives that might suit a very lightweight app better? Are there any tutorials that might be recommended for getting started with good design practices?

Submitted August 20, 2018 at 05:36PM by mindonshuffle

Anyone taken this course from Pirple?

Thinking of doing this course: https://ift.tt/2La9swj pricey want to know if anyone else has done it or any comments?

Submitted August 20, 2018 at 03:05PM by EggVillan3312

How would you scale a rest api to serve +10,000 req/s?

I know about pm2 and clustering but aside from that, what is the proper way to scale node? So far it looks like increasing the amount of cores on a vm is ideal but how cost effective is that in the end?

Submitted August 20, 2018 at 01:44PM by dwise97

Adonis.js (Yup, it's really good.)

Are you a PHP (Laravel) developer? Would you like to go NODE? Try out Adonis.js.It follows the same concept as Laravel, JWT are sooo easy to do & everything else is almost the same! I love it.What are you waiting for? Go make an app!

Submitted August 20, 2018 at 10:10AM by RareYogurt

Learn Node and Build Real World Applications

http://sumo.ly/S9qW

Submitted August 20, 2018 at 11:02AM by jbvmt

Express-Authz: an authorization middleware for Express.js based on Casbin

https://ift.tt/2OLvh7F

Submitted August 20, 2018 at 09:15AM by EquivalentAd4

Build a Project Management Tool with Vue.js, Node.js and Apollo — Part 3

https://ift.tt/2L07yhG

Submitted August 20, 2018 at 08:49AM by Fewthp

electron-wallpaper - Attach an ElectronJS window as wallpaper in Windows

https://ift.tt/2OJUzTu

Submitted August 20, 2018 at 09:19AM by robinwassen

Prepare Node.js apps production ready for Kubernetes

https://ift.tt/2MADtKx

Submitted August 20, 2018 at 08:17AM by b9Fb2H

Sunday 19 August 2018

Can express' res.render be read?

For exampleres.render('a template file', {user: user, title: title}); Can the response be intercepted by man-in-the-middle or any other way and the code inside the template be seen? Not that I put sensitive data inside the template file, but my perception of res.render is that the actual code in the template file never leaves the server, only the rendered string.

Submitted August 20, 2018 at 06:29AM by eggtart_prince

Can't get basic Passport authentication to work

Here's my code.I'm just trying to test and understand how Passport JS works. Followed lots of tutorials and the official docs, so I'm not too sure what I'm doing wrong at the moment.

Submitted August 20, 2018 at 02:37AM by espresso4mydepresso

Generating file w/ ExcelJS, sending it to server, and initiating client-side download prompt?

Hello,I am working with the ExcelJS module to generate an Excel file, but am having difficulty achieving the desired flow.What I'd like to have is:User clicks a button on the front-end (built with React) to download an Excel file. This triggers a fetch('/downloads/results') which is the back-end endpoint for the file creation and serving.The file is generated and gets sent to /downloads/results as the res of the get request.The user gets a download prompt from the browser on the front-end so they can decide where to save it.What is happening now is that instead of the user being prompted on the front-end, Node is just creating the Excel file in the same folder as the server file. The bit of code that is creating the file is "workbook.xlsx.writeFile('Project.xlsx')"My current code is below.Relevant server-side code block:function generateSpreadsheet(req, res) { const workbook = new Excel.Workbook(); workbook.creator = 'Project'; workbook.created = new Date(); const worksheet = workbook.addWorksheet("Definitions"); worksheet.columns = [ { header: 'Word', key: 'word', width: 36 }, { header: 'Definition', key: 'def', width: 120 } ]; worksheet.addRows(storedResults); workbook.xlsx.writeFile('Project.xlsx'); } app.get('/downloads/results', (req, res) => { try { generateSpreadsheet(); } catch(err) { console.log(err); } }) Relevant front-end code:renderDownloadButton() { if (this.state.queriesList.length > 0) { return ( ) } } download() { fetch('/downloads/results'); } I've been researching most of yesterday and today but haven't come to a satisfactory answer. I found one somewhat similar question on Stackoverflow where someone mentioned that the front and back ends were on different ports and that was causing the break with no indication of a download on the front-end; in my case, after reading that, I tried accessing the back-end server directly and the browser showed the file being downloaded, but there was still no prompt for the user to decide where to save it.I tried playing around with having the generateSpreadsheet function return a stream, thinking I could then pipe that to the res in app.get but I was getting tripped up a bit.Thanks for any insight/direction you can provide!

Submitted August 20, 2018 at 02:58AM by DWDevDW

Running code snippets via Node.js and nodemon

https://ift.tt/2OFcMSo

Submitted August 19, 2018 at 06:51PM by ICYMI_email

Code not saving hashed password

Hi anyone able to tell me why this is not storing the hashed value for my passwords?it does generate a hashed value in the method, but its saving the plain text password.My Schema:const mongoose = require('mongoose');const bcrypt = require('bcrypt');const jwt = require('jsonwebtoken');const { Schema } = mongoose;const saltRounds = 10;const BrandsSchema = new Schema({email: String,password: String});BrandsSchema.methods.setPassword = (password) => {return bcrypt.hash(password, saltRounds).then(hash => {this.password = hash;});};mongoose.model('Brands', BrandsSchema);My route:const mongoose = require('mongoose');const passport = require('passport');const router = require('express').Router();const auth = require('../auth');const Brands = mongoose.model('Brands');// POST new user route (optional, everyone has access)router.post('/', auth.optional, (req, res, next) => {const { body: { user } } = req;if (!user.email) {return res.status(422).json({errors: {email: 'is required',},});}if (!user.password) {return res.status(422).json({errors: {password: 'is required',},});}const finalUser = new Brands(user);finalUser.setPassword(user.password);console.log(finalUser)return finalUser.save().then(() => res.json({user: finalUser.toAuthJSON() }));});}module.exports = router;and my JSON post values:{"user": {"email": ["test@test.com](mailto:"test@test.com)","password": "test"}}any help is much appreciated

Submitted August 19, 2018 at 07:15PM by louisjacksonrees

Learn Node.js

Hi there. I'm PHP developer. I'd like to switch to Node. Cloud you give me Learning Plan for Node? I Like Back-end.

Submitted August 19, 2018 at 07:49PM by dsalahi

Automate your Cognito Built-in UI customization process with Node.js

https://ift.tt/2vTP4Ll

Submitted August 19, 2018 at 06:41PM by ICYMI_email

Uma introdução prática às threads no Node.js - Artigos sobre HTML, JavaScript, CSS e desenvolvimento web

https://ift.tt/2vWStZM

Submitted August 19, 2018 at 06:46PM by ICYMI_email

10 Things I Regret About Node.js - Ryan Dahl - JSConf EU 2018

https://www.youtube.com/watch?v=M3BM9TB-8yA

Submitted August 19, 2018 at 05:53PM by io33

error while getting reddits json with jquery ($.getJSON)

Dear people i have stumbled upon a big problem while making my nsfw hentai bot for discord. This is my code: if(command == "hentai"){ var redditjson = 'https://ift.tt/2L8hZjc'; var subreddit = 'monstergirl+hentai+hentai_gif+ahegao+rule34+hentaibondage'; var aRandomNum = Math.floor((Math.random() * 25) + 1); // A random number - range 25 console.log("HENTAI STEP -1. ACK ARANDOMNUM (" + aRandomNum + ")"); $.getJSON('https://ift.tt/2nRbuIA', function(data) { console.log("HENTAI STEP 0. COMPLETED $.GETJSON AND FUNCTION."); $.each(data.data.children, function(i,item){ console.log("HENTAI STEP 1."); if (i == aRandomNum) { console.log("HENTAI STEP 2. COMPLETED IF STATEMENT (COMPARE I WITH ARANDOMNUM) "); console.log(item.data.url); return; } }); }); } however, when I launch my command, the console only shows me HENTAI STEP -1 and I get the following error:Error: Cross origin null forbidden I am used to web development and have no experience at all with nodejs because i never use it, but I think this means something like they have a php http header for cross origin . Please prove me wrong. Thanks in advance, Sam

Submitted August 19, 2018 at 05:45PM by Sam0072

Creating Image File

var file = new File(["str"], "filename");What would I assign "str" to be to create an image file? Base64 encoded string? DataURL? What?Thanks for your help.

Submitted August 19, 2018 at 02:13PM by CSS_Programmer

Automatic model creation tool for Mongoose

https://ift.tt/2PlfpcY

Submitted August 19, 2018 at 01:13PM by indatawetrust

How to 'include' a file like with PHP and include(file), require(file), etc...?

I figure it would be as easy as using require() but that isn't working. import.js is the file I wish to include in every other file. It has all the class imports in it:/** import.js -- a collection / record of every .class.js file all in one place. */ import EventMonitor from './EventMonitor.class'; import Model from './Model.class'; import Upgrade from './Upgrade.class'; import UpgradeMonitor from './UpgradeMonitor.class'; import View from './View.class'; However, if I put this at the top of every class file which needs to import one another:require('./import'); It doesn't work. I get "View is not defined", then if I write an import statement to import View specifically in the main js file I get "EventMonitor is not defined", and so on. Is there something I'm missing with 'including' import.js in all other client-side .js files?

Submitted August 19, 2018 at 12:28PM by koenigsforst

Build a Project Management Tool with Vue.js, Node.js and Apollo — Part 5

https://ift.tt/2MjdW9w

Submitted August 19, 2018 at 10:57AM by kiarash-irandoust

Saturday 18 August 2018

Sending Message to Particular User with Socket.IO

I am trying to use socket.io to create a chat app, where a user can send a message to another specific user. However, I am having trouble doing so. Here's the code:var express = require("express"), app = express(), server = require('http').Server(app), io = require('socket.io')(server), middleware = require("./middleware"), //Middleware to check whether user has logged in msg = io.of('/messages'); //List of connected users var onlineUsers = [] msg.on('connection', function (socket){ //Push new connected user to the onlineUsers array onlineUsers.push({id: req.user._id, socketID: socket.id}) socket.on('message', function(msg){ io.to(`${socketId}`).emit('message', msg); //Message to specific user }); }); //Check whether user has logged in msg.use((socket, next) => { if (middleware.isLoggedIn) return next(); next(new Error('Authentication error')); }); server.listen(process.env.PORT); There are two issues I am currently facing:I am not sure how to obtain the "req.user._id" of each new connected user. I have no problem doing so in the Express.js callback when requesting a route. But I have problem here since it doesn't have the usual Express.js callback pattern. The reason for doing so is to associate each user's id (req.user._id), which is unique in MongoDB, with their respective socket.id.I am not sure how to know what user the client wants to send messages to. I am trying to build a chat app similar to Facebook messenger, where the left panel shows the friends of the user. When the user click on one of the friends to chat with him/her, how do I know which friends the user wants to message to? I am thinking that when the user sends a message, the message is send along with the friend's id. Then the server could find the socket.id associated with the friend's id in the onlineUsers array, and then send the message to the socket.id.

Submitted August 19, 2018 at 07:17AM by VickNicks

GitHub - Open Source Universal User Registration System – NodeJS React Apollo GraphQL JWT MongoDB

https://ift.tt/2PhSwHx

Submitted August 18, 2018 at 11:31PM by SimpleTut

Variable scope within app.get

Henlo,I am having some trouble with variable scoping within app.get code. I am declaring an array (ARRAY) at the top of the code. I am then looping through another array, and making a request for each item and pushing it to ARRAY. However, if I send an app.get response passing my ARRAY, it is empty. It only contains values within the getData code block.Since I am declaring the array at the top of the parent block, shouldn't the function blocks within th forEach loop and the getData block have access and be able to manipulate it?const app = express(); const getData = require("request"); // .... unrelated code here app.get("/", function (request,response){ var searchTerms = ["One","Two","Three"]; var ARRAY = [""]; searchTerms.forEach(function(item){ let reqURL = "APIURL" + item; getData(reqURL,function(error,res,body){ if(!error && res.statusCode==200){ ARRAY.push(JSON.parse(body)); } }); // END OF GETDATA }); // END OF FOR EACH LOOP response.render("main.ejs",{ARRAY:ARRAY}); });

Submitted August 18, 2018 at 09:39PM by Nate_Dev

Looking for team members.

Hello, I am one of the founders of AuroraCode, and head of Node.JS team, and we are recruiting.We are looking for: - Spriters/Artists - Musicians - Developers (we are looking for people either with a knowledge of Unity C# or Node.JS preferably.)If you are interested or want to learn more, feel free to DM me and we can talk.

Submitted August 18, 2018 at 07:28PM by noneissome

reactjs - Reference Error in Gatsby Node JS - Stack Overflow

https://ift.tt/2OLYNKn

Submitted August 18, 2018 at 06:53PM by ICYMI_email

What's the best way to implement auth with sockets?

I have a Vue client that talks to a Node server over a socket.io implementation. I've combed around for a socket auth implementation sample that solves this significantly but I've not come across any.Would be nice to learn how other people do this and perhaps see boilerplate code for a similar implementation, maybe with JWT?

Submitted August 18, 2018 at 06:17PM by r3dh4r7

Nodejs tip of the day. Using scripts in package.json

In your package.json file, there is a section called scripts.Inside, you can add your own scripts. The most common one is "start" script.You can specify any regular terminal commands over there.Like in this picture when you type "npm start" in the terminal, it will run "node server.js"When you have custom commands, such as the second command "dev" you can type in "npm run dev"P.S: nodemon is another package which let's you keep the server running.https://ift.tt/2wemtzl

Submitted August 18, 2018 at 03:01PM by tamalweb

How do I get the uploaded files url on aws when using multer-s3?

No text found

Submitted August 18, 2018 at 12:19PM by HoloCroc

Running NodeJS on cPanel (Htaccess problem)

Hello!I have installed NodeJS onto my cPanel account, then I uploaded my NodeJS website/app onto my public_html/website then I added the following code to my htaccess:RewriteEngine On RewriteRule ^$ http://localhost:51521/ [P,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^$ http://localhost:51521/$1 [P,L] After adding that code to .htaccess, I ran the NodeJS application, and the website ran, and the homepage looked fine and all there, but when I go to any other pages, like for an example go to the About me page, It shows Not Found The requested URL /about was not found on this server. 404 not found pictureThen I proceeded to make a slight change in the .htaccess:"^$" to "^(.*)$" in the last lineRewriteEngine On RewriteRule ^$ http://localhost:51521/ [P,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ http://localhost:51521/$1 [P,L] This caused the website to through an error showing: "404: index.php" and the homepage loaded but was missing a lot of stuff, BUT! the other pages showed but not fully there.. here is an image of the homepage: homepage after tweak and here's a picture of the second page that was showing 404 before the tweaking: second pageI have been researching non stop and I still can't find the solution, but here is my nodejs execution code:var createError = require('http-errors'); var express = require('express'); var path = require('path'); var cookieParser = require('cookie-parser'); var logger = require('morgan'); var mongoose =require('mongoose'); var methodOverride = require('method-override'); var nodemailer = require('nodemailer'); // mongoose.connect('mongodb://jehad:jhadayman1@ds121268.mlab.com:21268/hoca'); mongoose.connect('mongodb://jhad96:jhad96@ds121268.mlab.com:21268/hoca'); mongoose.Promise = global.Promise; var indexRouter = require('./routes/index'); var usersRouter = require('./routes/users'); var app = express(); // view engine setup app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'ejs'); app.use(logger('dev')); app.use(express.json()); app.use(express.urlencoded({ extended: false })); app.use(cookieParser()); app.use(methodOverride("_method")); app.use(express.static(path.join(__dirname, 'public'))); app.use('/uploads',express.static(path.join(__dirname, 'uploads'))); app.use('/', indexRouter); app.use('/users', usersRouter); // catch 404 and forward to error handler app.use(function(req, res, next) { next(createError(404)); }); Here is a picture of the nodejs website files: filesI really appreciate your help guys :) much love

Submitted August 18, 2018 at 10:42AM by defiledx1

Friday 17 August 2018

what is the best way to backup mysql? tool for doing export import via express

alternatively is it ok to to write my own insert generator from a select if no tool?

Submitted August 18, 2018 at 06:34AM by cariaga123

Server not starting, says "[nodemon] app crashed - waiting for file changes before starting..."

Forgive me as I'm new to this. Trying to run a server and when I do, I get this error output./Users/username/Sites/project-folder/project-api/node_modules/logform/colorize.js:73 return colors[Colorizer.allColors[lookup]](message); ^ TypeError: colors[Colorizer.allColors[lookup]] is not a function at Colorizer.colorize (/Users/username/Sites/project-folder/project-api/node_modules/logform/colorize.js:73:49) at Colorizer.transform (/Users/username/Sites/project-folder/project-api/node_modules/logform/colorize.js:94:25) at Object.exports.log (/Users/username/Sites/project-folder/project-api/node_modules/winston-compat/index.js:174:20) at DailyRotateFile.log (/Users/username/Sites/project-folder/project-api/node_modules/winston-daily-rotate-file/daily-rotate-file.js:123:29) at DailyRotateFile.Transport.logException (/Users/username/Sites/project-folder/project-api/node_modules/winston-compat/lib/transport.js:134:8) at logAndWait (/Users/username/Sites/project-folder/project-api/node_modules/winston/lib/winston/logger.js:649:15) at /Users/username/Sites/project-folder/project-api/node_modules/winston/node_modules/async/lib/async.js:157:13 at _each (/Users/username/Sites/project-folder/project-api/node_modules/winston/node_modules/async/lib/async.js:57:9) at Object.async.each (/Users/username/Sites/project-folder/project-api/node_modules/winston/node_modules/async/lib/async.js:156:9) at exports.Logger.Logger._uncaughtException (/Users/username/Sites/project-folder/project-api/node_modules/winston/lib/winston/logger.js:672:9) at process.emit (events.js:182:13) at process._fatalException (internal/bootstrap/node.js:472:27) [nodemon] app crashed - waiting for file changes before starting... Would any/all of these scripts be a cause for the crash? Or is it most likely the fatal exception at the end? Having a hell of a time debugging.Thanks in advance!

Submitted August 18, 2018 at 02:19AM by Mike

Creating chatbots with Microsfoft Bot Framework and node-nlp

https://ift.tt/2OJzVCW

Submitted August 17, 2018 at 11:33PM by fluffyday

How do you update node and npm?

Hello node community, I'm in need once again. Currently having a hard time updating node and npm. My terminal on my mac keeps telling me there's an "Update available 5.6.0 --> 6.4.0 Run npm i npm to update."Done it a trillion times and it never works I just keep getting. "Npm WARN star-wars-quotes-1@1.0.0 No description" "Npm WARN star-wars-quotes-1@1.0.0 No repository field."Any help or suggestions would be appreciated, also any links to tutorials. Thank you very much in advance.

Submitted August 17, 2018 at 09:46PM by marincode12

Creating a Secure REST API in Node.js

https://ift.tt/2OQOzJA

Submitted August 17, 2018 at 06:38PM by ICYMI_email

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

https://ift.tt/2nNqnvs

Submitted August 17, 2018 at 06:43PM by ICYMI_email

Any perk to saving data as a buffer in MongoDB?

I've just done some pretty extensive testing, and it seems that saving as a buffer creates a document the same size as plain text. I thought it would be smaller, but it isn't, so is there any reason why someone would want to save as a buffer?

Submitted August 17, 2018 at 04:55PM by akujinhikari

Stylos – Automatically generate and inject CSS utilities to your application

https://ift.tt/2MUOdAp

Submitted August 17, 2018 at 04:27PM by kamranahmed_se

Shrink size of node_modules folder?

I just created my first npm project. It's just a HTML and JS file with one image and the node_modules folder. Now I want to upload it to my web hosting but the node_modules folder is almost 20 MB large. How do i only keep the required files and remove the exess (e.g. examples)?

Submitted August 17, 2018 at 03:59PM by Aluxnuxnux

How to scrap a web page with Node.js and puppeteer

https://ift.tt/2BrkygG

Submitted August 17, 2018 at 04:19PM by napolux

I want to be able to send videos with data to my node app so I can store the data with a db, what's the best way to receive videos with data, like caption, UserInfo, etc..?

No text found

Submitted August 17, 2018 at 03:11PM by smiles_low

Is there something like Entity Framework but for Node?

It would be awesome if I could create a JSON schema, and then run a command that then creates my database tables (whether it be relational or noSQL) and CRUD endpoints done in express. Does something like that exist?

Submitted August 17, 2018 at 11:41AM by cococanary

My favorite course out of the three I have completed with Stephen so far. This course answered questions for me I didn't even know to ask. I've already recommended the course to a friend and if you want to learn fullstack React this is the course for you.

https://ift.tt/2vAPJki

Submitted August 17, 2018 at 12:27PM by angela7walker

Best way to build a portfolio and learn node.

So I'm a front-end developer using Angular, have an I.T degree. Really interested in Node - did a course on Udemy which covered the basics. Have decided I want to get a job as a node developer. Issue is I don't have the portfolio or experience. Does anyone know of a nice code camp or boot camp that I can take remotely to build up a portfolio and some experience with?

Submitted August 17, 2018 at 11:07AM by EggVillan3312

Getting Started With RxJS - Part 3: Hot And Cold Observables - CodingTheSmartWay.com

https://ift.tt/2MtTe66

Submitted August 17, 2018 at 08:48AM by codingthesmartway

Passing messages between redirects in Express.js

Hi. I have a route in my Express.js web server that resets a user's password. If successful, I want to redirect the user to the sign-in route and set a message that informs the user that the password reset was successful. To do this, I use the express-session module in the password reset route to create a session with a signinMessage property, and then I redirect the user to the sign-in route. In the sign-in route, I check if the message exists, and if it does then I extract it from the session, and then I set the session message property to undefined to clear it. See code below:router.post('/auth/reset-password/step-2', (req, res) => { req.session.signinMessage = 'You successfully reset your password.'; req.session.save((err) => { res.redirect('/auth/sign-in'); }); }); router.get('/auth/sign-in', (req, res) => { const message = req.session.signinMessage; if (message) { req.session.signinMessage = undefined; } res.render('auth/signin', { message }); }); What I'm wondering is; is this the best the best way to do this, and also, is setting the signinMessage property to undefined enough or should I also destroy the session somehow?Any advice or constructive criticism on my code is appreciated.

Submitted August 17, 2018 at 09:06AM by dr_goodweather

Build a Project Management Tool with Vue.js, Node.js and Apollo — Part 3

https://ift.tt/2L07yhG

Submitted August 17, 2018 at 09:56AM by Fewthp

In-depth Step-by-Step Tutorial on How to Write Integration Tests for REST APIs with node.js

https://ift.tt/2vLeOcH

Submitted August 17, 2018 at 08:11AM by Mackseraner

Thursday 16 August 2018

Best way to work with mysql and node?

No text found

Submitted August 17, 2018 at 03:24AM by smiles_low

get-stack-trace: V8 stack traces with optional source map resolution.

https://ift.tt/2vOAyV3

Submitted August 16, 2018 at 11:10PM by gajus0

Creating an express server running in parallel with my electron application

My electron app requires a feature that would convert a string of html that I provide to a pdf. I intend to use this module to do the job https://ift.tt/2vOFWYa, when running this process through my client side application, I get this error: TypeError: childprocess.spawn is not a functionFrom what I understand, electron does not seem to allow me to spawn child processes. So I propose instead, having an express server running in the background that would call the node-html-pdf module and then output the pdf which would be returned to electron and saved to the computer using electron dialog.Does this seem like a good idea? Is there a better way?

Submitted August 16, 2018 at 09:37PM by yungyahoo

Is this a node.js related problem or what ?

My code is fine and all.But in my broswer's console log i have errors because of this row:var Validato'/vtr$2.0.0/common/user'/r = require('/common/validator'); var validate = Validator.validate, '/vtr$2.0.0/common/validator'/* validateData = */Validator.validateData;Why ? My code is not like that of course, it's a .. 'compiled' js problem .. ?

Submitted August 16, 2018 at 09:56PM by sxvalentin

Automate your Cognito Built-in UI customization process with Node.js - DEV Community 👩‍💻👨‍💻

https://ift.tt/2vTP4Ll

Submitted August 16, 2018 at 06:33PM by ICYMI_email

Node Email Verification Script | Codeforgeek

https://ift.tt/2GLbiBF

Submitted August 16, 2018 at 06:38PM by ICYMI_email

If a client A makes a request to the server, and client B makes also a request, the server only will serve client B after the client A request is processed?

Im asking this beacus im new to node and i saw this:Node.js keeps a single thread for your code...It really is a single thread running: you can't do any parallel code execution; doing a "sleep" for example will block the server for one second

Submitted August 16, 2018 at 04:41PM by Don-g9

Squeeze node.js performance with flame graphs

https://ift.tt/2KHJRe9

Submitted August 16, 2018 at 03:58PM by speckz

No 'Acess-Control-Allow-Origin' - Node and React

Hi.I'm creating a Stand Alone JSON API with Node and using React to render the information. But i got these error when I try to use the data from the Back-End. I saw some tips but almost all was about a Chrome Extension, but this works just for me. I can't ask for every one that want to use my application to do so.Someone has a final way to do this?

Submitted August 16, 2018 at 02:12PM by JKFher

SideQuest.js: Is this library useful?

https://ift.tt/2nKgwGK

Submitted August 16, 2018 at 02:59PM by lucasmerencia

Build a Project Management Tool with Vue.js, Node.js and Apollo — Part 1

https://ift.tt/2OFK0kp

Submitted August 16, 2018 at 03:21PM by Fewthp

best template engine for node ?

Hello, I am currently learning node.js and I wanted to know wich template engines are considered good in the community.

Submitted August 16, 2018 at 10:55AM by PiiXelsxrcote

Any Node Express and Postgres tutorials?

I apologize if this question has been asked before, but can any of you recommend good tutorials for Node + Express + Postgres? I see a lot Node + Express + MongoDB tutorials but never one with Postgres in place of MongoDB.

Submitted August 16, 2018 at 09:51AM by JSensei

Build a Handy Slack App that Connects Sales and Marketing to Atlassian using Node.js and Code.xyz

https://ift.tt/2MvyieW

Submitted August 16, 2018 at 08:08AM by JanethL

Wednesday 15 August 2018

This is probably a stupid question

var test = {"username":"foo1","password":"foo2","fname":"foo3","email":"foo4"}my frontend sends this object to my node application, but test.username wouldn't return foo1, it would return undefined,why? It's weird because it would return foo1 on my frontend

Submitted August 16, 2018 at 05:50AM by smiles_low

Node v6.14.4 (LTS)

https://ift.tt/2nIGTN2

Submitted August 16, 2018 at 03:35AM by dwaxe

Node v8.11.4 (LTS)

https://ift.tt/2MTpDA1

Submitted August 16, 2018 at 03:35AM by dwaxe

Node v10.9.0 (Current)

https://ift.tt/2vHoAfR

Submitted August 16, 2018 at 03:35AM by dwaxe

NODEMON — app crashed - waiting for file changes before starting

Guidence trying to trouble shoot weird error with Objection & Node Postgres.

Hey all I am running into a bit of a strange error with Objection and Node Postgres. When trying to insert a record I geterror: relation "agreements" does not exist however the information is actually inserted into the corresponding table ( ie. the agreements table in this case). Queries to select records work as expected. I'm at a loss as to why this happens, as this error happens with any model not just one specifically. It also only occurs when I bind a new Knex connection to the model. (This is a multi-tenant system, with each tenant having their own DB).The fact that select queries work has me comfortable that the connection is not the issue, like wise with the fact this happens to every model that is connected using Model.bindKnex(connection). Models that use the default connection work just fine as expected.Any help/guidance would be much appreciated.Thanks!

Submitted August 16, 2018 at 01:06AM by cmarenburg

Server management dashboard?

Are there any server dashboards built to manage MEAN stack applications? I'm currently using pm2 for process management and pm2 plus provides a dashboard but it's an external serves (as apposed to something I can run locally on my server) and only manages node processes. I would like something that manages everything that goes into a MEAN server. Namely Nginx configs, MongoDB database, and node processes. Does anything like I'm describing exist?

Submitted August 15, 2018 at 10:42PM by RedHatter271

DB design for reactions like Discord or Facebook

I'm trying to design a mongodb schema for reactions like Discord or Facebook. I want to have it so users can react to items with emojis, but they can only react once. I'm having a hard time wrapping my head around it. I want to get all the reactions for a specific Item or User, but also want a count of each type of reaction. Smile, heart, angry, etc. What is the best way to set this up? Or what type of relationship would this be?

Submitted August 15, 2018 at 08:25PM by soaringradio

[Question] About Telegram (Telegraf) + Object inheritance

Greetings,I am making a Telegram bot using Telegraf.js framework.The architecture I am using is the following:- index.js is where the telegraf.js is initialized and when the bot receives a Telegram message an instance of the object ctx is initialized. To reply to the message we must call ctx.reply("string").- folder /replies/SOMESCRIPT.js is where I plan on developing all the replies/commands of the bot. I have designed it this way so when I want to add/delete/modify a module - all I have to do is to edit or create a file there and everything will be loaded dynamically on each message that the bot receives.- every reply/command must have the "exports.main" function which will do stuff and return the answer that the bot will give.A sample code from index.js:let currModule = require(repliesDir + replyName + '.js'); ctx.reply(currModule.main(ctx.message['text'])); // This is in a try/catch if the require fails it replies that there is no such command. A sample code from hi.js:exports.main = function(message) { return ("Hello!"); }; Everything works great, but the problem comes when I want to return something different than a string. For example - Telegraf uses ctx.replyWithPhoto to reply with a photo, but I am calling the ctx.reply in index.js and there is no way that index.js can know what type of answer will the other script's main function return.I was thinking of passing the ctx object instance in some way to hi.js so it could reply from there and this way index.js will be used just as a wrapper as it is supposed to be, but I can't thing of a way to do that.I do not have that much experience with Node/JS and I would like to get some recommendations on how to accomplish this architecture.

Submitted August 15, 2018 at 10:07PM by bilporti

Express routes

I'm serving a json that is generated dynamically and then served on an Express route with the res.send function. Is there a way to update the route when the json changes?

Submitted August 15, 2018 at 09:55PM by YungDorit0

Do you develop in a monorepo?

I’ve started to shift my development to using a monorepo and I do prefer it but am not sure if I’m doing things the best possible way.What best practices have you learned from developing your apps in a monorepo? What kinds of tooling, project structure, and conventions do you use in your monorepo?Any tips you have gained from your experience would be useful!

Submitted August 15, 2018 at 06:10PM by nowboarding

How to associate uploaded image to existing asset?

Hi,I am developing my first app so bare with me.. I have a post route to upload images to my server. I would like the image to be attached to a particular asset. The asset already exist, I just want to update the record with the file name so I later can fetch the image for that asset.I am unsure how I should do this. The example code below is how I have tried to solve it so far and it does not actually work properly, i get errors in chrome console, complaining about mime type... What I am trying to do is send image to server and then update the record of asset id with the filename. But then I am doing both a post and put request (kind of) in the same route. What would be a good example dealing with it? The asset already exist so its an update on the asset but a new post request for the image. Does anyone have a recommendation?router.post('/:id', function (req, res) {upload(req, res, function (err) {if (err) {res.render('../views/pages/map', {msg: err});} else {if(req.file == undefined){res.render('../views/pages/map', {msg: 'Error: No File Selected'});} else {queries.updateImgName(req.params.id, req.file.filename).then(function() {res.render('../views/pages/map', {msg: 'File Uploaded!',file: \uploads/${req.file.filename}` }); //need error handling here if db was not updated }) } } }); });`

Submitted August 15, 2018 at 06:56PM by geoholic

The "uws" NPM deprecation response

Why hello there,I've heard through the grapevine there's been some lively talks and speculation regarding the recent NPM deprecation of "uws" module. I've somewhat read the three threads here on reddit:https://ift.tt/2vJmbBs Q & A:Why was the NPM module deprecated?I've felt for a long time that the NPM registry does not respect my decisions to control the project in ways I want to. In my view NPM should merely act as a hosting service and host my verbatim content. NPM is not as liberal as I would like to. I don't care for third parties who enforce decisions in areas where they should have no say. NPM should host things and let the market control itself. Also, their terms of use is an American nightmare: Unlimited, eternal, indemnification liabilities + inability to ever delete, modify or republish = unacceptable.What happened to the project?Nothing. Nothing at all happened. It is still used and last version is available on NPM just like before. It is marked "deprecated" but that doesn't mean you can't use it until next version is released. I never deprecated "uws". I deprecated all versions currently on NPM because that's the strongest hint I can leave there before deleting my account.Why are you such a cunt-bastard-moron chicken-fucker sabotaging prolapsed anus hole?Thanks for the nice words. So I realize that my patch update affected more people than I anticipated. My strategy was to post a "broken" patch version with a sorti message so that the 10 or so people who are on latest got the message and spread it. I kind of misjudged the number of people sitting on latest, obviously. But hey - the strategy worked and people got the message. Libraries.io statistics are obviously not that reliable!He's a dickhead cunt face asshole elitist fuck bag.I would argue you're wrong. Maybe it's your attitude. Why would you even write such a thing? Obviously there's some anger problems here. There are 151 commits from third parties in the repo which I have merged with positive feedback. For every merged PR there are 10 unmerged ones though, so generally negativity is abundant and frankly most PRs are really really really bad and completely incoherent. If you want a nice response then write good code, provide good issue reports and behave. I don't merge PRs I don't agree with and I will instantly close any CMake PR, just like I've done some 100 times already (with increasing neglect).When will next version be ready?When I feel it's ready. If you want a time estimate or come with opinions you can sponsor the project. I don't write code for you, I write it for me and my sponsors. Unless you're saying bring back slavery, don't take the freedom to demand anything for free. You did not pay for this, thus you have no say whatsoever. Saying "thanks" in a mail does not constitute an actual thank you.Why did you nuke the Node.js repo?I didn't. It is hosted as a fork at many places on the internet and I have a copy on my computer. The reason I removed the repo from uNetworking is because I am in a transition phase where it will be rewritten and majorly improved for next major release. You need to nuke your code from time to time you see. Keeping old garbage code is not what I call evolution.Why are you writing open source code?People in open source are very quick at assuming every one else thinks exactly the same. I don't. This "community" and "maintainer" lingo doesn't apply here. Reddit user "BenjiSponge" did an excellent analysis of how I work and think. I'm, unlike 90% of all GitHub users not a socialist. I don't write open source because I believe the code belongs to the public or any of those communist ideas. I write open source for two reasons: money and money. Respect that, don't project your utopian views on my projects and try and bend it around your foot.Why should I even use uws?You tell me. It's not my issue to solve. If it works for you, good. I would say at least rather use "uws" than some shitty "fork" of it. I've seen some forks before and they all end up the same: unmaintained, stagnated & left behind. Mainly because those who believe they can fork it has no experience at all in the project and no vision for it. I honestly don't get how people rather swap to some third party clone of some 4 month old version than just use the original. But hey, I don't mind. You're not paying me.Where can I get new versions of uws?New versions will most probably be released as tags on GitHub repo uNetworking/uWebSockets-node. What is currently on NPM is not in any way any less usable than before the deprecation though. With releases hosted on GitHub instead of on the NPM registry I get the control of things I want, and you get to easily install versions with the NPM client by specifying the repo and version tag (will be made clear when time is near)./ Alex

Submitted August 15, 2018 at 07:16PM by FeistySail