This repository is the code used in the hands-on workshop for ReactJS conducted at Nagpur Techies 23 July 2017 meetup conducted by Tushar Joshi @tusharvjoshi
If you haven't already joined, please join our Facebook group, Slack team and Meetup group
- Node.js v8.2.1+
- NPM v5.3.0+
- Git v2.10.0+
- Visual Studio Code v1.14.2+
Use Command+P (Mac) Control+P(Windows, Linux) to open command bar and type the extensions commands to install extensions in VSCode
ESLint by Dirk Baeumer
ext install vscode-eslintReactSnippets by charalampos karypidis
ext install ReactSnippetsJavaScript (ES6) code snippets by charalampos karypidis
ext install JavaScriptSnippetsUser settings in VSCode can be found in:
File > Preferences > Settings on Windows.
Code > Preferences > Settings on Mac OS.
{
"files.autoSave": "onWindowChange",
"editor.tabSize": 2,
"editor.minimap.enabled": true,
"window.zoomLevel": 0,
"editor.dragAndDrop": true,
"html.suggest.html5": true,
"files.eol": "\n",
"eslint.options": {
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
]
},
"eslint.autoFixOnSave": true,
"typescript.check.tscVersion": false,
"editor.snippetSuggestions": "top"
}Ensure that you have cloned this repository
git clone https://github.com/nagpurtechies/reactjs-workshop.git ReactJSWorkshop
cd ReactJSWorkshopThe setup can be done by running the commands with the checked out pre-prepared files
npm install -g create-react-app
cd setup
npm install
npm run selenium-setupTo test the setup execute the following commands each one on a separate terminal. All commands should run without errors to ensure the setup is as required.
npm start
npm test
npm run selenium-start
npm run e2e-testsInstallation for WebdriverIO package needs build tools to be available on the system. If there is any error in the npm install command you may have to install the build tools as below:
npm install --global --production windows-build-toolsWindows users please run:
VC++ 2015 Build Tools http://landinghub.visualstudio.com/visual-cpp-build-tools
npm install --global --production windows-build-toolsUbuntu users please run:
sudo apt-get install g++ build-essential