Build on the top of Le Wagon React boilerplate.
Install NodeJS (https://nodejs.org/en/)
On a terminal do:
git --version
cd ~/Desktop
git clone git@github.com:yannklein/react-workshop.git react-giphy
cd react-giphy
rm -rf .git
git init
git add .
git commit -m "initial setup ready for workshop"
cd workshop
yarn install
yarn start
Open the "react-giphy" folder with SublimeText or VS Code
In your browser go to this url: localhost:8080
- Install NodeJS (https://nodejs.org/en/)
- Install Git (https://git-scm.com/download/win, during the installation select the option "use git from a Win command prompt"
Search for "Node.js prompt" in the Win menu search bar, open it and tap (press Enter after each line):
cd Desktop
git clone git@github.com:yannklein/react-workshop.git react-giphy
cd react-giphy
rm -rf .git
git init
git add .
git commit -m "initial setup ready for workshop"
cd workshop
yarn install
yarn start
Open the "react-giphy" folder with SublimeText or VS Code
In your browser go to this url: localhost:8080
- Go to SublimeText > Preferences > Package Control
Search for "Package Control: Install Package" and press Enter
.
In the appearing list, search for "Babel" and press Enter
.
-
Same operations for "Babel Snippets" (some doc here)
-
Got to SublimeText > Preferences > Key Bindings
Add the code of this link on the right side.
- Go to Code > Preferences > Extensions
Search and install "Reactjs code snippets" (some doc here)
To start the local Webpack Dev Server (usually on port 8080):
yarn start
To lint all JavaScript files in the src folder:
yarn lint
To build and deploy your app to gh-pages branch on the GitHub repo:
yarn deploy