Skip to content
A photo gallery using data generated from /r/MechanicalKeyboards. Demo for KWRuby's meetup on March 20, 2018.
Ruby HTML JavaScript Vue CSS
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
.babelrc
.gitignore
.postcssrc.yml
.ruby-version
Dockerfile
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
docker-compose.yml
package.json
yarn.lock

README.md

MechHead

A photo gallery using data generated from /r/MechanicalKeyboards. This is an example site showcasing Webpacker (with Vue and ERB integrations) and ActiveStorage.

MechHead

Requirements

  • Docker
  • Docker Compose

Development

Spin up all Docker containers for development:

docker-compose build
docker-compose up

Edit hosts file, /etc/hosts on most *nix systems

127.0.0.1        assets.mechhead.test
127.0.0.1        mechhead.test

Set up databases:

docker-compose run --rm web rails db:create
docker-compose run --rm web rails db:schema:load

Add test data:

docker-compose run --rm web rails reddit:fetch_images

Open http://mechhead.test/

You can’t perform that action at this time.