Skip to content

Commit 0584fbd

Browse files
committed
final tweaks for challenge
1 parent d5a2b14 commit 0584fbd

File tree

3 files changed

+12
-24
lines changed

3 files changed

+12
-24
lines changed

README.md

+8-22
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Visual Recognition Nodejs Starter Application
1+
# Topcoder Visual Recognition Nodejs Starter Application
22

33
The IBM Watson [Visual Recognition][service_url] service analyzes the visual content of images and videos to understand the scene without any input text describing
44

55
## Getting Started
66

77
1. Create a Bluemix Account
88

9-
[Sign up][sign_up] in Bluemix, or use an existing account. Watson Services in Beta are free to use.
9+
[Follow these instruction](http://topcoder.mybluemix.net/signup) to sign up for a new IBM Buemix account, or use an existing account. Watson Services in Beta are free to use.
1010

11-
2. Download and install the [Cloud-foundry CLI][cloud_foundry] tool
11+
2. Download and install the [Cloud-foundry CLI](https://github.com/cloudfoundry/cli#downloads) tools
1212

1313
3. Edit the `manifest.yml` file and change the `<application-name>` to something unique.
1414
```none
@@ -41,7 +41,7 @@ applications:
4141
See the full [Getting Started][getting_started] documentation for more details, including code snippets and references.
4242

4343
## Running locally
44-
The application uses [Node.js](http://nodejs.org) and [npm](https://www.npmjs.com) so you will have to download and install them as part of the steps below.
44+
The application uses [Node.js](http://nodejs.org) and [npm](https://www.npmjs.com) so it assumes you already have it installed. If not, use the above link to install node and npm.
4545

4646
1. Copy the credentials from your `visual-recognition-service` service in Bluemix to `app.js`, you can see the credentials using:
4747

@@ -67,14 +67,12 @@ See the full [Getting Started][getting_started] documentation for more details,
6767
}
6868
```
6969

70-
You need to copy `username`, `password` and `url`.
70+
You need to copy `username` and `password`.
7171

72-
2. Install [Node.js](http://nodejs.org/)
73-
3. Go to the project folder in a terminal and run:
72+
2. Go to the project folder in a terminal and run:
7473
`npm install`
75-
4. Start the application
76-
5. `node app.js`
77-
6. Go to `http://localhost:3000`
74+
3. Start the application with `node app.js`
75+
4. Open `http://localhost:3000`
7876

7977
## Troubleshooting
8078

@@ -87,15 +85,3 @@ To troubleshoot your Bluemix app the main useful source of information are the l
8785
## License
8886

8987
This sample code is licensed under Apache 2.0. Full license text is available in [LICENSE](LICENSE).
90-
91-
## Contributing
92-
93-
See [CONTRIBUTING](CONTRIBUTING.md).
94-
95-
## Open Source @ IBM
96-
Find more open source projects on the [IBM Github Page](http://ibm.github.io/)
97-
98-
[service_url]: http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/visual-recognition.html
99-
[cloud_foundry]: https://github.com/cloudfoundry/cli
100-
[getting_started]: http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/getting_started/
101-
[sign_up]: https://apps.admin.ibmcloud.com/manage/trial/bluemix.html?cm_mmc=WatsonDeveloperCloud-_-LandingSiteGetStarted-_-x-_-CreateAnAccountOnBluemixCLI

app.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,6 @@ app.post('/', function(req, res) {
8282
});
8383

8484
var port = process.env.VCAP_APP_PORT || 3000;
85-
app.listen(port);
85+
app.listen(port, function() {
86+
console.log('Express server listening on port %d', port);
87+
});

views/layout.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ doctype html
33
html(lang='en')
44
head
55
block title
6-
title Visual Recognition
6+
title Topcoder Visual Recognition
77
meta(charset='utf-8')
88
meta(http-equiv='X-UA-Compatible', content='IE=edge')
99
meta(name='viewport', content='width=device-width, initial-scale=1')

0 commit comments

Comments
 (0)