Skip to content
This repository was archived by the owner on Jul 25, 2020. It is now read-only.

Ziang-Lu/TypeScript-GitHub-Reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Reporter Mini-Project

This repo demos the basic usage of TypeScript as building a simple application.

This mini-project accepts a GitHub username as a command-line argument, internally makes call to GitHub API, and displays the user information as well as that user's repos.


The source code is under src/, and the output JavaScript files will be compiled to out/

So we define a new script in package.json for quick run:

{
  // ...
  "scripts": {
    "start": "rm -rf out/* && tsc && node out/index",
    // ...
  }
  // ...
}

To run the project, simply use the command-line, and pass in the GitHub username:

$ npm start <your GitHub username>

About

TypeScript practice mini-project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published