Giter Club home page Giter Club logo

zoo-story's Introduction

Zoo Story

with apologies to Edward Albee

Deploy to Heroku Build Status Code Climate Test Coverage

This application was built in fulfillment of a code test, spec as follows:

Please create a Rails application for keeping a catalog of zoos. The app should have the following features:

  • Every zoo has a name and a list of animals.
  • Every animal has a name and a species and belongs to a single zoo.
  • A user can perform standard CRUD operations (create, read, update, delete) for zoos and animals.
  • For each zoo, the user can see a list of its animals.
  • The user can see a list of all zoos with the number of unique species present in each zoo. (For example: If the Clackamas County Zoo has a monkey named Alice, a monkey named Bob, and an elephant named Zeus, then its number of species is 2.)
  • It should use a SQL data store (compatible with PostgreSQL) and run Rails version 3.2 or above.

Note the lack of authentication, authorization, or secrets setup - these was not called for in the spec. They would likely be implemented with the Devise, Cancancan or Pundit, and Figaro gems respectively. Todo: integration testing?

See it running at stephancom-zoo-story

Ruby on Rails

This application requires:

  • Ruby 2.2.4
  • Rails 4.2.5

Learn more about Installing Rails.

Getting Started

= Local setup

  • clone repository
  • bundle
  • set up database.yml
  • rake db:setup

= Heroku setup steps

heroku create [OPTIONAL SERVER NAME]
git push heroku master
heroku run rake db:migrate
heroku run rake db:seed
heroku open

Documentation and Support

Issues

Similar Projects

Contributing

Credits

by: _            _
 __| |_ ___ _ __| |_  __ _ _ _    __ ___ _ __
(_-<  _/ -_) '_ \ ' \/ _` | ' \ _/ _/ _ \ '  \
/__/\__\___| .__/_||_\__,_|_||_(_)__\___/_|_|_|
           |_|              [email protected]

Rails Composer

This application was generated with the rails_apps_composer gem provided by the RailsApps Project.

Rails Composer is supported by developers who purchase our RailsApps tutorials.

Problems? Issues?

Need help? Ask on Stack Overflow with the tag 'railsapps.'

Your application contains diagnostics in the README file. Please provide a copy of the README file when reporting any issues.

If the application doesn't work as expected, please report an issue and include the diagnostics.

License

zoo-story's People

Contributors

stephancom avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.