- Clone repository via
git clone [email protected]:GetStream/stream-react-example.git
- In a terminal window, cd into the directory for
/app
and runnpm install
- In a terminal window, cd into the directory for
/api
and runnpm install
- Run
npm install -g webpack nodemon
- Update
env.sh
in/
with proper credentials and source theenv.sh
file viasource env.sh
- Run webpack to pickup on changes in
/app
by runningsource ../env.sh; webpack --watch --progress
- In a terminal window, cd into the directory for
/app
thensource ../env.sh; npm start
- In a terminal window, cd into the directory for
/api
thensource ../env.sh; nodemon
orsource ../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
3000
and the api runs on port8000