- Clone repository via
git clone git@github.com:GetStream/stream-react-example.git - In a terminal window, cd into the directory for
/appand runnpm install - In a terminal window, cd into the directory for
/apiand runnpm install - Run
npm install -g webpack nodemon - Update
env.shin/with proper credentials and source theenv.shfile viasource env.sh - Run webpack to pickup on changes in
/appby runningsource ../env.sh; webpack --watch --progress - In a terminal window, cd into the directory for
/appthensource ../env.sh; npm start - In a terminal window, cd into the directory for
/apithensource ../env.sh; nodemonorsource ../env.sh; node index.js - Setup MySQL database with your username and password (database schema for import is located in
/db)
Voila:
Go to http://localhost:3000/
Note:
The app runs on port
3000and the api runs on port8000