Skip to content

nagpurtechies/reactjs-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nagpur Techies ReactJS Workshop

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

Prerequisite Setup

  1. Node.js v8.2.1+
  2. NPM v5.3.0+
  3. Git v2.10.0+
  4. Visual Studio Code v1.14.2+

Visual Studio Code Extensions

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-eslint

ReactSnippets by charalampos karypidis

  ext install ReactSnippets

JavaScript (ES6) code snippets by charalampos karypidis

  ext install JavaScriptSnippets

Visual Studio Code Custom User Settings

User 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 ReactJSWorkshop

The 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-setup

To 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-tests

Additional settings

From Admin Console

Installation 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-tools

Windows users please run:

VC++ 2015 Build Tools http://landinghub.visualstudio.com/visual-cpp-build-tools

npm install --global --production windows-build-tools

Ubuntu users please run:

sudo apt-get install g++ build-essential

About

Nagpur Techies ReactJS Workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published