GithubHelp home page GithubHelp logo

imgix / motif Goto Github PK

View Code? Open in Web Editor NEW
41.0 16.0 3.0 178 KB

A simple Rails app to create responsive social images

License: BSD 2-Clause "Simplified" License

Ruby 23.14% JavaScript 10.02% CSS 6.38% HTML 60.44% Shell 0.02%

motif's Introduction

Motif

Motif is a service to create and serve responsive social images, fit to drop into any og:image or twitter:image meta tag.

Motif uses imgix for the image compositing, and PhantomJS for discovering information about the URL entered.

You can see a version of Motif running at https://motif.imgix.com.

It is built with Rails 5 and vue.js.

Running Locally

You'll need:

  • Node
  • Ruby 2.3.0
    • rvm users can run rvm install 2.3.0
  • Bower
    • npm install -g bower
  • Heroku Toolbelt
  • libpq-dev
    • on RHEL systems: yum install postgresql-devel
    • for Mac: brew install postgresql
    • for Mac in case postgres installed via macports than gem install pg -- --with-pg-config=/opt/local/lib/postgresql[version number]/bin/pg_config
  • phantomjs
    • brew install phantomjs
    • or npm install -g phantomjs

Then, just run:

  • bundle install
  • bin/rails db:setup
  • bower install
  • heroku local

Deploying to Heroku

You will need to add 2 custom buildpacks if you would like to deploy to Heroku:

To do so with a new app:

From there, it's just a simple:

  • git push heroku master

motif's People

Contributors

oaleynik avatar paulstraw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

motif's Issues

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.