Repo for my react projects. Each branch of this repository contains a seperate project.
Setting up dev environment for ReactJs. This is a basic skeleton project to start your react journey.
Most of the depencies are already added to the package.json. Execute npm install
in your project folder using any terminal [bash, cmd ...] to install the required dependencies.
There are a few pakages that are not included in the pacakge.json, and need to be installed explicitly.
Navigate to the project folder using cmd/shell and execute the following commands,
npm install -g babel
npm install -g babel-cli
npm install babel-core
npm install babel-loader
npm install babel-preset-react
npm install babel-preset-es2015
This is pretty easy, navigate to the project folder using any terminal of your choice and run npm start
.
I have configured development server to run on port 8989, you can change it in webpack.config.js to run it on some other port.
Now, Go ahead and open http://localhost:8989/ in any browser of your choice to see your application running.