Code Monkey home page Code Monkey logo

dad-blog-api's Introduction

Dad Blog

Overview

John Is going to be a new Dad and really wants to blog about his experience, but he is too busy to make a blog site so he has enlisted you to help! He wants to be able to write about all that occurs along the journey: the complete and utter lack of sleep, contracting some new sickness on a weekly basis, having no time for hobbies he used to enjoy, the sweet smell of changing dirty diapers, and above all... the love he will feel for his child every step of the way that makes it all worth it!

Base Goals

  1. Setup Server and Connect Database

  2. CRUD for Users

  • GET all users ('/users')
  • GET one user ('/users/:id')
  • POST one user ('/users')
  • PATCH (Edit) one user ('/users/:id')
  • DELETE one user ('/users/:id')
{
  "id": 1,
  "name": "John Armbruster",
  "email": "[email protected]",
  "website": "dadstarstar.com",
}
  1. CRUD for Blog Posts
  • GET all posts ('/posts')
  • GET one post ('/posts/:id')
  • POST one post ('/posts')
  • PATCH (Edit) one post ('/posts/:id')
  • DELETE one post ('/posts/:id')
{
  "id": 1,
  "title": "Fatherhood: the Good, the Bad, and the Ugly",
  "body": "this is the post body"
  "user_id": 1,
}

Stretch

  1. CRUD for Blog Comments
  • GET all comments ('/comments')
  • GET one comment ('/comments/:id')
  • POST one comment ('/comments')
  • PATCH (Edit) one comment ('/comments/:id')
  • DELETE one comment ('/comments/:id')
{
  "id": 1,
  "body": "This is the comment body"
  "post_id": 1,
  "user_id": 2
}
  1. Create the client!
  • Create React app and connect with server
  • Render all blog posts
  • Render all comments for each blog posts
  • Form to add blog post
  • Form to add comment to a post
  • Button/Form to edit blog post
  • Button to delete blog post
  1. Implement Redux
  • Setup redux flow for user
  • Setup redux flow for posts
  • Setup redux flow for comments

Nightmare Mode

  1. Create authentication for users to log in on both the server and the client

dad-blog-api's People

Contributors

doggybay avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.