Skip to content

Change your Chrome wallpaper to a top landscape photo from Reddit every day.

Notifications You must be signed in to change notification settings

micahcantor/dailypapers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dailypapers

Change your Chrome wallpaper to a top landscape photo from Reddit every day.

Logo

How it works

Dailypapers uses a Go backend to pull the top landscape photo of the day from Reddit's r/EarthPorn. The program then resizes the photo to 1920x1080 using caire, a content aware image resizing library written in Go. The resized image is uploaded to Imgur, and its metadata to a MongoDB database which is sent to the client whenever a user opens a new tab.

This repository contains the code for both the backend (in /cmd) and the extension (in /client). The daily routine which uploads the new image is hosted on AWS Lambda, while the http server is hosted on Heroku.

Local Development

git clone https://github.com/micahcantor/dailypapers.git, then:

To run the daily function:

  • Move the contents in daily() in daily/main.go to main()
  • Either remove the imgurUpload() function or register your own app for the Imgur API.
  • Connect your own mongodb database in getCollection()
  • Run with go run main.go

To run the extension

  • Go to chrome://extensions, and turn on 'Developer Mode'
  • Click 'Load unpacked' and select the folder dailypapers/client

Installation

Dailypapers is available on the Chrome Web Store. webstore

About

Change your Chrome wallpaper to a top landscape photo from Reddit every day.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published