davidbrucetn / nss-gifter

Gifter Exercise - Utility Classes, Special-Purpose Repository Methods and More Complex SQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nss-gifter

Utility Classes, Special-Purpose Repository Methods and More Complex SQL

Book 3, Chap 3 Exercises

  1. Update the PostRepository.GetById() method to include the UserProfile object in the returned Post object. DONE
  2. Add a GetPostByIdWithComments() method to your PostRepository that gets a single Post and includes that Post's comments. DONE
  3. Create a UserProfileController and UserProfileRepository with all the basic CRUD operations. DONE
  4. Add methods to the UserProfileController and UserProfileRepository to return a single UserProfile along with the list of posts authored by that user. DONE

Book 3, Chap 4 Query Parameters Exercises

  1. Update your Gifter API to allow searching of Posts by title as illustrated in this chapter.
  2. Update the search endpoint to search by title and the caption.
  3. Add a new endpoint, /api/post/hottest?since=<SOME_DATE> that will return posts created on or after the provided date.

Book 3, Chap 6 Context API

  1. Allow the user to add a new post. Create a PostForm component in the components directory and include it in App.js so that it shows up above the list of posts.
  2. Add a "Search Posts" feature to your app that uses the /api/post/search API endpoint.
  3. Update the Post component so that it includes the comments on each post.

MISC: Just for me, added User Profile DropDown in form.

Added a User Select to the Search feature as well.

About

Gifter Exercise - Utility Classes, Special-Purpose Repository Methods and More Complex SQL


Languages

Language:C# 65.4%Language:JavaScript 29.5%Language:CSS 2.6%Language:HTML 2.5%