The setups steps expect following tools installed on the system.
git clone https://github.com/shubhamsharma4587/authors_books_rails_demo_app.gitEdit the database configuration as required such as database username, password
cp config/database.yml config/database.ymlRun the following commands to create and setup the database.
rails db:create
rails db:migrate rm Gemfile.lock
bundle installYou can start the rails server using the command given below.
rails s -p 3000And now you can visit the site with the URL http://localhost:3000
**Note:-
For APIs use the same urls and add .json at the end of the url
eg.
All Authors data: [GET] http://localhost:3000/authors.json
Get Author by ID: [GET] http://localhost:3000/authors/:author_id.json