Skip to content

Commit

Permalink
Change setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarcus111 committed Mar 29, 2017
1 parent 9e7e418 commit 6b079af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,10 @@ I won't waffle on more, you get the idea.

# setup

After cloning the repo, you'll probably have to install some npm modules to get the project to compile.
After cloning the repo, you'll have to install the npm packages. To do this, type ```npm i``` while in the correct repos directory in the terminal.

$ sudo npm i -S react
$ sudo npm i -S react-dom
$ sudo npm i -D babel-core babel-loader babel-preset-react
$ sudo npm i -D webpack webpack-dev-server html-webpack-plugin
Once you have done this, you can begin developing by typing ```npm start```. This will start webpack dev server which will watch for changes you make and serve an up to date version of the app.

If you've set up your npm permissions correctly you won't have to sudo, but I'm pretty sloppy so that's on my to-do list.
If you wish to build a static version of the website (for test deployment), type ```npm run build``` in the terminal.

BTW, I set up my react environment using the [codecademy](https://www.codecademy.com/articles/react-setup-) instructions. That link takes you to the condensed list where I got the above commands, but you can backtract the url from there for the whole setup process if you like.

It's a MASSIVE HASSLE in my view.
Note, the original starter kit for this repository was sourced from [codecademy](https://www.codecademy.com/articles/react-setup-). You can follow these instructions to set up your own blank project or use the popular CLI, create-react-app.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "React playground",
"main": "index.js",
"scripts": {
"build": "webpack",
"build": "webpack -p",
"start": "webpack-dev-server"
},
"author": "Mark Mitchell",
Expand Down

0 comments on commit 6b079af

Please sign in to comment.