Git Product home page Git Product logo

mod2_pactice_camping_is_fun's Introduction

The Domain

Congratulations! You have been hired by Access Camp and for your first job, you have been tasked with building out a website to log campers with their activities.

A camper can participate in many activities and an activity can have many campers participating in it.

Visiting /campers will show the index page of all the campers and visiting /activities will go to the index page for all the activities. Currently, we don't have any way to associate the two, so consider the relationship and think about how a camper can signup for an activity!

The Deliverables

  1. To log a camper with an activity, we need to store some additional information in our database. Make the necessary updates to our database, so that a camper can have many activities and an activity can have many campers. The signup should also include a time (as an integer) that is between 0 and 23, referring to the hour of the activity.

  2. As a user, I should be able to go to the index page of the campers and click on the names to go to the show page for that camper. The show page should show the camper's name, their age and the list of activities that they have signed up for.

  3. As a user, I should be able to go to the index page of the activities and click on the name of the activity to go to the show page for that activity. The show page should show the activity's name and its difficulty level.

  4. As a user, I should be able to fill out a form to create a new signup that will associate a camper with an activity. I should be able to choose an existing activity, choose an existing camper and add a time. Upon a successful creation, I should be redirected to the camper's show page.

  5. As a user, I should be able to fill out a form to create a new camper, with their names (which must be unique) and age (which must be between 8 and 18)!

Hints / Tips

  • Remember we want to be RESTful. What URL should show info about a particular camper? What URL should show a form to create a signup? What controller actions are associated?

mod2_pactice_camping_is_fun's People

Contributors

dwire avatar

Watchers

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.