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
Copy file name to clipboardExpand all lines: README.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This application uses [Databases for MongoDB](https://cloud.ibm.com/catalog/serv
6
6
7
7
The code and detailed steps are discussed in the [IBM Cloud solution tutorial](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-tutorials) titled [Modern web application using MEAN stack](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-mean-stack).
8
8
9
-
<imgsrc="ReadME-Images/Architecture.png">
9
+
<imgsrc="ReadME-Images/Architecture.svg">
10
10
11
11
#### Features
12
12
- MVC project structure
@@ -67,6 +67,33 @@ An alternative way of running locally is using the provided `Dockerfile`.
67
67
docker run -p 8080:8080 --env-file .env -ti mean-stack:v1.0.0
68
68
```
69
69
70
+
## Provision with Terraform
71
+
The steps of creating the resouces (database, code engine project, secret, application, ...) described in [Modern web application using MEAN stack](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-mean-stack) are captured in the terraform file [main.tf](main.tf).
72
+
73
+
[Getting started with solution tutorials](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-tutorials) has a description of how to get started with terraform on a workstation.
74
+
75
+
76
+
```
77
+
terraform init
78
+
terraform apply
79
+
```
80
+
81
+
## Provision with Schematics
82
+
Schematics is a cloud based Infrastructure as Code runner with cloud based state. It leverages the Terraform configuration described in the previous section.
83
+
84
+
[Create a Schematics Workspace from this github repository](https://cloud.ibm.com/schematics/workspaces/create?repository=https://github.com/IBM-Cloud/nodejs-MEAN-stack&terraform_version=terraform_v1.4)
85
+
86
+
The link above should have opened a schematics workspace in the create dialog with the github repository pre-configured and terraform 1.4 selected. Change the **Workspace name**, **Resource group**, and **Location** as desired. This will be the resource group of the workspace. The resource group of the resources created will be configured in schematics. Click **Create**.
87
+
88
+
## Provision as a Deployable Architecture
89
+
In the IBM Cloud create a private catalog and then add a product to the catalog:
90
+
- Product type: Deployable architecture
91
+
- Deliver method: Terraform
92
+
- Public repository: Open the [releases](https://github.com/IBM-Cloud/nodejs-MEAN-stack/releases) and right click on the source.code.tar.gz file and paste in the string. Example: https://github.com/IBM-Cloud/nodejs-MEAN-stack/archive/refs/tags/1.0.3.tar.gz
93
+
- Variation: Standard
94
+
- Rest of the values are pretty clear
95
+
96
+
70
97
## Contribute
71
98
Please create a pull request with your desired changes.
0 commit comments