A location-based chat application built on Sails v1.0 and Vue.js.
Augments content using the OpenWeatherMap and Twitter APIs.
The production config checked in (config/env/production.js
) assumes MySQL, but you could use any database supported by Waterline.
Tested with:
- sails-disk
- sails-mysql
- sails-postgresql
- sails-mongo
The scheduled jobs for this app live in the scripts/
directory. In our example deployment, we're using Heroku Scheduler as our cron service.
Chatkin splits up the globe into ~60,000 "zones", one for each 1° latitude by 1° longitude trapezoid on the surface of the Earth. (The number of zones is configurable-- see config/bootstrap.js
for where the config is applied.)
Zones use resourceful pubsub (RPS) to maintain a Socket.io room-- up to one for each zone. Meanwhile, Chatkin hits the Twitter API to fetch geolocated tweets for the zone, as well as weather information from OpenWeatherMap. Weather and tweets are cached for between 2-4 hours in the database.
You can chat with other people in your zone by changing your Chatkin "remark". Much like the non-augmented, reality world, you can only say one thing at a time.
Login + signup utilizes bcrypt for hashing and comparing passwords.
- Sails framework documentation
- Version notes / upgrading
- Deployment tips
- Community support options
- Professional / enterprise options
This application, like the Sails framework, is available under the MIT license.