Git Product home page Git Product logo

chatkin's Introduction

chatkin

A location-based chat application built on Sails v1.0 and Vue.js.

Augments content using the OpenWeatherMap and Twitter APIs.

screenshot of zone chat screenshot of zone map screenshot of login screen

Compatibility

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

Scheduled jobs

The scheduled jobs for this app live in the scripts/ directory. In our example deployment, we're using Heroku Scheduler as our cron service.

How it works

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.

Links

License

This application, like the Sails framework, is available under the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.