Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 
  • #n
  • #no
  • #node
RSS: #nodejs

#nodejs

  • #nodejs-
  • #nodejs_scalability_faulttolerance_clevermarks
  • #nodejs_architecture_applicationserver_javascript_server_clevermarks
0 | 25 | 50 | 75 | 100
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 15/01/2019

    Set-up #ssl in #nodejs and Express using OpenSSL
    ▻https://hackernoon.com/set-up-ssl-in-nodejs-and-express-using-openssl-f2529eab5bb?source=rss---

    https://cdn-images-1.medium.com/max/1024/1*49glYe-285UPvYW9xp7JFw.jpeg

    This a simple, easy-to-follow tutorial on how to serve pages over https in NodeJS using Express Framework.Tools/Frameworks we would be using for this tutorial, are:NodeJS: You should’ve basic knowledge on how to program in NodeJS.OpenSSL: A tool to generate key and certificate.ExpressJS (npm i express): Back-end framework for writing web servers in NodeJS. More about Express.https : Comes with NodeJS.Let’s set-up our project directory. It’s not a directory with lots of files. Instead, it contains only 4 files which are package.json, key.pem, cert.pem and server.js. So, create a new directory node-https, cd node-https and run npm init -y to create package.json file.Now install express using npm i —save express. Create a server.js file and type the following code in it.Our server.js should (...)

    #javascript #ssl-certificate #expressjs

    • #SSL
    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 20/12/2018

    Which #node.js Frameworks To Use in 2019?
    ▻https://hackernoon.com/which-node-js-frameworks-to-use-in-2019-43031d95c923?source=rss----3a814

    With the arrival of Node.js, #javascript has come to the forefront. It is likely to happen, since it is already a well-known programming language used by developers in browsers. And, with Node.js, it has found a way to implement the server side, thus reducing the complexity of using two different languages ​​at both ends.Today, Node.js offers one of the most innovative solutions for the creation of servers and web / mobile applications. Its single-threaded event loop and its asynchronous non-blocking input / output processing function distinguish it from other runtime environments. Its reach is rapidly increasing with valuable contributions from the community of developers and other giants of technology.At this time, several performance-based frameworks are being developed using Node.js (...)

    #nodejs #node-for-begginners #web-development

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 18/12/2018

    A crash course on #serverless-side rendering with #react.js, Next.js and #aws Lambda
    ▻https://hackernoon.com/a-crash-course-on-serverless-side-rendering-with-react-js-next-js-and-aw

    https://cdn-images-1.medium.com/max/1024/1*qW57VxADnoD9_o_0L-We0Q.jpeg

    Not so long ago I started exploring server-side rendered single-page applications. Yeah, try saying that three times fast. Building products for startups has taught me SEO is a must if you want an online presence. But, you also want the performance SPAs can provide.We want the best of both worlds. The SEO boost server-side rendering provides, and the speed of a Single Page Application. Today I’ll show you all this while hosting it basically for free in a serverless environment on AWS Lambda.TL;DRLet’s run through what this tutorial will cover. You can skim through and jump to the section that interest you. Or, be a nerd and keep reading. whisper Please be a nerd.What’re we building?Configure and install dependenciesBuild the app with the Serverless Framework and Next.jsDeploy the app to (...)

    #aws-lambda #nodejs

    • #LAMBDA
    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 18/12/2018

    How I built a #telegram Reminder bot with Node JS, the IBM Watson API and Firebase
    ▻https://hackernoon.com/how-i-built-a-telegram-reminder-bot-with-node-js-the-ibm-watson-api-and-

    https://cdn-images-1.medium.com/max/1024/1*h89l_KJR8w2NrzQXtPCAmw.jpeg

    How I built a Telegram Reminder Bot with Node JS, the IBM Watson API and FirebasePhoto by Rock’n Roll Monkey on UnsplashTable of ContentsIntroductionPrerequisitesCreate the bot with Node JSConnecting the bot to a real time DB(Firebase)Run the Cron JobScript to connect to the IBM Watson APIDeploy to GlitchConclusionIntroductionThis Telegram bot, would simply take three commands./start — Initializes our bot./save — Saves the string we will like to be reminded of later./time — Saves the time we would love to carry out this task.Then, this data is saved to firebase, and a cron job is initialized, which will run at the set time. This cron job, sends a text reminder to the user, and is then converted to an audio file, using the Text to Speech IBM Watson API, and is also sent to the user.PrerequisitesA Telegram (...)

    #telegram-reminder-bot #automation #bots #nodejs

    • #IBM
    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 17/12/2018

    Create an Alexa Radio Skill in 5 Minutes with Standard Library and #nodejs
    ▻https://hackernoon.com/create-an-alexa-radio-skill-in-5-minutes-with-standard-library-and-nodej

    https://cdn-images-1.medium.com/max/1024/1*INqWRjXVN4kI8V48NHqSFA.png

    Create your own Alexa Radio Skill with your favourite streaming stations. Once deployed, you can say Alexa, open radio and Alexa will start streaming a radio station. You can stream a particular genre by saying Alexa, ask radio to play Jazz music. You can, of course, add or delete the stations, so you can have a completely personalised music playing experience. Getting up and running is super simple.If you haven’t checked out Code on Standard Library, do that right now. Sign up and get an account. It’s free.Next, click on Open and this will open up a panel with some featured templates you can use.Click on the Community API Sources tab and search for alexa-radio-skill. Click on Create API to use it as a template for your own service. Once it’s created, proceed to the next step.Minute One: (...)

    #javascript #amazon-echo #alexa-skills #tutorial

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 14/12/2018

    A crash course on #serverless with #aws — Running Node.js 11 on Lambda
    ▻https://hackernoon.com/a-crash-course-on-serverless-with-aws-running-node-js-11-on-lambda-6ac67

    https://cdn-images-1.medium.com/max/1024/1*PCZ99sB9Pm0Q3SU4CsaSuw.jpeg

    A crash course on Serverless with AWS — Running Node.js 11 on LambdaQuite an exciting title, isn’t it? I was hyped when I heard AWS was adding support for custom runtimes and layers for AWS Lambda. This means you can now build your own custom artifacts, enabling you to share and manage common code between functions.I won’t say I fainted when I heard the announcement. But, I did. Don’t tell anybody.What’ll we be doing?This article will show you how to hook up a custom Node.js 11 runtime to AWS Lambda. We’ll create a simple Serverless project with a sample function, and add a layer that will enable us to run the Node.js 11 runtime.How it worksTo use a custom runtime, you have to specify that you’re providing one when deploying your function. When the function is invoked, AWS Lambda will bootstrap (...)

    #serverless-with-aws #aws-lambda #nodejs

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 14/12/2018

    Create a #graphql — #firebase server just with a schema.
    ▻https://hackernoon.com/create-a-graphql-firebase-server-just-with-a-schema-606df8945179?source=

    https://cdn-images-1.medium.com/max/298/1*K0q9TajB8nQBgI5-zrpClA.png

    Create a GraphQL — Firebase server just with a schema. ?Now you can create a GraphQL server, connected to your Firebase ? database just running a command on your terminal.How to use it:Install easygraphql-firebase:$ npm install easygraphql-firebase -g2. Create a GraphQL schema file with the model you want to have:type Student key: ID! age: Int! name: String!type School key: ID! location: String! students: Int! name: String! student: Student!input StudentInput age: Int! name: String!input SchoolInput location: String! students: Int! name: String! phone: String! student: StudentInput!type Query getStudentByUsername(name: String!): Student! getStudents: [Student!]! getSchool(name: String!): School! getSchools: [School!]!type Mutation createStudent(input: StudentInput!): (...)

    #javascript #create-a-graphql #nodejs

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 13/12/2018

    Implementing a #websocket Server with Node.js
    ▻https://hackernoon.com/implementing-a-websocket-server-with-node-js-d9b78ec5ffa8?source=rss----

    https://cdn-images-1.medium.com/max/1024/1*tKGr93u3QnEYhH8ws3iLvQ.png

    Implementing a WebSocket server with Node.jsIn this article, we’ll see how to implement a WebSocket server using Node.js.Before we jump right in — if you are not familiar with WebSockets as a transport #protocol, here’s a brilliant article that you should read. You can take your learning a bit further with another great article about long polling.I’ll be using Node.js for this (version 10.7 is installed on my machine at the time of this article).Your server may be running Go, .NET, Java, or something else. The implementation in each of those environments will vary depending upon the HTTPserver libraries available.The actual concepts will be fairly consistent though. They all follow the same standard specifications for interpreting and constructing HTTP requests and responses, and for parsing and (...)

    #javascript #realtime #nodejs

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 11/12/2018

    Why To Choose Mean Stack For Your Website Development
    ▻https://hackernoon.com/why-to-choose-mean-stack-for-your-website-development-9d11231c0f6e?sourc

    https://cdn-images-1.medium.com/max/1000/1*JP8OhyJBKR2tY89B25XA3w.jpeg

    MEAN is a user-friendly full-stack #javascript framework which is highly preferred today for creating dynamic websites and applications. It is a free and open-source stack developed to offer developers with a swift and highly organized method for building rapid prototypes of MEAN-based web applications.One of the key benefits of the MEAN stack is that a single language, JavaScript, runs on each application level, making it resourceful and offering an up to date approach to web development.The mean stack is projected to deliver a straightforward and an initial point for cloud native full stack JavaScript applications.MEAN is a set of Open Source components that collectively offer a comprehensive framework for creating dynamic web applications; commencing from the top (the code running (...)

    #mean-stack #expressjs #angularjs #nodejs

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 30/11/2018
    1
    @tofulm
    1

    Workaround the #node JS File System
    ▻https://hackernoon.com/workaround-the-node-js-file-system-a596408b1dcf?source=rss----3a8144eabf

    https://cdn-images-1.medium.com/max/1024/1*JggJLMOPdaUrHEl0NM35HQ.jpeg

    Photo by Mr Cup / Fabien Barral on UnsplashHello, fellow members of the night’s watch. We will be looking at one of Node’s core API’s, the File System. I know we’ve been concerned with code splitting, bundle splitting, preloading and the never ending woes of the Internet Explorer, but we will be learning how Node interacts with our files and directories. This helps us handle images or assets on our server, store them properly, read the content of other files, write to files,etc.We will be building a basic CRUD application using the file system. I think we can get started.Our little folder structure should look like this:Database-----(folder)crud.js------(file)The ‘Database’ folder is going to contain a file, that will hold our Automobile business data. This data is going to comprise of the (...)

    #nodejs #javascript #node-js-file-system #web-development

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 29/11/2018

    Getting started — Quebic FaaS Framework
    ▻https://hackernoon.com/getting-started-quebic-faas-framework-c05ca0e13e08?source=rss----3a8144e

    https://cdn-images-1.medium.com/max/1024/1*BeLHnwphXA4zwx11stBn2w.png

    Hi Today I am going to introduce Quebic - FaaS Framework. Quebic provides way to write server-less functions to run on #kubernetes. It supports for Java, Python, #nodejs runtimes.The key difference between Quebic and existing FaaS frameworks is, With Quebic you can develop highly available back-ends to serve real-time and also supports to execute on-demand tasks. Most of the existing FaaS frameworks are most suitable only for executing on-demand tasks.Main TopicsPrerequisitesHigh Level Overview of QuebicSetup QuebicAPI GatewayFunctions1. PrerequisitesBefore start Qubic you need to setup Kubernetes cluster. There are several ways. Here you can find more details.You can easily setup Minikube on your local machine that will gives single node Kubernetes cluster.Or you can use hosted solution (...)

    #quebic-faas-framework #cloud-native #serverless

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 29/11/2018

    Playing Around with your Standard, Run-of-the-Mill #javascript Decorator Example
    ▻https://hackernoon.com/playing-around-with-your-standard-run-of-the-mill-javascript-decorator-e

    https://cdn-images-1.medium.com/max/1024/1*WIJHOxHU9FV2-1R8gVvl2Q.jpeg

    JavaScript Decorators: fun with function parametersJavaScript decorators have been a language feature since #es2015 came out, but they are still largely ‘experimental’ in JavaScript engines that support it. What are they? If you’re familiar with Java, you know how methods can be wrapped through annotations. The gist of it: a decorator wraps a JavaScript class method within another function, and it is invoked by annotation.I’ll be using #nodejs for the example code, so there will be several modules, plugins, and configurations that are needed.Installationinitialize an npm projectinstall the babel command-line tools; we’ll be needing this to transpile the decorated methodsinstall plugins need for the transpilationnpm init -ynpm install —save babel-clinpm install —save-dev babel-eslint (...)

    #function-parameters #javascript-parameters

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 28/11/2018

    How “Blockchain Technology” could fix the Node.js ecosystem
    ▻https://hackernoon.com/how-blockchain-technology-could-fix-the-node-js-ecosystem-bccc60832900?s

    https://cdn-images-1.medium.com/max/1024/1*uVBLs2RK3UaznRvCXHIwfg.png

    The nightmare for everyone working on Web or Node applications is probably waking up to this:The media was quick in picking up the story and now there is a massive scandal about Crypto and security and #javascript — the perfect recipe. And it is more than this: this scandal is fundamentally and legitimately questioning the way we build (open source) software with Node.js.TL;DRNPM modules should be multi-signed. Certificates and trust models should be handled on the #blockchain. Open source developers sign packages and receive a share based on their contribution to paid software. This is made possible and automatically handled by crypto payments and smart contracts. Instead of publishing rights, new maintainers = potential hackers are only granted counter-signing rights. Automatic signature (...)

    #blockchain-technology #nodejs #nodejs-blockchain

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 26/11/2018

    #debugging Node Services in #kubernetes With #linkerd 2.0
    ▻https://hackernoon.com/debugging-node-services-in-kubernetes-with-linkerd-2-0-f878382fb380?sour

    https://cdn-images-1.medium.com/max/233/1*GpDj-2zfMxDNLO67KeziAQ.png

    Node is one of the most popular languages for microservices. With the rise of Kubernetes, increasingly, Node developers are being asked to deploy their services to a Kubernetes cluster. But what’s required to safely deploy and run Node services on Kubernetes? In this post, we focus on one specific, but vital, component: how do I understand what’s happening with my Node service on Kubernetes, and how do I debug it when things go wrong?At this point, you may be thinking, can’t I just use the Kubernetes dashboard? Unfortunately, while Kubernetes can automatically keep your service up in the event of node failure or a software crash, it doesn’t actually know whether your service is behaving correctly. In fact, a service may be returning 500’s or taking too long to respond and the Kubernetes (...)

    #nodejs #debugging-node-services

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 25/11/2018

    Cooking a Deliveroo clone with Next.js (React), GraphQL, #strapi and Stripe
    ▻https://hackernoon.com/cooking-a-deliveroo-clone-with-next-js-react-graphql-strapi-and-stripe-3

    https://cdn-images-1.medium.com/max/1024/0*cTvsoNrSpjdQjyXU.png

    This tutorial is an adaptation of Pierre’s Nuxt and Strapi Deliveroo clone here.This tutorial will be adapted to use Next.js (React) over Nuxt (Vue) on the front end, complete with GraphQL, Stripe, Strapi and #react Context.Get ready to develop a Deliveroo clone, using amazing technologies: Next.js (React), GraphQL, Stripe and Strapi! From signup to order, you are going to let users discover restaurants, dishes and select their happy meal.The demo of the final result should make you hungry:Note: the source code is available on GitHub: ▻https://github.com/strapi/strapi-examples/tree/master/nextjs-react-strapi-deliveroo-clone-tutorial.Screenshots of final product:Strapi:Strapi is the most advanced open-source Node.js Headless Content Management System used to build scalable, secure, production (...)

    #nodejs #api

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 24/11/2018

    Switch Between Light and Dark Mode in macOS Mojave Command Line
    ▻https://hackernoon.com/switch-between-light-and-dark-mode-in-macos-mojave-command-line-b969cb3d

    https://cdn-images-1.medium.com/max/480/1*A0VO5ixl17-mLQJV6RdiRg.gif

    Switch #mac theme using Command lineI recently updated my Mac to MacOs Mojave. It comes with various upgrades, the dark theme is one of them.Coming from the background of hardcode Linux user, I love anything which is black and dark. I loved the new dark theme for Mac, there was just one issue.Whenever I need to switch the theme to light or dark, I need to go to Appearance screen and select it. Well, not so efficient, so I made a small command line tool to switch the theme to light or dark.And as always, sharing with you how I made it.The problemWe need to somehow manage to do the system call in Mac via command line in order to achieve what we want, I don’t have much experience in developing apps for Mac and that’s an issue.But, I do have expertise in Node.js and I think I can figure out a way (...)

    #javascript #nodejs #macos-mojave-command-line #light-and-dark-mode

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 23/11/2018

    #nodejs: 6 Types of Applications You Can Build with this Back-end Framework
    ▻https://hackernoon.com/nodejs-6-types-of-applications-you-can-build-with-this-back-end-framewor

    https://cdn-images-1.medium.com/max/1024/1*tRlnizco0gQRSNVCggYC3Q.jpeg

    Node.js is a #javascript runtime environment that is built on the event-driven programming. In a single thread the non-blocking, I/O is capable of serving multiple concurrent events. It is considered the lightweight, fast, scalable and efficient application in handling data massive due to non-blocking I/O.In many kinds of applications, the Nodejs can be used in a well-organized way. Let’s discuss in detail the renowned apps built with Node.jsReal-Time Chats:In social networks, commercial sites and on the Web; the real-time chats are used. It is the online communication tool that allows for the live transmission of the text, video or audio messages from the sender to a receiver. #node.js provide all the basic functionalities required to build the real-time chats as it can effortlessly (...)

    #development #nodejs-app-development

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 18/11/2018

    Deploying a Node App on Amazon #ec2
    ▻https://hackernoon.com/deploying-a-node-app-on-amazon-ec2-d2fb9a6757eb?source=rss----3a8144eabf

    https://cdn-images-1.medium.com/max/968/1*FfMUHATXdVt75zXzVPIzIQ.png

    Deploying a Node application on an EC2 instance may seem like a daunting task but if you know how to configure your instance it is not that hard.We will be deploying a chat application written in #nodejs in the following stepsLaunch an EC2 instance and SSH into it.Install Node on EC2 instance.Copy code on your EC2 instance and install dependencies.Start server to run forever.So let’s get started.1. Launch an EC2 instance and SSH into itYou can refer to my article Launching an Amazon EC2 instance to launch an EC2 instance and SSH into it.When configuring the security group make sure you open the port on which your Node application will run. In my case, the port is 5000.2. Install Node on EC2 InstanceAfter doing SSH into your instance we will install Node on the instance.To install node run the (...)

    #amazon-ec2 #aws #servers

    • #Amazon
    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 17/11/2018

    Install and Deploy a #react Book App in 3 Steps
    ▻https://hackernoon.com/install-and-deploy-a-react-book-app-in-3-steps-4b0062284ee?source=rss---

    https://cdn-images-1.medium.com/max/1024/1*VDMCouJyiSCUN5auvkp1nA.png

    Cosmic JS makes it easy to manage content for your React applications. Cosmic enables developers to build modern, content-powered applications without the hassle of maintaining installed CMS infrastructure. The Cosmic Dashboard gives the content creator an unmatched, delightful experience to create content.In this tutorial I’ll demonstrate using the Cosmic JS CLI to install a new Cosmic-powered React app recently debuted by the Cosmic JS Community. The Book App was built using React and Redux with content powered by Cosmic JS. Content creators can manage #books including images, titles, content, authors, and book genre/category. Search functionality is included by typing author name or book title. Sort by book categories and publish a book card from the custom admin dashboard.You can (...)

    #web-development #javascript #nodejs

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 12/11/2018
    1
    @ze_dach
    1

    Demystify The Multi-threading in Node.JS
    ▻https://hackernoon.com/demystify-the-multi-threading-in-node-js-4ff07eae9abe?source=rss----3a81

    https://cdn-images-1.medium.com/max/837/1*0h5zICLQ8zZMpwey2PFJUg.jpeg

    Node.js, one of the popular programming languages for a web software engineer, has a drawback — by default it only runs on a single thread. By using a single thread, Node.js runs the #code by using a terminology called Event Loop.To understand how event loop works, I encourage you to read this official documentation. This terminology is essential to understand the performance issue in Node.JS.The Node.js Event Loop, Timers, and process.nextTick() | Node.jsTo give you a quick summary of how Event Loop works in Node.js, we could refer to this diagram below,If you look at this diagram, an issue could appear when you need to “pause and wait until all of this stuff is completed”. On this step, there are two kinds of output. First, the process is successfully executed and continue to the next step. (...)

    #software-development #javascript #nodejs #backend-development

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 12/11/2018

    4 Free Resources for being an amazing #javascript developer
    ▻https://hackernoon.com/4-free-resources-for-being-an-amazing-javascript-developer-5e6b60c56cba?

    https://cdn-images-1.medium.com/max/1024/1*PU7wwmX3JaTa6CcDKvSwpA.jpeg

    4 FREE resources for becoming an amazing javascript developerThe internet is awash in information. What you probably need is quality, not quantity. Here are 4 resources that take you from zero to hero.1. Language FoundationsThis is a FREE course that covers all the critical aspects of javascript. It’s very thorough and most developers don’t know anywhere near all that is covered.Eloquent JavaScript2. Handling UIMost web UI these days is written with React. Learning React sometimes gets complicated with all the build tools, react/redux/storybook, plugins, and so on. Ditch all that and master the basics.Learn React By Itself - no NPM, no Webpack, no Redux, no Router - React ArmoryOnce you are done there, here is a good follow up:Hooks.guide3. Server sideFoundations and front end have been (...)

    #software-development #software #nodejs #web-development

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 10/11/2018

    Scaling Node.js Socket Server with #nginx and #redis
    ▻https://hackernoon.com/scaling-node-js-socket-server-with-nginx-and-redis-d19bf5c07fa8?source=r

    https://cdn-images-1.medium.com/max/1024/0*sxy3Paafj6f8S6P_.jpg

    One of the most interesting topics in back-end development is server scaling and distribution.There are many ways to scale your app and to handle a lot of requests and connections. In this article, we will explain one of the most popular ways of scaling Node.js applications, especially Socket connections.Imagine you have a Node application which receives 300 requests per second. It works fine, but one day the requests count becomes 10 or 100 times more. Then, you will have a big problem. Node applications aren’t meant for handling 30k requests per second (in some cases they can, but only thanks to CPU and RAM).As we know Node is a single thread and doesn’t use the much resources of your machine (CPU, RAM). Anyway, it will be ineffective.You don’t have any guarantee that your application (...)

    #web-development #nodejs #javascript

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 7/11/2018

    How to Compile Node.js Code Using Bytenode?
    ▻https://hackernoon.com/how-to-compile-node-js-code-using-bytenode-11dcba856fa9?source=rss----3a

    https://cdn-images-1.medium.com/max/1024/1*mf7iHbOO_2F_DhbMbqYukw.png

    In this post, I will show you how to “truly” compile Node.js (JavaScript) code to V8 Bytecode. This allows you to hide or protect your source code in a better way than obfuscation or other not-very-efficient tricks (like encrypting your code using a secret key, which will be embedded in your app binaries, that’s why I said “truly” above).So, using bytenode tool, you can distribute a binary version .jsc of your #javascript files. You can also bundle all your .js files using Browserify, then compile that single file into .jsc.Check bytenode repository on Github.Long story short..Install bytenode globally:[sudo] npm install -g bytenodeTo compile your .js file, run this command:bytenode —compile my-file.js my-file.jscInstall bytenode in your project too:npm install —save bytenodeIn your code, require (...)

    #electron #electronjs #nwjs #nodejs

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 20/10/2018

    QuickStart an API-powered Static Website
    ▻https://hackernoon.com/quickstart-an-api-powered-static-website-1cc140205df9?source=rss----3a81

    https://cdn-images-1.medium.com/max/1024/1*kQ5dUoTms4LLdex31-0IeQ.jpeg

    Cosmic JS is a decoupled, or headless, content management system that empowers teams to build apps faster, together. Cosmic JS provides a suite of APIs to help you build your project and manage content, regardless of your app’s programming language.In this tutorial I’ll introduce a static website that can give you the best of both worlds: A website that is both dynamically powered by the Cosmic JS API and also a static website that can be edited using Markdown files. As a bonus, you can also setup automatic builds using Webhooks. I’m going to use the Cosmic JS CLI to install this Static Website, and I encourage you to read the original article to see how it’s built. You can install, deploy and edit every part of this Static Website from your Cosmic JS Bucket Dashboard. ?TL;DR:API-powered (...)

    #nodejs #javascript #bootstrap #static-site #web-development

    • #API
    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @cy_altern
    cy_altern @cy_altern CC BY-SA 26/08/2018

    Laragon - portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby.
    ▻https://laragon.org

    Un serveur web de développement opensource sous Windows : « light » (18 Mo), configurable (document root apache, datadir MariaDB) et portable. Intègre PHP, MariaDB, XDebug etc... mais aussi NodeJS et Composer, une appli d’envoi de mail et un « mail catcher ». Génère des vhost en .test et (depuis la v3.3) semble intégrer une génération de certificats SSL internes.
    – Versions de PHP 5. et 7. + ajout « simple » d’une nouvelle version : ▻https://forum.laragon.org/topic/166/tutorial-how-to-add-another-php-version
    – phpmyadmin n’est pas inclut par défaut : ▻https://forum.laragon.org/topic/98/tutorial-how-to-add-phpmyadmin

    Documentation : ▻https://laragon.org/docs et tutoriaux : ▻https://forum.laragon.org/category/5/tutorials
    GitHub : ▻https://github.com/leokhoa/laragon

    #wamp #web_dev #laragon #nodejs #composer #windows

    cy_altern @cy_altern CC BY-SA
    • @james
      James @james PUBLIC DOMAIN 27/08/2018

      ▻https://www.youtube.com/watch?v=sHHl5kihXD4

      James @james PUBLIC DOMAIN
    Écrire un commentaire
0 | 25 | 50 | 75 | 100

Thèmes liés

  • #javascript
  • #web-development
  • technology: api
  • programminglanguage: javascript
  • #aws
  • #serverless
  • #react
  • #software-development
  • #programming
  • #npm
  • #nodejs
  • company: github
  • industryterm: software
  • #kubernetes
  • #open-source
  • technology: java
  • technology: api
  • #docker
  • #aws-lambda
  • operatingsystem: linux
  • #node.js
  • #ubuntu
  • #redis
  • #code
  • #api
  • technology: html
  • #nginx
  • technology: linux
  • company: google
  • #typescript
  • programminglanguage: javascript
  • company: mongodb
  • #blockchain
  • technology: ssl
  • #livre
  • #web
  • #nodejs
  • #react-native
  • #nodejs
  • industryterm: web development