Обеспечение безопасности контейнеризованного приложения Node.js с помощью Nginx, Let’s Encrypt и Docker Compose
Существует множество способов повышения гибкости и безопасности приложения Node.js. Использование обратного прокси-сервера, например…
Существует множество способов повышения гибкости и безопасности приложения Node.js. Использование обратного прокси-сервера, например…
Node.js is an open-source JavaScript runtime environment for building server-side and networking applications. Node.js applications can be run at the command line but this guide focuses on running them as a service using PM2, so that they will automatically restart on reboot or failure, and can safely be used in a production environment.
Testing is an integral part of software development. With the right test setup, this process can be automated, saving a lot of time. In this article, you’ll write tests for a Node.js TODO list module. You will set up and use the Mocha test framework to structure a series of integration tests. Then you’ll use the Node.js assert module to create the tests themselves. Finally, you will try out testing with asynchronous code, and use hooks to prepare your test fixtures and environments.
O autor selecionou a Open Internet/Free Speech Fund para receber uma doação como parte do programa Write for DOnations. Devido a funcionalidades como sua performance rápida de…
Working with files is one of the common tasks among developers. As your files grow in size, they start taking significant space on your hard drive. To get around this, you can group the files into a single ZIP file. In Node.js, you can use the adm-zip module to create and read ZIP archives. This tutorial will walk you through how to use `adm-zip` module to compress, read, and decompress files.
Node.js — это платформа программирования JavaScript общего назначения, позволяющая пользователям быстро создавать сетевые приложения. Благодаря использованию JavaScript в клиентской и серверной части приложения Node.js делает процесс разработки более…
A brief introduction into various template engines you can use in Node.js and Express. We’ll go over Pug, EJS and Mustache.
Learn how to build an alternative to WebSockets for handling realtime events in JavaScript.
Test a Node RESTful API with Mocha and Chai
Dalam Node.js, Anda perlu memulai ulang proses untuk menerapkan perubahan. Ini menambah langkah ekstra ke alur kerja Anda demi menerapkan perubahan. Anda dapat menghilangkan langkah ekstra ini dengan nodemon untuk memulai ulang prosesnya secara otomatis. Dalam artikel ini, Anda akan mempelajari tentang menginstal, menyiapkan, dan mengonfigurasi nodemon.