Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/desktoppr/giftoppr

Sync your favourite gifs with Dropbox
https://github.com/desktoppr/giftoppr

Last synced: 2 months ago
JSON representation

Sync your favourite gifs with Dropbox

Awesome Lists containing this project

README

        

![Giftoppr](https://github.com/desktoppr/giftoppr/blob/master/app/assets/images/logo.png?raw=true)

[![Build Status](https://travis-ci.org/desktoppr/giftoppr.png?branch=master)](https://travis-ci.org/desktoppr/giftoppr)

### Getting started

You'll first need to grab a Dropbox API key from here: https://www.dropbox.com/developers.

When asked (full dropbox, or single folder only) choose single folder.

Set these env variables

```bash
DROPBOX_KEY=""
DROPBOX_SECRET=""
```

Then:

```bash
brew install postgresql imagemagick
createuser -sPE postgres # Creates the postgres user we use in database.yml

git clone [email protected]:desktoppr/giftoppr.git
cd giftoppr
bundle
rake db:schema:load
rake db:seed # Loads in gifs from ~/Dropbox/Apps/Giftoppr
rails server
```

### Heroku

Ensure environment variables are available during deploys.

```bash
heroku labs:enable user-env-compile
```

Increase maximum database connections to 20

```bash
heroku config -s | awk '/^DATABASE_URL=/{print $0 "?pool=20"}' | xargs heroku config:add
```

You'll need these environment variables for asset_sync and S3

### Environment Variables

```bash
DROPBOX_KEY=""
DROPBOX_SECRET=""
AWS_ACCESS_KEY_ID=""
AWS_SECRET_ACCESS_KEY=""
FOG_DIRECTORY=""
FOG_HOST=""
FOG_PROVIDER=""
ASSET_SYNC_GZIP_COMPRESSION=true
SECRET_TOKEN=""
```

### CORS and S3

If you're hosting the gifs on S3, you'll need to edit its CORS configuration so it allows XHR requests

```xml


*
GET
POST
PUT
*

```

### Contributers

Here are the amazing people that have contributed to Giftoppr. Thank you so much :)

- [Keith Pitt](https://github.com/keithpitt)
- [Mario Visic](https://github.com/mariovisic)
- [Jeremy](https://github.com/j10io)
- [Jared Fraser](https://github.com/modsognir)
- [James Dowling](https://github.com/james-dowling)
- [Martin Jagusch](https://github.com/mjio)

### Contributing

1. Fork this repository
2. Create your feature branch for each new feature (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push the branch to github (git push origin my-new-feature)
5. Create new Pull Request

**Looking for ideas? There may be some unassigned [feature requests here](https://github.com/desktoppr/giftoppr/issues?labels=feature-request)**