A React project setup
Make sure that you are in the same folder as the serverScript (root)
./serverScript
virtualenv --no-site-packages --distribute .env
source .env/bin/activate
pip install -r requirements.txt
After activating the virtual environment run:
python server/app.py
And open localhost:5000
in browser
If npm is not installed, install it from: https://nodejs.org/en/
or with homebrew:
brew install node
To set-up project go to the application folder
cd application
Now you can install all the required components by running
npm install
To build the project run:
npm start
This will build the project and start a dev server on localhost:8080 with the application. The page is reloaded automagically on any change.