Git Product home page Git Product logo

blankflix_api's People

Contributors

replacem3nts avatar

Watchers

 avatar

blankflix_api's Issues

Controller Updates

  • User Controller: login, register, and persist_login actions should all call on the ChannelSerializer to set the state at the beginning of the session
  • Movie Controller: add movie and update movie should both call on the ChannelSerializer to return an updated Channel object to add into state

Channel Model Find or Create

Two options:

  1. Has a find or create Channel that get's used every time a new ChannelMovie is created
  2. Frontend has a list of Channels and crossreferences the list, if(exists) sends the channel id for a simple create ChannelModel function, if (doesn't exist) just sends movie id and Channel name to create a channel and ChannelMovie at the same time.

Set Up Models

Should establish ActiveRecord relationships and provide basic validations such as presence and uniqueness of username, as well as has secure password for authentication.

Channel Tables

  • Channel (name:string)
  • ChannelMovies (movie:foreign key, channel: foreign key)

Set Up Schema

Models to include:

  • User (username, password digest, app_name)
  • Movie (user_id, title, length, URL, cover_image)

Figure out if we need to use activeStorage or if we can pull a cover image thumb from YouTube API

Channel Serializer

-Should accept a user as an argument and return the channel name and an array of movie_ids
-Eric mentioned a method that takes two arrays and returns the overlap (maybe a sequel query or named scope)...
Structure of return:
image

Set Up Controllers

Should reflect all the routes that have already been set up and rely on the serializers to format the outgoing json data

Create Routes

Should include:
USER

  • Post User
  • Patch User
  • Delete User

MOVIE

  • Post Movie
  • Delete Movie

Set Up Authentication

Basic user authentication using bcrypt, before actions, and the application controller.

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.