GithubHelp home page GithubHelp logo

jsonproxyholder's Introduction

JSONProxyHolder project3 on 100days-of-projects (by CODEDAMN)

Project Introduction

Welcome to the JSONProxyHolder backend project on codedamn. In this project, you're supposed to work with a popular JSON placeholder API - https://jsonplaceholder.typicode.com/guide/

First Requirement

In your codedamn playground, you can see a backend server running as a Node.js script. Your task for this project is to proxy all of your backend requests recieved to the jsonplaceholder.typicode.com endpoint.

Examples

Let's assume your deployed URL on codedamn playground is https://something.codedamn.app (You can find this URL inside the "Settings" tab on the left)

Then, the following proxying should take place. The API calls made to your URL should return data from jsonplaceholder.typicode.com

GET https://something.codedamn.app/posts -> GET https://jsonplaceholder.typicode.com/posts
GET https://something.codedamn.app/posts/1 -> GET https://jsonplaceholder.typicode.com/posts/1
GET https://something.codedamn.app/posts?userId=1 -> GET https://jsonplaceholder.typicode.com/posts?userId=1

...and so on

In a nutshell, all of the data requested from your endpoint should further be requested from jsonplaceholder.typicode.com.

Second Requirement

You also have to add a custom header in every response you send. Your custom header should look like the following:

x-codedamn-project: jsonproxyholder

Third Requirement

You have to use this backend API to build a simple React app that does the following:

  1. Lists all posts using the API endpoint (/posts)
  2. On clicking the post title, it should show the post body and comments
  3. For post body, use the endpoint (/posts/:id) and for post comments use the endpoint (/posts/:id/comments)

There's a simple web interface provided at the right to help you start. All the best.

jsonproxyholder's People

Contributors

innovatorved avatar

Stargazers

 avatar  avatar Harshit Sharma avatar

Watchers

 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.