Giter VIP home page Giter VIP logo

proj_2_pullupclub's Introduction

proj_2_pullUpClub

proj_2_pullupclub's People

Contributors

sparkshot avatar andrewhylee avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

proj_2_pullupclub's Issues

Django Admin

  • If you havent already register a superuser
  • Add 5 students and for each student add some pullup sessions. Maybe write a script that automatically generates some fake data.

Pull Up Session Tweaks

  • There's 1 more field that should be added to PullUpSessions. Hint: We're going to be creating graphs and stuff with this.

  • change field name amount_of_pullups to pullup_count, or maybe just count. When dealing with integers or something you literally count, "count" usually sounds better (pull ups, product orders, tacos, etc). "Amount" usually sounds better for decimals (money, time etc).

  • Dont allow negative pullup count

Student model update

Remove the Fields pullUpCount record_date from the Student model. Student model should only have information about a student.

  • consider removing email and age. This is personal info you don't really need
  • make name a required field
  • slugs should be unique
  • Maybe add a nickname field, or something similar. Think like how arcade games would show off high scores as 3 letter initials.

image

PullUpSession model

Create a model called PullUpSession. Instances of this model will represent 1 student doing 1 set of pullups. This model should have a foreign key field student that points back to the student who completed the pullups. Deleting a student should result in all their pullupsessions to be deleted.

Base HTML Template

Create a Base HTML template called base.html that includes <html> <head> and <body> tags.

  • Inside the head tag import bootstrap and jquery from a CDN.
  • Inside the body tag create a block called content. All of the HTML templates you write will extent this base file and drop elements inside this content block.

.gitignore update

you need to remove db.sqlite3 from the repo and add it to your gitignore file.

Arm Length Field and Awards

AWARDS

  • Add a field for the student's arm length. The unit of measure should be in the field name. ex: arm_length_inches

  • Add a model StudentAward This model will be used to denote awards that can be earned either over a student's lifetime, or during a single pullup session.

    • This model does not have a relationship to Student or Pullup session.
    • The model should have a name field
    • The model should have a type field which indicates whether it is earned by completing pullups over lifetime of sessions or during a single session.
    • The model should have a type field which indicates whether it is earned by completing a certain number of pullups (pullup_count) or traveling a certain distance (pullup_count * arm_length_inches)
    • This model should have a field which indicates the minimum "magnitude" needed to achieve it
  • In your local database Add 1 lifetime distance award ex: travel the length of mount Everest) and 1 session award (ex: do 20 in a session)

Hint: for the type fields, use models.ChoiceField

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.