Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

About

A simple Rails app to create responsive social images

Resources

License

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •  
You can’t perform that action at this time.