GithubHelp home page GithubHelp logo

accidental-specs-passing's Introduction

Must See Movies Auth

In this project, we'll practice using the Devise gem to add authentication and authorization.

Our goal is to allow users to bookmark movies that they intend to watch or that they loved. In other words, we need to be able to identify users and tailor the application for them, rather than having the app treat all visitors the same.

Our starting point is the target for the last project, MSM Associations. Now we want to add the following:

  • Make the "Dummy" sign in, edit profile, etc, links actually work; users should be able to register with their email and password. How can we achieve this?
  • Then, users should be able to click a button on a movie's show page to bookmark it.
  • Users should be able to visit a page that shows a list of movies that they have bookmarked.

Devise Guide

Have the Devise Guide open in a tab to refer to as we work together.

Setup

  1. Download the code to your Cloud9 workspace as usual.
  2. bin/setup
  3. bin/server and navigate to the live app
  4. Click around and remind yourself what the associations are / how they work.

There are no automated tests or rails grade:all for this project; it's just an in-class introductory exercise.

In this project I've already installed the Devise gem. To generate your first table that has user authentication built in,

rails generate user first_name:string last_name:string
rails db:migrate

accidental-specs-passing's People

Contributors

raghubetina avatar

Watchers

 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.