Skip to content

pdthomson/DreamBook_BE

Repository files navigation

Welcome to the Back-end repo for DreamBook!

DreamBook Back-end API was built alongside the DreamBook Front-end application! The back-end is responsible for receiving requests from the front-end, storing data, and packaging up the data and returning it to the front-end for viewing.

Table of contents

Schema:

Screen Shot 2022-09-22 at 1 12 18 PM

Setup

  • Ruby 2.7.4
  • Rails 5.2.8.1'
  • Fork this repository
  • Clone your fork
  • From the command line, install gems and set up your DB:
  • bundle install
  • rails db:create
  • rails db:migrate
  • Install Figaro with bundle exec figaro install to create an application.yml file locally (this to be updated with any needed ENV variables!!!)

Gems

Endpoints

Get all blogs

get '/api/v1/blogs'

Screen Shot 2022-09-22 at 1 33 24 PM

Get a blog

get "/api/v1/blogs/:blog_id"

Screen Shot 2022-09-22 at 1 38 59 PM

Get All comments for a blog

get "/api/v1/blogs/:blog_id/comments"

Screen Shot 2022-09-22 at 1 41 58 PM

Update a blog

patch "/api/v1/blogs/:blog_id"

Screen Shot 2022-09-22 at 1 53 06 PM

Delete a blog

delete "/api/v1/blogs/:blog_id"

Screen Shot 2022-09-22 at 1 57 10 PM

Movie Recomendations by keyword

get "/api/v1/movie_recommendations?keyword="

Screen Shot 2022-09-22 at 2 01 46 PM

Book Recomendations by keyword

get "/api/v1/book_recommendations?keyword="

Screen Shot 2022-09-22 at 2 03 44 PM

Create a blog

post "/api/v1/blogs"

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published