Skip to content

Commit c074655

Browse files
committed
Update README.md
1 parent f9d224f commit c074655

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

README.md

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ The code and detailed steps are discussed in the [IBM Cloud solution tutorial](h
2121
## Application Requirements
2222
- [Node.js & NPM](https://nodejs.org/en/download/)
2323
- [IBM Cloud Databases for MongoDB](https://cloud.ibm.com/catalog/services/databases-for-mongodb)
24-
- [Cloud Foundry Command Line Tool](https://docs.cloudfoundry.org/devguide/installcf/)
24+
- [Code Engine Command Line Tool](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli)
2525

2626
## Files & Folders
2727

2828
| File | Description |
2929
| ---------------------------------- | ------------------------------------------------------------ |
30-
| [**manifest.yml**](./manifest.yml) | File that defines deployment paramaters. [More info here](http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html)
3130
| [**.env.example**](./.env.example) | Set custom [environment variables](https://en.wikipedia.org/wiki/Environment_variable) for your application. This is the proper way to store credentials and other sensitive values.
3231
| [**server.js**](./server.js) | Main server file that the Node.js runtime uses. It contains all the server logic.
3332
| [**/server**](./server) | Folder for files used by the Node.js server
@@ -50,9 +49,9 @@ There is also generous commenting throughout the application which helps explain
5049
1. Open application directory in your terminal and run `npm install`
5150
1. If you don't have an account, [create a free one here](https://cloud.ibm.com).
5251
1. Login to your account via the command line: `ibmcloud login`
53-
1. Target your account ORG and SPACE `ibmcloud target --cf`
54-
1. Create the instance of IBM Cloud Databases for MongoDB on IBM Cloud: `ibmcloud cf create-service databases-for-mongodb standard mean-starter-mongodb`
55-
1. Rename `.env.example` file to `.env` and run `ibmcloud cf service-key mean-starter-mongodb "Service credentials-1"` for MONGODB_URL and CERTIFICATE_BASE64. Choose your own SESSION_SECRET.
52+
1. Target your desired region `ibmcloud target -r ca-tor`
53+
1. Create the instance of IBM Cloud Databases for MongoDB on IBM Cloud: `ibmcloud resource service-instance-create mean-starter-mongodb databases-for-mongodb standard ca-tor`
54+
1. Rename `.env.example` file to `.env` and run `ibmcloud resource service-key-create mean-starter-mongodb-key --instance-name mean-starter-mongodb` for MONGODB_URL and CERTIFICATE_BASE64. Choose your own SESSION_SECRET.
5655
1. Run `node server.js` to start your app
5756
1. Open a browser to the link provided in the terminal prompt to view your app
5857

@@ -65,26 +64,18 @@ An alternative way of running locally is using the provided `Dockerfile`.
6564
```
6665
- Run the app locally
6766
```
68-
docker run -p 8080:8080 -ti mean-stack:v1.0.0
67+
docker run -p 8080:8080 --env-file .env -ti mean-stack:v1.0.0
6968
```
7069

7170
## Contribute
7271
Please create a pull request with your desired changes.
7372

7473
## Troubleshooting
75-
The primary source of debugging information for your app is the logs. To see them, run the following Cloud Foundry command using the IBM Cloud CLI:
74+
The primary source of debugging information for your app running in the cloud is the logs. To see them, run the following use the Code Engine UI.
7675

77-
```
78-
$ ibmcloud cf logs <application-name> --recent
79-
```
80-
81-
If you are not sure what your application name is, use this command to print your application name(s):
82-
83-
```
84-
$ ibmcloud cf apps
85-
```
76+
<img src="ReadME-Images/log-mon.png">
8677

87-
For more detailed information on troubleshooting your application, see the [Troubleshooting section](https://cloud.ibm.com/docs/cloud-foundry-public?topic=cloud-foundry-public-ts-cf-apps) in the documentation.
78+
For more detailed information on troubleshooting your application, see the [Troubleshooting apps section](https://cloud.ibm.com/docs/codeengine?topic=codeengine-troubleshoot-apps) in the documentation.
8879

8980
## License
9081
See [LICENSE.MD](https://github.com/IBM-Cloud/nodejs-MEAN-stack/blob/master/LICENSE.md) for license information.

0 commit comments

Comments
 (0)