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
+
| [**.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
+
| [**server.js**](./server.js) | Main server file that the Node.js runtime uses. It contains all the server logic.
33
+
| [**/server**](./server) | Folder for files used by the Node.js server
34
+
| [/server/models/**user.model.js**](./server/models/user.model.js) | Model for storing users in MongoDB
35
+
| [**/public**](./public) | Folder for files delivered to users, such as html and css files
36
+
| [/public/js/**app.js**](./public/js/app.js) | Angular application for manipulating and rendering data in browser
37
+
38
+
## Application
39
+
-**MongoDB** stores user account information and persists sessions (so that a server crash does not log out all users.)
40
+
-**Express** functions Node.js middleware to handle all HTTP requests and routing.
41
+
-**Angular** handles HTML templating and data manipulation.
42
+
-**Node.js** is the runtime for the application.
43
+
44
+
There is also generous commenting throughout the application which helps explain critical parts of the application.
45
+
46
+
## Running locally
47
+
28
48
1. Clone or download this repo onto your machine.
29
49
1. Install [application requirements](#application-requirements) if not done so already.
30
50
1. Open application directory in your terminal and run `npm install`
@@ -45,51 +65,9 @@ An alternative way of running locally is using the provided `Dockerfile`.
45
65
```
46
66
- Run the app locally
47
67
```
48
-
docker run -p 6020:6020 -ti mean-stack:v1.0.0
68
+
docker run -p 8080:8080 -ti mean-stack:v1.0.0
49
69
```
50
70
51
-
##### Deploy to IBM Cloud
52
-
53
-
Option 1 (launch this app directly from this repo):
54
-
55
-
[](https://cloud.ibm.com/devops/setup/deploy?repository=https://github.com/IBM-Cloud/nodejs-MEAN-stack)
56
-
57
-
Option 2 (deploy from your local machine):
58
-
59
-
1. Clone or download this repo onto your machine.
60
-
2. Open a terminal prompt to the directory of your application.
61
-
3. If you don't have an account, [create a free one here](https://cloud.ibm.com).
62
-
4. Login to your account via the command line: `ibmcloud login`
63
-
5. Target your account ORG and SPACE `ibmcloud target --cf`
64
-
6. Create the instance of IBM Cloud Databases for MongoDB on IBM Cloud: `ibmcloud cf create-service databases-for-mongodb standard mean-starter-mongodb`
65
-
7. Push your app to IBM Cloud with `ibmcloud cf push`
66
-
8. Done, the app should be looking like:<imgsrc="ReadME-Images/live-app.png">
67
-
68
-
#### Problems or Questions?
69
-
70
-
Create a [GitHub issue](https://github.com/IBM-Cloud/nodejs-MEAN-stack/issues/new) for questions or problems occurs using this demo.
| [**manifest.yml**](./manifest.yml) | File that defines deployment paramaters. [More info here](http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html)
77
-
| [**.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.
78
-
| [**server.js**](./server.js) | Main server file that the Node.js runtime uses. It contains all the server logic.
79
-
| [**/server**](./server) | Folder for files used by the Node.js server
80
-
| [/server/models/**user.model.js**](./server/models/user.model.js) | Model for storing users in MongoDB
81
-
| [**/public**](./public) | Folder for files delivered to users, such as html and css files
82
-
| [/public/js/**app.js**](./public/js/app.js) | Angular application for manipulating and rendering data in browser
83
-
84
-
85
-
## Application
86
-
-**MongoDB** stores user account information and persists sessions (so that a server crash does not log out all users.)
87
-
-**Express** functions Node.js middleware to handle all HTTP requests and routing.
88
-
-**Angular** handles HTML templating and data manipulation.
89
-
-**Node.js** is the runtime for the application.
90
-
91
-
There is also generous commenting throughout the application which helps explain critical parts of the application.
92
-
93
71
## Contribute
94
72
Please create a pull request with your desired changes.
0 commit comments