Показать страницуИстория страницыСсылки сюдаCopy this pageExport to MarkdownODT преобразованиеНаверх Вы загрузили старую версию документа! Сохранив её, вы создадите новую текущую версию с этим содержимым. Медиафайлы{{tag>node languages Server supervisor initd service script}} ====== Node.JS ====== ===== Установка nodejs + npm ===== <note tip> <code bash> $ npm install will install both "dependencies" and "devDependencies" $ npm install --production will only install "dependencies" $ npm install --dev will only install "devDependencies" </code> </note> ==== Debian ==== <note><code bash> $ curl -sL https://deb.nodesource.com/setup | bash - $ curl -L https://npmjs.com/install.sh | sh </code></note> * https://github.com/nodesource/distributions/blob/master/README.md ==== Пакетный менеджер npm ==== * https://npmjs.org/ * http://habrahabr.ru/post/133363/ ==== с репозитория ==== * https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager ===== Исправление ошибок ===== * **installing from npm fails** npm config set registry http://registry.npmjs.org/ ===== Демонизируем Node.Js / Forever ===== forever - модуль разработанный nodejitsu, - нужен для того, чтобы запускать приложения в виде демона (режиме постоянного выполнения - отсюда и название модуля). Если приложение по каким-то причинам прекращает свое выполнение, то forever его перезапускает. Также, данный модуль имеет API, так что вы можете использовать его в коде своих проектов. forver может быть установлен при помощи npm: <code js> sudo npm -g install forever </code> ===== Отладка ===== ===== Документация ===== * https://nodejs.org/dist/latest-v5.x/docs/api/ * [[nodejs:npm|npm]] - Пакетный менеджер * [[nodejs:index|Базовый функционал]] * [[nodejs:debug|Отладка и Логирование модульных сообщений]] * [[nodejs:architecture|Архитектура]] - Событийная работа в nodejs осуществляется библиотекой libUV * [[nodejs:timers|Таймеры]] * [[nodejs:events|События]] * [[nodejs:io|IO/Ввод-Вывод]] * [[nodejs:io:fs|Работа с файловой системой]] * [[nodejs:modules|Модули]] * [[nodejs:try_catch:async|Асинхронный try..catch]] * [[nodejs:app-framework|Фреймворки]] * [[nodejs:templates|Шаблонизаторы]] * [[nodejs:apps|Программы]] ===== Библиотеки ===== * GM http://aheckmann.github.io/gm/ ==== Парсинг / Web console (webkit) ==== * [[node:phantomjs|]] * [[node:casperjs|]] ==== Статьи ==== * **https://nodejs.org/api/** * **http://nodeguide.ru/doc/** * **http://nodebeginner.ru/** (https://github.com/Artod/nodebeginner.ru) * http://bonsaiden.github.io/JavaScript-Garden/ru/ * http://usefuldevops.ru/blog/2013/08/23/znakomstvo-s-phantomjs-na-praktikie/ * http://habrahabr.ru/post/222761/ * http://habrahabr.ru/post/123154/ * http://www.tosterdev.net/post/141042/ * https://github.com/rvagg/workshopper * http://nodeguide.ru/doc/ * http://habrahabr.ru/post/143538/ * http://habrahabr.ru/post/127525/ * http://habrahabr.ru/post/154755/ * http://vremenno.net/js/node-js-for-beginners/ * http://robotushka.blogspot.ru/2014/01/arduino-web-server-nodejs-serialport.html * http://code.tutsplus.com/tutorials/build-a-complete-mvc-website-with-expressjs--net-34168 * http://web.archive.org/web/20140625034821/http://nodebeginner.ru/ * http://net-comp.ru/javascript/javascript/razrabotka-rest-api-na-express-restify-hapi-i-loopback-perevod-tutorial-node-js-javascript-veb-razrabotka-esli-vy-rabotaete-nad-node-js-prilozheniem-t * http://kuroikaze85.wordpress.com/2010/03/31/express-nodejs-framework/ * http://frontender.info/absolute-beginners-guide-to-nodejs/ * http://catethysis.ru/tag/node-js/ * http://frontender.info/absolute-beginners-guide-to-nodejs/ * http://habrahabr.ru/post/161943/ * http://catethysis.ru/express-node-js/ * https://github.com/DavidKlassen/node-tutorial/wiki/Web-%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B0-%D0%BD%D0%B0-node.js-%D0%B8-express * http://www.itlessons.info/nodejs/auth-with-express-and-passportjs/ * http://habrahabr.ru/post/143538/ * http://habrahabr.ru/post/146983/ * http://habrahabr.ru/post/207930/ * http://habrahabr.ru/post/207930/ * http://blog.nodejitsu.com/ * http://nodeguide.ru/doc/ * https://github.com/manuelkiessling/nodebeginner.org * http://web.archive.org/web/20140625034821/http://nodebeginner.ru/ ===== Видео ===== * **https://www.youtube.com/playlist?list=PLDyvV36pndZFWfEQpNixIHVvp191Hb3Gg** * http://learn.javascript.ru/nodejs-screencast * http://www.youtube.com/results?search_query=Node.js * http://bit.ly/1LEUglc ===== Ссылки ===== * https://groups.google.com/forum/#!forum/nodejs * http://jsman.ru/ ===== Проекты ===== * http://www.jiiframework.ru/СохранитьПросмотрРазличияОтменить Сводка изменений Примечание: редактируя эту страницу, вы соглашаетесь на использование своего вклада на условиях следующей лицензии: CC0 1.0 Universal