Skip to content

Commit 3fdd0f7

Browse files
committed
added console log that server is running. fixed typo.
1 parent a5d4741 commit 3fdd0f7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This is a very simple app that demonstrates how to upload a file twith Autodesk'
1111
- Before getting here, you should have already know how to get an authorization token and have created a bucket
1212
- Change the token and bucket name to your own in `app.js`
1313
- `cd` into the folder where you saved this project
14-
- type `npm install` to install the dependencices
14+
- type `npm install` to install the dependencies
1515
- type `node app.js`
1616
- Go to http://localhost:3000/ and upload a file
1717
- You should see the response from the upload

app.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function uploadFileOSS(file) {
1717
var options = {
1818
host: "developer.api.autodesk.com",
1919
path: "/oss/v1/buckets/" + bucket.name + "/objects/" + file.name,
20-
method: "PUT",
20+
method: "PUT",
2121
headers: {
2222
"Content-Type": "application/octet-stream",
2323
"Authorization": "Bearer " + token
@@ -62,4 +62,5 @@ app.post("/", function (req, res){
6262
res.sendFile(__dirname + "/index.html");
6363
});
6464

65-
app.listen(3000);
65+
app.listen(3000);
66+
console.log("Server running at port 3000");

0 commit comments

Comments
 (0)