Skip to content
Travel blog which displays posts on a map, and fetches associated photos from Flickr
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
tmp
vendor/assets
.babelrc
.gitignore
.postcssrc.yml
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
package.json
yarn.lock

README.md

Travelblog

This application can act like a standard blog, with a series of posts which are shown page-by-page.

homepage

The key difference is that the application calculates the latitude/longitude of each post based on its city name, such that the posts can be explored on a map.

A full-screen map is provided, allowing the user to explore all posts via the map. A smaller mini-map is also included on each post.

map

The blog is optimised for easy uploading of travel photos while on the road, so each post's photos should be bundled into a new Flickr album.

When creating a new post, simply specify the blog location using the city and country name, enter the ID of the Flickr album, and the rest is handled automatically. Posts may be set as Published or Draft (in which case only the administrator can see them).

new post

The first photo in the Flickr album is used as the header image. To change the order of the photos, edit an existing post and drag+drop the photos in the desired order.

To use this application

Admin users

I haven't bothered to create a UI interface for creating users, and in fact the Devise routes for this have been removed. So the only way to create admin users is via Rails Console:

user = User.create(email: 'blah@gmail.com', password: 'qwerty')
user.save!

An admin user may sign in using the Devise routes /users/sign_in or /posts/new

Flickr API access

This application uses the Flickraw gem to access Flickr, so you need to apply for your Flickr API keys.

You then need to set these in the environment variables FlickRaw_api_key and FlickRaw_shared_secret

You can’t perform that action at this time.