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
{{ message }}
This repository was archived by the owner on Aug 30, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+26-12Lines changed: 26 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -73,29 +73,51 @@ After the install process is over, you'll be able to run your application using
73
73
$ grunt
74
74
```
75
75
76
-
Your application should run on port 3000, so in your browser just go to [http://localhost:3000](http://localhost:3000)
76
+
Your application should run on port 3000 with the *development* environment configuration, so in your browser just go to [http://localhost:3000](http://localhost:3000)
77
77
78
78
That's it! Your application should be running. To proceed with your development, check the other sections in this documentation.
79
79
If you encounter any problems, try the Troubleshooting section.
80
80
81
+
* explore ```config/env/development.js``` for development environment configuration options
82
+
83
+
### Running in Production mode
84
+
To run your application with *production* environment configuration, execute grunt as follows:
85
+
```bash
86
+
$ grunt prod
87
+
```
88
+
* explore ```config/env/production.js``` for production environment configuration options
89
+
90
+
### Running with TLS (SSL)
91
+
Application will start by default with secure configuration (SSL mode) turned on and listen on port 8443.
92
+
To run your application in a secure manner you'll need to use OpenSSL and generate a set of self-signed certificates. Unix-based users can use the following command:
93
+
```bash
94
+
$ sh ./scripts/generate-ssl-certs.sh
95
+
```
96
+
Windows users can follow instructions found [here](http://www.websense.com/support/article/kbarticle/How-to-use-OpenSSL-and-Microsoft-Certification-Authority).
97
+
After you've generated the key and certificate, place them in the *config/sslcerts* folder.
* enable/disable SSL mode in production environment change the ```secure``` option in ```config/env/production.js```
101
+
102
+
81
103
## Testing Your Application
82
104
You can run the full test suite included with MEAN.JS with the test task:
83
105
84
-
```
106
+
```bash
85
107
$ grunt test
86
108
```
87
109
88
110
This will run both the server-side tests (located in the app/tests/ directory) and the client-side tests (located in the public/modules/*/tests/).
89
111
90
112
To execute only the server tests, run the test:server task:
91
113
92
-
```
114
+
```bash
93
115
$ grunt test:server
94
116
```
95
117
96
118
And to run only the client tests, run the test:client task:
97
119
98
-
```
120
+
```bash
99
121
$ grunt test:client
100
122
```
101
123
@@ -122,14 +144,6 @@ $
122
144
$ docker run -p 3000:3000 -p 35729:35729 -v /Users/mdl/workspace/mean-stack/mean/public:/home/mean/public -v /Users/mdl/workspace/mean-stack/mean/app:/home/mean/app --link db:db_1 mean
123
145
```
124
146
125
-
## Running in a secure environment
126
-
To run your application in a secure manner you'll need to use OpenSSL and generate a set of self-signed certificates. Unix-based users can use the following command:
127
-
```bash
128
-
$ sh ./scripts/generate-ssl-certs.sh
129
-
```
130
-
Windows users can follow instructions found [here](http://www.websense.com/support/article/kbarticle/How-to-use-OpenSSL-and-Microsoft-Certification-Authority).
131
-
After you've generated the key and certificate, place them in the *config/sslcerts* folder.
132
-
133
147
## Getting Started With MEAN.JS
134
148
You have your application running, but there is a lot of stuff to understand. We recommend you go over the [Official Documentation](http://meanjs.org/docs.html).
135
149
In the docs we'll try to explain both general concepts of MEAN components and give you some guidelines to help you improve your development process. We tried covering as many aspects as possible, and will keep it updated by your request. You can also help us develop and improve the documentation by checking out the *gh-pages* branch of this repository.
0 commit comments