Coder Social home page Coder Social logo

amoeba-circus-on-rails's Introduction

Amoeba Circus

Amoeba Circus on Rails

Goal

Typhus, the ringmaster needs an application that will allow him to schedule his acts for his upcoming amoeba circus.

First he will need to be able to input all his Amoeba performers into a list keeping track of their name, special talent: acrobat, contortionist, clown, juggler, or freak; and their generation number based on the number of splits that occured up to their creation. Each time an amoeba splits the old amoeba dissapears and two new amoebas are created sharing the special talent of their parent. So for example: if Brian a juggler is first generation amoeba and then splits, he is destoyed as 2 new amoebas jeff and barry are created both jugglers with their generation number set to 2.

We will also need to create acts that amoebas can be added to. Acts will have a name, date and time of performance and a list of all the amoebas performing for that act.

For an example of what you're aiming for, see the demo app.

Instructions

  1. generate a new rails app
  2. cd into app and initialize as a new git repo.
  3. add a remote matching the same name on your personal github.
  4. using rails generate commands, create the models and migrations needed for amoebas, acts, and talents. acts and amoebas will have models, controllers, and views, whereas talent only needs a model to store the name of each special talent: acrobat, contortionist, clown, juggler, or freak.
  5. Check the migrations to make sure they are correct and make any changes neccesary.
  6. Fill in the appropriate active record associations for each model and then run the migrations.
  7. Fill in the /db/seeds.rb to build some acts, special talents, and amoebas.
  8. Then run rake db:seed to populate your development db.
  9. make sure to include the following RESTful views:
  • display all amoebas (link name to show that amoeba)
  • show an individual amoeba (include a link to split amoeba using custom routes)
  • edit an individual amoeba so that it can be added to an act.
  • display all acts
  • show an indivdual act (that displays its date and all the amoba actors asiigned to it)
  • edit an individual act
  • bonus view: a single dashboard view that shows all acts, all amoebas, and a form to move amoebas

View on Learn.co and start learning to code for free.

amoeba-circus-on-rails's People

Contributors

ahimmelstoss avatar deniznida avatar fislabstest avatar fs-lms-test-bot avatar jongrover avatar kthffmn avatar sarogers avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amoeba-circus-on-rails's Issues

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.