blankflix_api's People
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:
- Has a find or create Channel that get's used every time a new ChannelMovie is created
- 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
Set Up Serializers
- User Serializer
- Movie Serializer
Channel Serializer
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.