Instant multi-lingual messaging. It allows people to talk to each other in a variety of languages, each user experiencing the same conversation in their own language. BabelChat is built upon:
$ git clone [email protected]:panteha/BabelChat.git
$ cd BabelChat
$ npm install
- Obtain a Google Translation API key.
- Set up the environment:
$ export PATH=$PWD/node_modules/.bin:$PATH
$ export TRANSLATE_KEY=<GOOGLE TRANSLATE API KEY>
$ export DATABASE_DEVELOPMENT=mongodb://<username>:<password>@<hostname>:<port>/babelchat
$ export DATABASE_TEST=mongodb://<username>:<password>@<hostname>:<port>/babelchat-test
- Build React frontend
$ webpack
$ npm start
then visit http://localhost:3000/
$ npm test
To run on Heroku, the app requires a MongoDB to be hosted somewhere else. We have used mlab previously.
To set up the Google Translate API and MongoDB for Heroku
$ heroku config:set TRANSLATE_KEY=$TRANSLATE_KEY
$ heroku config:set DATABASE_DEVELOPMENT=mongodb://<username>:<password>@<hostname>.mlab.com:<port>/babelchat