/rails-donation-app

e-marketplace app

Primary LanguageRuby

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-darwin18] Rails 5.2.4.1

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite rails s

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

Table of Contents

Getting Started

clone repo:

git clone https://github.com/bhandaribhumin/rails-donation-app.git

Then run:

bundle install

To run project:

rails s

open browser and goto localhost:3000

Developer Guide

user guide CLI:

  1. generate model(interface) for
rails g model User email password_digest 
  1. updte model changes
rails db:migrate
  1. generate scaffold (controller)
rails g scaffold <ClassName> <parameters>
rails g scaffold Artist name:string user:refrences
rails g scaffold Record title:string year:string artist:references user:references
  1. Destroy scaffold
rails d scaffold Artist
  1. Generate Controller
rails g controller <controller name> <method>
rails g controller signup create

Work with Data

  1. insert

run:

rails c 

c is for console

Artist.create!(name: "Bhumin in India")
  1. view
Artist.all

References

JWT Sessions