briankeegan / present-recollection-rails-api Goto Github PK
View Code? Open in Web Editor NEWSimple gift remembering Rails API
Home Page: https://present-recollection-rails-api.herokuapp.com
License: Other
Simple gift remembering Rails API
Home Page: https://present-recollection-rails-api.herokuapp.com
License: Other
Not sure how to do migration, code looks something like this
has_many :gifts, :dependent => :destroy
class CreateAuthors < ActiveRecord::Migration[5.0]
def change
create_table :authors do |t|
- t.string :given_name
+ t.string :given_name, null: false
- t.string :family_name
+ t.string :family_name, null: false
t.timestamps
end
end
end
Update it to reflect the Rails API of things
Should explain routes and data recieved and sent
Version 1 - Gifts
should not include first_name
and last_name
instead use nickname
Version 2 - Gifts
should include user_id
Version 3 and Version 4 - Friends
should not include gift
For example, have user return number of gifts
Make less requests, by every time you post or update, get all info back
class User < ApplicationRecord
include Authentication
has_many :games
validates :email, presence: true
end
- `heroku logs -t` - like rails s but for heroku
- `git remote -` checks routes for both github and heroku(probably more!)
- `binding.pry` - opens up pry in context of binding.pry. Kinda like debugger in JS
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.