To run API, be sure to run npm install restify mongojs
& you can enjoy it, after firing up mongo on local machine & executing node index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
Для воркшопа nodeschool необходимо установить платформу node.js и пакетный менеджер npm.
для Windows, MacOS самый простой способ установки через официальный сайт в автоматическом режиме, нажав на кнопку Install.
для Linux/Unix систем самый надежный способ через командную строку, использую подходы:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
skype:?chat&blob=9ri6f4lwrqt2av4P7WeVXu0HK7iA5REpRvCTJjJs6tTyROt2fEbV6Ee1PuzJxtzsGZu3vlZOdJQDsPKs7q2nUSXpSqRDRyttbG8WgdShB0z9dfy-YePwuNzQLWTb1Jj3ZvVtPM5cc6BT9z6BUMVv9NH1DqBTN2TU0nR9GJl9MwsNOllvT9HM6AXOCXoltDtj4Y2Ke9XtU6zGlkmFjdTxmmzb3_POeZC5QKtMkwA0qwiK_Xu9 |
- node.js setup manual (ru) - https://gist.github.com/sejoker/2c34f1b12c435d97cc0f
- learning resources (en) https://github.com/rockbot/node-for-beginners
- currated list of packages and resources:
- learning resources (ru)
- screencast http://learn.javascript.ru/nodejs-screencast
- intro book http://www.nodebeginner.ru/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Задача №0. | |
Настроить JSHint для своего IDE | |
описание: http://www.jshint.com/install/ | |
Задача №1. | |
Реализация функции deepCopy - для копирования объекта с учетом вложенных объектов: | |
var a = {b: ‘c’, d: {e: ‘f’}}, | |
b = deepCopy(a); | |
a.d = 12; | |
b.d // {e: ‘f’} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Задача | |
Пройти воркшоп http://nodeschool.io/#functionaljavascript | |
Шаги по установки описаны здесь: https://www.npmjs.org/package/functional-javascript-workshop | |
Успешно выполненные задания сохраняйте отдельными .js файлами в вашем git репозитории. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Firmata is a generic protocol for communicating with microcontrollers | |
* from software on a host computer. It is intended to work with | |
* any host computer software package. | |
* | |
* To download a host software package, please clink on the following link | |
* to open the download page in your default browser. | |
* | |
* http://firmata.org/wiki/Download | |
*/ |
- npm install request в локальной папке с решениями
- сохраните следующий код в отдельном файле get.js:
var request = require('request');
module.exports = function (url, cb){
request(url, function(error, response, body){
if (error){
cb(error);
} else {
OlderNewer