This Single-page Applicaiton was built with React JavaScript library my Masters in Interactive Journalism. My goal was to learn the fundamentals of REACT, improve my JavaScript and learn more about deploying Single Page Applications for the purpose of journalistic work.
To run locally download this repository to your machine.
- Install Homebrew Although you can install Node in other ways, I recommend using Homebrew. Homebrew lets you avoid possible security problems associated with using the sudo command to install software like Node and Node modules.
Type:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"You’ll see messages in the Terminal explaining what you need to do to complete the installation process. You can learn more about Homebrew at the Homebrew website.
- Install node
Open the Terminal app and type brew update. This updates Homebrew with a list of the latest version of Node.
Type:
brew install nodeKick back and relax. Homebrew has to download some files and install them. But that’s it.
Make sure you have Node and NPM installed by running simple commands to see what version of each is installed:
Test Node. To see if Node is installed, type:
node -vin Terminal. This should print the version number so you’ll see something like this v0.10.31.
Test NPM. To see if NPM is installed, type:
npm -v in Terminal. This should print the version number so you’ll see something like this 1.4.27
-
Clone the repository to your local environment.
-
Ensure the downloaded project folder is your current directory in Terminal.
-
To install the ype:
npm install - type:
npm start If successful, terminal you will see:
Compiled successfully!
You can now view homelessness-crisis-ireland in the browser.
Local: http://localhost:3000/
On Your Network: http://192.168.0.51:3000/
Note that the development build is not optimized.
To create a production build, use npm run build.
- React - A JavaScript library for building user interfaces
- Nivo - Data graphics library build on d3 and react.
- Thomas Kilroy - Initial work - deadhandsignal
- A huge debt of gratitude to my lecturers Basile Simon of The Times and Dr. Sabin Tabirca of University College Cork.
Thomas Kilroy – @tpkilroy – thomas.kilroy@city.ac.uk
https://github.com/deadhandsignal
- Fork it (https://github.com/deadhandsignal/kilroyreact/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request