Git Product home page Git Product logo

linkedin-rest-api-with-react-js-and-express's Introduction

LinkedIN-Rest-API-with-React-JS-and-Express

Here I have created a component for Login with LinkedIn, which in return provides the data of the logged in LinkedIn user.

In this Package you will find a component file wherein i have created a function that fires the axios request for receiving access tokens and Linkedin User details.

Just To ensure that the request do not failed due to CORS issue, I have added server.js file that fires the request for access token and Linkedin User details.

In server.js file i have created two routes

  1. http://..../linkedinaccesstoken
  2. http://..../linkedinuserdetails

#1 has the details related to access token and #2 has the details related to user logged in using linkedin credentials.

This two routes are called from client side usign axios request, this ensures that the request completes successfully without CORS issue.

Now, to use this package user needs to:

  1. Copy the file(CustomLinkedIn.jsx) and import that file wherever needed.
  2. Copy the code from server.js and paste it into the their own server.js file.
  3. Copy paste the image folder, but make sure to give the image path proper in CustomLinkedIn.jsx.
  4. Copy paste the Config folder which has the config.js file. Ensure that you have your own CLIENT_KEY AND SECRET_KEY pasted in congfig file.

You are now good to go.....................

linkedin-rest-api-with-react-js-and-express's People

Contributors

jsushank17 avatar

Stargazers

 avatar

Watchers

 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.