Skip to content

cp-shruti-s/library-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

library-management

Library Management System - Ruby on Rails

Features

  • Signup/Login users
  • Books CRUD
  • Mail book details to user (Async)
  • Subject-wise Categorization of Books

Installation

    bundle install

    rake db:create

    rake db:migrate

    rails s

Usage

  • Update the database.yml for postgres

  • Setup library-management database

    $ rake db:create
    $ rake db:migrate
  1. Generate Book and Subject model
    $ rails generate model Book
    $ rails generate model Subject
  1. Generate Book and Subject migration
    $ rails generate migration books
    $ rails generate migration subjects

    $ rails db:migrate
  1. Generate controller
    $ rails generate controller Book
  1. Add Carrierwave for image storage
    $ rails generate uploader Image

    $ rails generate migration add_image_to_books image:string

    $ rake db:migrate
  1. Adding Devise and User

https://guides.railsgirls.com/devise

    $ bundle install
    $ rails g devise:install

Ensure you have defined default url options in your environments files. Open up config/environments/development.rb and add this line:

   config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
    $ rails g devise user
    $ rails db:migrate
  1. Add ActionMailer
    $ rails generate mailer UserMailer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published