Skip to content

Amatsukan/Anagram

Repository files navigation

README

Anagram checker

  • Ruby version ruby 1.9.3

Pull this directory.

All commands must be executed in this app root folder

  • System dependencies

Install curl, postgressql, sqlite3, git and ruby.
After execute 'bundler install'
  • Databases

This app use sqlite3 for test and dev environment, for production he use psql
If you use production environment in you local machine, DON`t skip "DB configuration" step
If you use only dev or test environment in your local machine, skip "DB configuration" step
  • DB configuration

  • Configuration

Run 'rake db:create && rake db:migrate' for configure db for this app 
Now run 'rails server'
Done, this app can be used on http://localhost:3000
  • How to run the test suite

So most easy, only run 'rspec spec'
  • Deployment instructions(Heroku)

For deploy this app in Heroku, you must make:
 *Heroku account in : https://signup.heroku.com/www-header
 *Open terminal, and login in Heroku with 'heroku login' command
 *Open app root folder and run 'heroku create'
 *Now execute 'git push heroku master'
 *Finish run 'heroku run rake db:migrate' for create and configure heroku DB
For fast open, run 'heroku open'
  • Tutorial for use

Open app(in heroku, local or remote.. whatever)
First page show all requests for check anagram results. If have one or more, the list with all 'requests' is shown, this list have a link each line for open one especific 'request' details.
This app have 3 states:
 *First, is homepage. Show lasts 'requests', from her is possible open "check new anagram page" and specifc 'request' details whith "show" link
 *Check new anagram page, is principal page, in her you can send two strings for check if is anagram or no, after click in 'is anagram?' button, you are redirected for "show page" with your request and result of the operation.
  from this page you can access home again or send new 'request'
 *Show page, is a detail page from one request, contais two sent strings, result is true if anagram or false for not anagram and contains request date.
  from this page you can access "home page" or "check new anagram page"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published