GithubHelp home page GithubHelp logo

jmichaeln5 / grape_or_cherry Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 61 KB

A voting app- sign up/login and vote either grape or cherry. Which will you choose?

Home Page: https://grape-or-cherry.herokuapp.com/

Ruby 67.73% JavaScript 1.61% CSS 1.48% HTML 28.60% CoffeeScript 0.59%

grape_or_cherry's Introduction

Documentation

    1. Created empty PostGreSQL Database
    1. Generated controllers/views, supporting all views and have access to DB
    1. Set root_path to 'pages#welcome' -app/config/routes
    1. Added Devise to manage session state & login
    1. Created User table
    1. DB migration
    1. Generated Views for Devise
    1. Create Flavors Model (DB Table)
    1. Create Flavors Controller -app/controllers/flavors_controller.rb
    1. Create Flavors Views -app/views/flavors
    1. Create index, show, new, edit, create, update, destroy methods -app/controllers/flavors_controller.rb
    1. Define flavor_params -app/controllers/flavors_controller.rb
    1. Create form file -app/views/flavors/_form.html.erb
    1. Render Flavor form file in index, edit, new, and show action -app/views/flavors
  • Rails DB Migrate & Bounce Server

  • Style Pages

    1. Add build method on current_user so each time a new instance of Flavor class is created it belongs to a user -app/controllers/flavors_controller.rb
    1. Add db associations on Flavor & User Model (foreign_key) -app/models/flavor.rb && app/models/user.rb
    1. Make Flavors dependent on User to eliminate orphaned data and ensure it's deleted if User is deleted -app/models/user.rb
    1. DB migration
    1. Bounce Server
    1. Create Pages controller -app/controllers/pages_controller.rb
    1. Create Home, Cherry, and Grape views -app/controllers/pages_controller.rb
    1. Create Home, Cherry, and Grape methods to allow creation of views -app/controllers/pages_controller.rb
    1. Define new class instances in Pages controller to make new isntances of Vote class accessible to voting views -app/controllers/pages_controller.rb
    1. git add/commit/push to heroku master

grape_or_cherry's People

Contributors

jmichaeln5 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.