@@ -24,7 +24,9 @@ A command-line tool that helps maintainers evaluate GitHub repositories for cont
2424- ** Detailed scoring** : Get a comprehensive score and rating based on best practices for open source projects
2525- ** Actionable recommendations** : Receive specific suggestions to improve your repository's contributor readiness
2626
27- ## Installation
27+ ## Installation & Setup
28+
29+ ### Option 1: Install from npm (when published)
2830
2931``` bash
3032npm install -g repoready
@@ -36,33 +38,87 @@ Or run directly with npx:
3638npx repoready [command]
3739```
3840
41+ ### Option 2: Run locally with Node.js
42+
43+ 1 . ** Clone the repository** :
44+ ``` bash
45+ git clone https://github.com/OpenSource-Communities/RepoReady.git
46+ cd RepoReady
47+ ```
48+
49+ 2 . ** Install dependencies** :
50+ ``` bash
51+ npm install
52+ ```
53+
54+ 3 . ** Build the project** :
55+ ``` bash
56+ npm run build
57+ ```
58+
59+ 4 . ** Run the CLI** :
60+ ``` bash
61+ # Using the built JavaScript
62+ # node dist/index.js evaluate OpenSource-Communities/RepoReady
63+ node dist/index.js [command]
64+
65+ # Or run directly with TypeScript (development)
66+ npm run dev [command]
67+ ```
68+
3969## Usage
4070
4171### Evaluate an Existing Repository
4272
73+ ** Using npm/npx:**
4374``` bash
4475rr evaluate owner/repository-name
4576```
4677
78+ ** Using Node.js locally:**
79+ ``` bash
80+ node dist/index.js evaluate owner/repository-name
81+ # Or in development:
82+ npm run dev evaluate owner/repository-name
83+ ```
84+
4785Example:
4886``` bash
87+ # npm/npx
4988rr evaluate facebook/react
89+
90+ # Local Node.js
91+ node dist/index.js evaluate facebook/react
5092```
5193
5294With GitHub token for higher rate limits:
5395``` bash
96+ # npm/npx
5497rr evaluate facebook/react --token your_github_token
98+
99+ # Local Node.js
100+ node dist/index.js evaluate facebook/react --token your_github_token
55101```
56102
57103### Create a New Repository
58104
105+ ** Using npm/npx:**
59106``` bash
60107rr create --token your_github_token
61108```
62109
110+ ** Using Node.js locally:**
111+ ``` bash
112+ node dist/index.js create --token your_github_token
113+ ```
114+
63115You can also provide repository details directly:
64116``` bash
117+ # npm/npx
65118rr create --token your_github_token --name my-awesome-project --description " A tool that does amazing things"
119+
120+ # Local Node.js
121+ node dist/index.js create --token your_github_token --name my-awesome-project --description " A tool that does amazing things"
66122```
67123
68124## What Gets Evaluated
@@ -112,26 +168,44 @@ You can provide the token via:
112168
113169### Evaluate a popular open source project
114170``` bash
171+ # Using npm/npx
115172rr evaluate microsoft/vscode
173+
174+ # Using Node.js locally
175+ node dist/index.js evaluate microsoft/vscode
116176```
117177
118178### Create a new project interactively
119179``` bash
180+ # Using npm/npx
120181rr create --token ghp_your_token_here
182+
183+ # Using Node.js locally
184+ node dist/index.js create --token ghp_your_token_here
121185```
122186
123187### Evaluate with token for higher rate limits
124188``` bash
189+ # Using npm/npx
125190export GITHUB_TOKEN=ghp_your_token_here
126191rr evaluate your-org/your-repo
192+
193+ # Using Node.js locally
194+ export GITHUB_TOKEN=ghp_your_token_here
195+ node dist/index.js evaluate your-org/your-repo
127196```
128197
129198## Requirements
130199
131- - Node.js 16 or higher
132- - Git (for repository operations)
200+ - Node.js 20 or higher
201+ - npm (comes with Node.js)
202+ - Git (for repository operations and local development)
133203- GitHub account (for creating repositories)
134204
205+ ### For Local Development
206+ - TypeScript knowledge (helpful for contributing)
207+ - All dependencies will be installed via ` npm install `
208+
135209## Contributing
136210
137211This project follows the same best practices it evaluates! We welcome contributions and maintain:
0 commit comments