Giter Club home page Giter Club logo

bvs's Introduction

bvs

This is the frontend application for the "Batman VS Superman Opinions", the goal here is to provide a progressive app interface as nice as a native phone application. Also, provide API and SocketIO communication for app tasks.

How does it work

On the progressive app application, everything resides inside the lib path. It uses require.js as an AMD loader for dependencies. It uses Backbone and Marionette as main javascript frameworks for organizing stuff. If you ever developed a native application, it is all there. Likewise Models/Views are almost the same, templates is just the interface. And for events I use Backbone's Wreqr.

For API and SocketIO, everything is on the app.js. It's quite simple since it only receives data and never pushes anything.

Features

  • Mobile first thinking.
  • Nice and responsive css using MUI-css
  • Avoided javascript pyramid of doom callback hell
  • Quite fast and responsive.

I mean, it was designed for mobile. I used a custom progressive app shell that I was building with backbone.

Async

The receive of the tweet and the processing the request on alchemyapi are dealeded apart, what gives a better feedback for the user on interface. SocketIO events were sended to Wreqr channels. Thouse channels listeners are

Services

It needs Redis for the SocketIO interface. It should be configured to use the sabe redis DB of the bvs-worker.

Tests

Didn't have time yet. Be welcome to post some. I was thinking in use JSDom and some mocks just to unit test some views alone.

Run

Just type: make run. The application will start. However, you stell need to also start localy a instance of the bvs-worker to see something on screen. Other wise it would be just a blank

Features taggeds as nice

Use of a manifest of some neat color schemes. Use of a service worker to cache stuff, that would increase the second boottime. Use of push notifications to push score milestones.

Reporting Issues

Pull requests and open issues were welcome.

License

It's a standard MIT license, fell free to share.

bvs's People

Contributors

gutomaia avatar

Watchers

 avatar  avatar

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.