Skip to content

Commit

Permalink
node app
Browse files Browse the repository at this point in the history
  • Loading branch information
abbycabs committed Apr 16, 2015
1 parent 8898ca2 commit e5b8465
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 1 deletion.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node app.js
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ As the research environment becomes more digital, we want to test how we can use
This work is a collaboration with publishers [BioMed Central](http://www.biomedcentral.com/) (BMC) and the [Public Library of Science](http://www.plos.org/) (PLoS); the biomedical research foundation, [The Wellcome Trust](http://www.wellcome.ac.uk/); the software and technology firm [Digital Science](http://www.digital-science.com/); the registry of unique researcher identifiers, [ORCID](http://orcid.org/); and the [Mozilla Science Lab](http://mozillascience.org/).


![Proposed Workflow / Implementation](./Badges_%20Option%201.jpg)
![Proposed Workflow / Implementation](./public/img/Badges_%20Option%201.jpg)

### Contributing

Expand Down
13 changes: 13 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 5000));
app.use(express.static(__dirname + '/public'));

app.get('/', function(request, response) {
response.send('Hello World!');
});

app.listen(app.get('port'), function() {
console.log("Node app is running at localhost:" + app.get('port'));
});
7 changes: 7 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "PaperBadger",
"description": "Exploring the use of digital badges for crediting contributors to scholarly papers for their work",
"repository": "https://github.com/mozillascience/PaperBadger",
"logo": "",
"keywords": ["badges", "science", "node"]
}
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "PaperBadger",
"version": "0.1.1",
"description": "Exploring the use of digital badges for crediting contributors to scholarly papers for their work",
"main": "app.js",
"scripts": {
"start": "node app.js"
},
"dependencies": {
"express": "~4.9.x",
"badgekit-api-client": "https://github.com/mozilla/badgekit-api-client/tarball/v0.2.4"
},
"engines": {
"node": "0.12.2"
},
"repository": {
"type": "git",
"url": "https://github.com/mozillascience/PaperBadger"
},
"keywords": [
"badges",
"science",
"node"
],
"license": "MPL-2.0"
}
File renamed without changes

0 comments on commit e5b8465

Please sign in to comment.