Durev / ImageUploader

Coding test : Simple Rails app to upload and display random images :mount_fuji:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Uploader

This is a simple Rails application made up of 2 pages :

  • The home page, in which you can upload any PNG or JPG image.
  • The display page, showing a random image from your selection, changing every 7 seconds.

Getting started

ImageMagick

To run the app in a local server, you are going to need the ImageMagick program. If you're using some Unix OS, ImageMagick may already be installed on your computer. To find out :

$ identify -version

If you already have a version of ImageMagick installed, jump to the next step to run the app locally.

If it isn't installed :

  • You can use Homebrew on a Mac :
brew install imagemagick

Run the app on your computer

First, clone the repo and then install the needed gems:

$ bundle install

Next, migrate the database:

$ rails db:migrate

Finally, run the test suite to verify that everything is working correctly:

$ rails test

If the test suite passes, you'll be ready to run the app in a local server:

$ rails server

You're ready to go : Open the app

About

Coding test : Simple Rails app to upload and display random images :mount_fuji:


Languages

Language:Ruby 73.3%Language:HTML 19.7%Language:CSS 4.1%Language:JavaScript 2.4%Language:CoffeeScript 0.4%