Coder Social home page Coder Social logo

phase-3-sinatra-react-project's Introduction

Phase 3 React-Frontend: Construction Blog App

Project name: Construction Blog App Author: Elijah Bundi

Links

Below are the github links for the frontend and backend. frontend link https://github.com/ElijahBundi/blog-frontend-app.git backend link https://github.com/ElijahBundi/phase-3-sinatra-react-project.git

Introduction

Welcome to construction blog App, where dreams come home! We encourage you to search, read, explore, review and let us guide you home. Our layout is extremely user friendly, offering a beautiful interface as the blogs we offer. Our mantra being the magnitude of the minute, we showcase simplicity in its most grandiose form.

Setup

After unbundling the project:

  1. Run npm install in your terminal.
  2. Run npm run server. This will run your backend on port 8004.
  3. In a new terminal, run npm start. This will run your React app on port 8000.

Make sure to open http://localhost:9292/blogs in the browser to verify that your backend is working before you proceed!

The base URL for your backend is: http://localhost:9292

Core Deliverables

As a user:

  1. When the app starts, I can see all currently uploaded blogs.
  2. I can add a new blog to the list of blogs while sending that data back to the server.
  3. I can delete blogs and add blogs at will.
  4. I can review and update blogs.

Endpoints for Core Deliverables

GET /blogs

Example Response:

[
  {
      "id": 2,
      "title": "Baraza",
      "author_id": "[email protected]",
      "content": "Get woken up by the cool breeze of the ocean."
    },
    {
      "id": 3,
      "title": "Esther",
      "author_id": "[email protected]",
      "content": "Beautiful waterfall scenery."
    },
]

POST /blogs

Required Headers:

{
  "Content-Type": "application/json"
}

Request Object:

{
  "title": "Billy",
  "author_id": "Omollo",
  "content": "When you want a town setting."
},   

Example Response:

{
  "title": "Billy",
  "author_id": "Omollo",
  "content": "When you want a town setting."
},

DELETE /blogs/:id

Using a button, function and the filter method, a blog can be deleted and the remaining blogs displayed.
Example Response:
```json
{}

Advanced Deliverables

As a user:
1. I can add a blog to my favorites and see it on a separate list.
2. I can click on a blog and see it on a separate page with more detailed content.

phase-3-sinatra-react-project's People

Contributors

elijahbundi avatar ihollander avatar vidhisharma3193 avatar lizbur10 avatar ixnp avatar cernanb avatar hyeokjungkim avatar betalantz 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.