Skip to content

Commit a606ac4

Browse files
author
Akshay
committed
First version of instructions.
1 parent 232ea99 commit a606ac4

1 file changed

Lines changed: 94 additions & 2 deletions

File tree

README.md

Lines changed: 94 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,94 @@
1-
# github-js
2-
Javascript Plugin over Github APIs.
1+
# Github.js
2+
3+
Github.js is a JavaScript plugin over [GitHub APIs v3](https://developer.github.com/v3/). It gives an easy way to feature your GitHub open-source contributions on your website or portfolio.
4+
5+
# Demo
6+
7+
[Click here](http://akshaykumar6.github.io/github-js) for live demo.
8+
9+
#Dependency
10+
11+
The plugin has hard dependency on [underscore.js](http://underscorejs.org/)(~v1.6.0). You can download it from [here](https://github.com/jashkenas/underscore/archive/1.6.0.zip).
12+
13+
# Installation
14+
15+
Add **github.js** and **github.css** to your project. [Download](https://github.com/akshaykumar6/github-js/archive/master.zip).
16+
17+
```html
18+
<link rel='stylesheet' href='github.css'/>
19+
20+
// Add underscore.js
21+
<script type="text/javascript" src="underscore-min.js"></script>
22+
<script type="text/javascript" src='github.js'></script>
23+
```
24+
25+
Github.js is available via [bower](http://bower.io/search/?q=githubjs) and [npm](https://www.npmjs.com/package/githubjs).
26+
```
27+
$ bower install --save githubjs
28+
$ npm install --save githubjs
29+
```
30+
31+
# Usage
32+
* #### User Profile
33+
```javascript
34+
Github.userProfile({
35+
username: "jashkenas",
36+
selector: ".user-1"
37+
});
38+
```
39+
* #### User Activity
40+
```javascript
41+
Github.userActivity({
42+
username: "torvalds",
43+
selector: ".user-2"
44+
});
45+
```
46+
* #### Repository Profile
47+
```javascript
48+
Github.repoProfile({
49+
username: 'atom',
50+
reponame: 'atom',
51+
selector: '.repo-1'
52+
});
53+
```
54+
* #### Repository Activity
55+
```javascript
56+
Github.repoActivity({
57+
username: 'joyent',
58+
reponame: 'node',
59+
selector: '.repo-2'
60+
});
61+
```
62+
* #### Organization Profile
63+
```javascript
64+
Github.orgProfile({
65+
orgname: 'facebook',
66+
selector: '.org-1'
67+
});
68+
```
69+
* #### Organization Activity
70+
```javascript
71+
Github.orgActivity({
72+
orgname: 'google',
73+
selector: '.org-2'
74+
});
75+
```
76+
77+
# Documentation
78+
* [Complete Documentation](https://github.com/akshaykumar6/github-js/wiki)
79+
80+
# Contribute
81+
To start contributing to Github.js, clone the repository and start playing.
82+
```
83+
$ git clone [email protected]:akshaykumar6/github-js.git
84+
$ cd github-js
85+
```
86+
87+
If you're not familiar with Git, visit the [Git homepage](http://git-scm.com/) to download Git for your platform.
88+
89+
**Have a bug or a feature request? ** [Please open a new issue](https://github.com/akshaykumar6/github-js/issues).
90+
91+
# License
92+
**github-js** © 2015, Akshay Sharma Released under the [MIT License](http://mit-license.org/).
93+
94+
Authored and maintained by [Akshay Sharma](http://akshaykumar6.github.io/).

0 commit comments

Comments
 (0)