th37rose / ruby-dope-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Build an API With Ruby on Rails

  • rails new my-dope-api --api --database=postgresql

  • rails g controller api/v1/products index show --no-helper --no-assets --no-template-engine --no-test-framework

  • rails g model product name:string brand:string price:string description:string --no-helper --no-assets --no-template-engine --no-test-framework

  • rails db:create

  • rails db:migrate

  • rails db:seed

Please contact me stackdev37@gmail.com if you are looking for ruby expert.

About


Languages

Language:Ruby 99.0%Language:HTML 1.0%