From c865ce88e0a91bad86956b4b4f328b7b8fb40d23 Mon Sep 17 00:00:00 2001 From: Robert Balejik Date: Mon, 7 Dec 2015 19:23:54 +0100 Subject: [PATCH 1/3] first commit --- README.md | 17 +++++++++++++++++ project_setup | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 project_setup diff --git a/README.md b/README.md index 3fb1399..2126c3e 100644 --- a/README.md +++ b/README.md @@ -45,3 +45,20 @@ Open up terminal (Windows + R -> 'cmd' -> Enter) and type `node -v`. If it works * open up terminal * `sudo apt-get install nvm` * `nvm install 5.1` + +### Install Node with nvm on any Unix(Linux, Mac...) +Node version manager (best practice): you can switch between Node version + +curl https://raw.githubusercontent.com/creationix/nvm/v5.0.0/install.sh | bash #grab version 4 +source ~/.profile # to get system aware of nvm - include nvm in $PATH = so you can use 'nvm' command in terminal +nvm ls # if you get error install git +apt-get install git, dnf/yum install git .... +# install any node version you want +nvm install v5.0.0 +nvm install v5.1.0 +node --version # node you're currently using +nvm use v 5.0.0 # changes node version only in current terminal tab +nvm alias default v5.0.0 # now this version is set as system default +so if you do not set it expclicitely v5 is set as default but you can override it - but only in terminal tab where you type "nvm use vX.y...." +elswhere (where you do not set it expclicitely - v5.0.0 would be used + diff --git a/project_setup b/project_setup new file mode 100644 index 0000000..8494d75 --- /dev/null +++ b/project_setup @@ -0,0 +1,4 @@ +npm init # inicializuje node projekt +npm install --save eslint # linter - checkuje sytnax(uplny zaklad each projektu) - potom treba plugin v txt editore pre eslint, aby "vedeli o sebe" +eslint config # konfiguruje eslint pozrite si navody (how to configure eslint) ale stacia defaulty, okrem JSX a react moznosti, +#yes iba ak chcete pouzivat reactJS From 283f41d13faee7ce7ce8f885038663bf7f2be30d Mon Sep 17 00:00:00 2001 From: Robert Balejik Date: Mon, 7 Dec 2015 19:52:57 +0100 Subject: [PATCH 2/3] final version --- README.md | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++ project_setup | 12 +++++++++- 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..2126c3e --- /dev/null +++ b/README.md @@ -0,0 +1,64 @@ +# Nodeschool/Bratislava + +NodeSchool Bratislava Logo + +Feel free lurk public chatroom @ +[![Join the chat at https://gitter.im/nodeschool/bratislava](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/nodeschool/bratislava?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) + +## Upcoming NodeSchool/Bratislava meetup + +planned at **12.12.2015** as *all-day* event in **Progressbar** [(Michalská 3, Bratislava)](https://www.google.com/maps?q=michalska+3,+bratislava). + +Please tell us, if you are coming to +**[this thread (issue)](https://github.com/nodeschool/bratislava/issues/2)** + +##### Sponsors are welcome! + +##### Pull Requests are welcome! + +### [Knowledge Library](https://github.com/nodeschool/bratislava/tree/master/library) +*credits for logo goes to [d14](https://twitter.com/d14)* + +## Installing NodeJS + +For obvious reasons, having NodeJS installed on your work machine is a must. :smile: + +##### Windows + +Using Windows 10, however, workflow should be similar for most versions. + +* download v4.2.2 from https://nodejs.org/en/ (5.1.0 has problems with npm and VS2015) +* install it regularly + +Open up terminal (Windows + R -> 'cmd' -> Enter) and type `node -v`. If it works, you are good to go and you can ignore the stuff below. Otherwise, continue. + +* open up **This PC** +* in that window, right click the **PC** icon located above all your hard drives and directories +* in the new window, click **Advanced system settings** +* in the newest window, click **Environment Variables...** +* find the **PATH** variable, click **edit** +* add the following: *YOUR_ABSOLUTE_NODEJS_INSTALL_DIRECTORY/;* and *C:\Users\YOUR_USERNAME\AppData\Roaming\npm;* +* please note that all PATH variables must be separated with **;** + +##### Ubuntu + +* open up terminal +* `sudo apt-get install nvm` +* `nvm install 5.1` + +### Install Node with nvm on any Unix(Linux, Mac...) +Node version manager (best practice): you can switch between Node version + +curl https://raw.githubusercontent.com/creationix/nvm/v5.0.0/install.sh | bash #grab version 4 +source ~/.profile # to get system aware of nvm - include nvm in $PATH = so you can use 'nvm' command in terminal +nvm ls # if you get error install git +apt-get install git, dnf/yum install git .... +# install any node version you want +nvm install v5.0.0 +nvm install v5.1.0 +node --version # node you're currently using +nvm use v 5.0.0 # changes node version only in current terminal tab +nvm alias default v5.0.0 # now this version is set as system default +so if you do not set it expclicitely v5 is set as default but you can override it - but only in terminal tab where you type "nvm use vX.y...." +elswhere (where you do not set it expclicitely - v5.0.0 would be used + diff --git a/project_setup b/project_setup index 8494d75..2f6f333 100644 --- a/project_setup +++ b/project_setup @@ -1,4 +1,14 @@ npm init # inicializuje node projekt -npm install --save eslint # linter - checkuje sytnax(uplny zaklad each projektu) - potom treba plugin v txt editore pre eslint, aby "vedeli o sebe" +npm install --save-dev eslint # linter checkuje sytnax(uplny zaklad each projektu)- potom treba plugin v txt editore pre eslint, aby "vedeli o sebe" eslint config # konfiguruje eslint pozrite si navody (how to configure eslint) ale stacia defaulty, okrem JSX a react moznosti, #yes iba ak chcete pouzivat reactJS +#potom mozte pridavat dalsie package a zacat kodit :) +#napr: +npm install --save react@^0.14.0 +# rozdiel medzi --save --save-dev : --save-dev to su iba developers dependencie teda bez nich projekt bude ficat in production +#len su potrebne pre developovanie - napr eslint, nejake tooly ... +# ostatna odporucana literatura: +https://rogerdudler.github.io/git-guide/ #git guide +#package.json - resp ( ten file sa tvori pri npm init -da sa editovat aj manualne): +#http://browsenpm.org/package.json +#https://docs.npmjs.com/files/package.json From 693646b7ba709b8a3f081f965416708af7c2ec1a Mon Sep 17 00:00:00 2001 From: Robert Balejik Date: Tue, 22 Dec 2015 20:48:29 +0100 Subject: [PATCH 3/3] other useful stuff: editor(Atom), ako na nodeschool... --- other_usefull_stuff | 16 ++++++++++++++++ project_setup | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 other_usefull_stuff diff --git a/other_usefull_stuff b/other_usefull_stuff new file mode 100644 index 0000000..2153b08 --- /dev/null +++ b/other_usefull_stuff @@ -0,0 +1,16 @@ +npm install eslint -g # linter - checkuje sytnax(uplny zaklad each projektu)- potom treba plugin v txt editore pre eslint, aby "vedeli o sebe" +eslint config # konfiguruje eslint pozrite si navody (how to configure eslint) ale stacia defaulty, okrem JSX a react moznosti, +#iba ak chcete pouzivat reactJS +# -g znamena ze nainstaluje globalne (odporuca sa iba pre veci ako napr lintre, nejake command line tools... +#inak je to antipattern - niektore package globalne ani nepojdu nainstalovat + +# ostatna odporucana literatura: +https://rogerdudler.github.io/git-guide/ #git guide + +#package.json - resp ( ten file sa tvori pri npm init -da sa editovat aj manualne): +#http://browsenpm.org/package.json + +#https://docs.npmjs.com/files/package.json +# a este samotny textovy editor: najskor asi atom (od githubu) +# http://info.meteor.com/blog/how-to-set-up-atom-and-webstorm-for-meteor-es6-es2015-and-jsx - configure eslint s atomom + diff --git a/project_setup b/project_setup index 2f6f333..9cf8044 100644 --- a/project_setup +++ b/project_setup @@ -1,5 +1,5 @@ npm init # inicializuje node projekt -npm install --save-dev eslint # linter checkuje sytnax(uplny zaklad each projektu)- potom treba plugin v txt editore pre eslint, aby "vedeli o sebe" +npm install --save-dev eslint -g # linter checkuje sytnax(uplny zaklad each projektu)- potom treba plugin v txt editore pre eslint, aby "vedeli o sebe" eslint config # konfiguruje eslint pozrite si navody (how to configure eslint) ale stacia defaulty, okrem JSX a react moznosti, #yes iba ak chcete pouzivat reactJS #potom mozte pridavat dalsie package a zacat kodit :) @@ -12,3 +12,5 @@ https://rogerdudler.github.io/git-guide/ #git guide #package.json - resp ( ten file sa tvori pri npm init -da sa editovat aj manualne): #http://browsenpm.org/package.json #https://docs.npmjs.com/files/package.json +# a este samotny textovy editor: najskor asi atom (od githubu) +# http://info.meteor.com/blog/how-to-set-up-atom-and-webstorm-for-meteor-es6-es2015-and-jsx - configure eslint s atomom