Giter VIP home page Giter VIP logo

github-api-challenge's Introduction

Archived

This repo was only for a POC. I will not be adding anything.

Github API Challenge

This is a simple API project to call the Github API. There are two API endpoints in this project. Click on the links below to information related to the endpoints:

This API is built with Express, Nodejs, and ClaudiaJS for deployment. Download Node on your local machine to run the API locally.

Testing

To test the API I would recommend using postman. Once installed you can open the postman config file in the postman folder in the root of the project.

There are a couple of pieces that postman needs in order to test the API.

User Parameter

User Parameter This fills out the parameter in the url and uses this as the Github user for retrieving data.

Authorization

Authorization In order to bypass the rate limit of the github API a github account must be used when calling the API. You will need to fill out the username and password of your github account and select "Basic Auth" in the type dropdown. Press "Preview Request" and an Authorization header will be added to your requests.

Environment

Environment You can select the environment for your tests in the upper right hand of postman. The development environment will send the request to the API locally and production will send it to the live API.

Development Testing

Once you've downloaded the source code open a command prompt window and enter:

npm install

This will install the code dependencies. To run the API on your local machine run the following in a command prompt window while in the root of the project:

npm start

Make sure Environment is set to development then you can run the different endpoints in the postman app.

Production Testing

In postman switch the Environment to production and run the requests like normal. The url for testing the live API is https://jj8xd5foha.execute-api.us-east-1.amazonaws.com/latest.

github-api-challenge's People

Contributors

stackclash avatar

Watchers

James Cloos 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.