sa3dwi / github-gist

Single page application to Search on Github Gist.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project was bootstrapped with Create React App.

Github Gist Search

Single page application to Search on Github Gist Api.


Requirements

For development, you will need Node.js and a node global package, Yarn, installed in your environement.

Node

  • Node installation on Windows

    Just go on official Node.js website and download the installer. Also, be sure to have git available in your PATH, npm might need it (You can find git here).

  • Node installation on Ubuntu

    You can install nodejs and npm easily with apt install, just run the following commands.

    $ sudo apt install nodejs
    $ sudo apt install npm
    
  • Other Operating Systems

    You can find more information about the installation on the official Node.js website and the official NPM website.

Yarn installation

After installing node, this project will need yarn too, so just run the following command.

  $ npm install -g yarn

App installation

$ git clone https://github.com/sa3dwi/github-gist
$ cd github-gist
$ yarn install

App Configuration

Open github-gist/src/config.json then edit it with your settings:

  • minimum search characters
  • maximum search characters
  • localstorage key name

Run App

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

$ yarn start

Testing

$ yarn test

Assumptions

  • pagination is not required
  • use global state like redux or Mobx is not required
  • use only Reactjs or Angularjs other libraries like Jquery or Bootstrap are not allowed

Some Screen Preview

Home      Loading      search Results      search Results

About

Single page application to Search on Github Gist.


Languages

Language:JavaScript 80.7%Language:CSS 16.6%Language:HTML 2.7%