GithubHelp home page GithubHelp logo

401-github-explorer's Introduction

GitHub Search Application

User Story

As a user I should be able to search for information using the GitHub API.

Acceptance Criteria

User is presented with a form that has 2 buttons: Search by organisation and Search by username

User is present with a text input to enter an organisation name or a username depending on which button they have clicked on

When the user clicks on the Submit button the user is presented with a list of repositories

When the user submit an empty form the user is presented with an error message "Please enter valid organisation" if the user has selected Search by organisation

When the user submit an empty form the user is presented with an error message "Please enter valid username" if the user has selected Search by username

Use the link https://api.github.com/orgs/{organisationName}/repos for a search by organisation name

Use the link https://api.github.com/users/{username}/repos for a search by username name

If user selects Search by organisation then the placeholder label should read "Enter organisation"

If user selects Search by username then the placeholder label should read "Enter username"

Repositories should be presented as many cards keeping in mind responsive layouts

Each repository must be presented as a card with the following information: Repo name, Repo url, Description, User avatar

If the number of repositories returned from the API is 0 then the user should be presented with an alert "No repositories found."

Design Guide

desktop design guide

mobile design guide

Getting Started

  1. Navigate to your coding_bootcamp workspace:

cd ~/coding_bootcamp
  1. Create a react project using the create-react-app script and use your own app name:

npx create-react-app your-app-name
cd your-react-app
  1. Create a repository in GitHub and enter the "Repository name" as the same name as your react app.

  2. In the terminal within your react app enter the commands provided by GitHub. The first command points your local repository to the remote GitHub, the second command sets your branch as main and the last command pushes all your local changes to the remote repository

git remote add origin [email protected]:YOUR_GITHUB_USERNAME/your-app-name.git
git branch -M main
git push -u origin main
  1. Once you refresh your GitHub page on the web browser you will see all your local files in GitHub.

  2. You can now proceed to work locally and add commit and push code regularly during development

Resources

401-github-explorer's People

Contributors

surajverma2587 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.