zakirt / repo-finder

Coding challenge for Even Financial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repo Finder

UI tool designed to search for GitHub repos using GitHub API. The app is written in React and TypeScript. The script is built using Webpack bundling tool.

Requirements

  • Node 12+
  • NPM 6.13.4+

Setup

  • Git clone, or download the repo
  • Run npm i to install the dependencies

Building the app

Development

This mode is useful for debugging. The Webpack will run with a -w flag in order to watch for changes. JS/CSS will not be minified in this mode.

To build the app in development mode use the following command:

npm run build:dev

Production

In this mode the bundled code wil be optimized for production. All bundled JS/CSS will be minified.

To build the app in production mode use the following command:

npm run build:prod

Running the app

Use the following command to launch the app on localhost's port 9000

npm start

Unit tests

The app is using Jest framework for unit testing.

To test all files once run

npm test

To test all files in TDD mode (watch for file changes) run

npm run test:tdd

You can also target specific files.

Ex.

npm test RepoSearchAdapter
npm run test:tdd RepoSearchAdapter

About

Coding challenge for Even Financial


Languages

Language:TypeScript 80.1%Language:JavaScript 15.0%Language:CSS 3.0%Language:HTML 1.8%