GithubHelp home page GithubHelp logo

elizahyde / wdi-exercisr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brainscraps/wdi-exercisr

0.0 2.0 0.0 452 KB

Exercise Management App...with an 80s theme

Ruby 30.79% JavaScript 60.31% CSS 8.89%

wdi-exercisr's Introduction

Exercisr

This is an exercise management app in an 80s theme. It uses RoR, jQuery, AJAX.

LAB DIRECTIONS: As usual, add your info to the .env file and run bundle install and then rake db:setup.

RACK_ENV=development
DB_USER=yours
DB_PASS=yours

We're going to build an exercise app with jQuery, AJAX, and some graphing. Users will will track their exercises. A user has many exercises and an exercise belongs to a user.

# User: name, email, password_digest
# Exercise: activity (run), value (5), units (miles), completed (date)

# Example:
e = Exercise.create(:activity => run, :value => 3.1, :units => miles)
u.exercises << e

Your Tasks:

  1. Add Foundation. Use a gem or do it manually. Do a complete job here - proper layout, header, footer, alerts, etc. No Adam, you may not use Bootstrap instead.
  2. Set up the Exercise model and associations.
  3. Seed the database with a few dozen sample records.

Pause

We'll build user login/logout with AJAX together.

Unpause

  1. Create an ExercisesController. On exercises#index, show all the exercises for a logged-in user.
  2. Don't neglect the front-end: Add a nav item for Exercises.
  3. Add a 'New Exercise' button and implement a feature to add exercises using AJAX.
  4. Add a dropdown menu that shows of all the activities (meaning types of exercises) that the logged-in user has performed.

(The dropdown menu you're adding shouldn't do anything yet. It should just exist.)

Pause

Together, we'll add an AJAX call to get exercise data related to the selected activity.

Unpause

  1. Write code for the 'done' callback that adds a Morris JS chart to the page using the exercise data for the selected activity.

wdi-exercisr's People

Contributors

sumeetjain avatar elizahyde avatar

Watchers

James Cloos avatar  avatar

wdi-exercisr'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.