-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
npm init, express hello world, docker file
- Loading branch information
Showing
6 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM opendronemap:latest | ||
MAINTAINER Piero Toffanin | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y nodejs | ||
RUN mkdir /var/www | ||
WORKDIR "/var/www" | ||
RUN git clone https://github.com/pierotofy/node-OpenDroneMap | ||
RUN npm install | ||
|
||
CMD ["/usr/bin/nodejs", "/var/www/index.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"use strict"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
var odm = require("../index"); | ||
|
||
odm.hello(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"use strict"; | ||
|
||
let express = require('express'); | ||
let app = express(); | ||
|
||
app.get('/', (req, res) => { | ||
res.send('Hello World!'); | ||
}); | ||
|
||
app.listen(3000, () => { | ||
console.log('Example app listening on port 3000!'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "node-opendronemap", | ||
"version": "0.1.0", | ||
"description": "Node.js API to access OpenDroneMap", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/pierotofy/node-OpenDroneMap.git" | ||
}, | ||
"keywords": [ | ||
"opendronemap" | ||
], | ||
"author": "Piero Toffanin", | ||
"license": "GPL-3.0", | ||
"bugs": { | ||
"url": "https://github.com/pierotofy/node-OpenDroneMap/issues" | ||
}, | ||
"homepage": "https://github.com/pierotofy/node-OpenDroneMap#readme", | ||
"dependencies": { | ||
"express": "^4.14.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
exports.hello = () => { | ||
console.log("Hi"); | ||
} |