Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.6 KB

README.md

File metadata and controls

55 lines (41 loc) · 1.6 KB

chitchattychat

A chat prototype composed of four projects:

Live setup on Heroku:

Prerequisites

  • Make sure you have the heroku toolbelt installed
  • Install webpack
  • Install react-native

Clone all the above repos into a root chat folder and navigate to that chat folder.

  1. Live API
cd chat-api
heroku create --region eu
heroku addons:create heroku-redis:hobby-dev
heroku addons:create mongolab:sandbox
git push heroku master 
  1. Socket server
cd ..
cd socket-chat-server
heroku create --region eu
heroku addons:attach heroku-redis
heroku features:enable http-session-affinity
git push heroku master
  1. Chat bot TODO: Add instructions some time

  2. Web client edit: add how to buid with webpack and add that only copy index.html, css and js files Change apiurl and socketurl in index.html to those corresponding to heroku apps deployed to a static hosting provider such as s3: http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html

  3. React native TODO: This is out of date Change urls (currently in actions.js and /chat/index.js but need to be put in a better spot)

Local setup

I will flesh this out in time but for now a good start would be to install redis and mongodb and get the demons running (this will get you hald the way there)