You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| [**manifest.yml**](./manifest.yml) | File that defines deployment paramaters. [More info here](http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html)
31
30
| [**.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.
32
31
| [**server.js**](./server.js) | Main server file that the Node.js runtime uses. It contains all the server logic.
33
32
| [**/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
50
49
1. Open application directory in your terminal and run `npm install`
51
50
1. If you don't have an account, [create a free one here](https://cloud.ibm.com).
52
51
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.
56
55
1. Run `node server.js` to start your app
57
56
1. Open a browser to the link provided in the terminal prompt to view your app
58
57
@@ -65,26 +64,18 @@ An alternative way of running locally is using the provided `Dockerfile`.
65
64
```
66
65
- Run the app locally
67
66
```
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
69
68
```
70
69
71
70
## Contribute
72
71
Please create a pull request with your desired changes.
73
72
74
73
## 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.
76
75
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
+
<imgsrc="ReadME-Images/log-mon.png">
86
77
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.
88
79
89
80
## License
90
81
See [LICENSE.MD](https://github.com/IBM-Cloud/nodejs-MEAN-stack/blob/master/LICENSE.md) for license information.
0 commit comments