Skip to content

Commit

Permalink
setup initial project files
Browse files Browse the repository at this point in the history
  • Loading branch information
mostfamiliar committed Mar 18, 2016
1 parent 3be393e commit 9e6841a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 9 deletions.
8 changes: 4 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "your-proj",
"name": "github-finder",
"description": "",
"main": "index.js",
"main": "index.html",
"authors": [
"Your Name <[email protected]>"
"Torrence Stratton"
],
"license": "ISC",
"homepage": "https://github.com/you/yourproj",
"homepage": "https://github.com/mostfamiliar/github-finder-js",
"moduleType": [],
"ignore": [
"**/.*",
Expand Down
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<title></title>
</head>
<body>

<h1>Git user finder</h1>
<div class="container">
<form id = "userForm">
<label for="username">Enter git username</label>
<input id="userName" type="text">
<button id="formSubmit" type="submit" class="btn btn-info">Go!</button>
</form>
</div>
</body>
</html>
9 changes: 9 additions & 0 deletions js/gituser-interface.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var gitUser = require("./../js/gituser.js").gitUser;


$(document).ready(function(){
$("#userForm").click(function() {
gitUser();
});
event.preventDefault();
});
9 changes: 9 additions & 0 deletions js/gituser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiKey = require("./../.env").apiKey;

exports.getRepos = function(){
$.get('https://api.github.com/users/daneden?access_token=' + apiKey).then(function(response){
console.log(response);
}).fail(function(error){
console.log(error.responseJSON.message);
});
};
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "YOUR PROJ",
"name": "github-finder",
"version": "1.0.0",
"main": "index.js",
"scripts": {
Expand All @@ -25,11 +25,11 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/YOU/ YOUR PROJ.git"
"url": "git+https://github.com/mostfamiliar/github-finder-js.git"
},
"bugs": {
"url": "https://github.com/YOU/YOUR PROJ/issues"
"url": "https://github.com/mostfamiliar/github-finder-js/issues"
},
"homepage": "https://github.com/YOU/YOUR PROJ#readme",
"homepage": "https://github.com/mostfamiliar/github-finder-js#readme",
"description": ""
}

0 comments on commit 9e6841a

Please sign in to comment.