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 Oct 10, 2026. It is now read-only.
Repository navigation
Commit 9994465
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: WebApplication/README.md
+11-15Lines changed: 11 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ First at all, we are going to build the front side of the application. What migh
13
13
- With css preprocessors
14
14
- And maybe others...
15
15
16
-
All of these features, and many others, are provided by GruntJS. But... What is Grunt? It's a task runner, a NodeJS application that provied automation, that are managed by npm. Further reading in http://gruntjs.com/.
16
+
All of these features, and many others, are provided by GruntJS. But... What is Grunt? It's a task runner, a NodeJS application that provied automation, that are managed by npm. Further reading in the <atarget="_blank"href="http://gruntjs.com">GruntJS site</a>.
17
17
18
18
To start usgin grunt, we need need install locally grunt dependencies located at client/package.json with the following command:
19
19
@@ -48,16 +48,15 @@ You could execute more taks, for example:
48
48
- grunt test : to execute sintax validatiosn and jasmine testing
49
49
- grunt stylus: to generate your css files
50
50
51
-
or install and configure new plugins... You only must go to the plugin listing (http://gruntjs.com/plugins) and get all you need, all provided by GruntJS and nodeJS
52
-
51
+
or install and configure new plugins... You only must go to the <atarget="_blank"href="http://gruntjs.com/plugins">grunt plugin listing</a> and get all you need, all provided by GruntJS and nodeJS
53
52
54
53
##Prepare server side
55
54
56
55
Before run the server side, you must install node dependencies, as in the client side. These dependencies are located in server/package.json:
57
56
58
-
- mongodb: to connect with the database
57
+
- mongodb: to connect with the mongo database
59
58
- socket.io: for the websocket's support
60
-
- express: web framework for nodej
59
+
- express: web framework for nodejs
61
60
- q: for the javascript promises support
62
61
63
62
For the dependencies intallation, go to server path and run the following command:
@@ -66,18 +65,15 @@ For the dependencies intallation, go to server path and run the following comman
66
65
67
66
It will install those dependencies
68
67
69
-
##Running the server
68
+
##Server config files
70
69
71
-
To run the server, you must go to the server path and run the server.js with node
70
+
There are different files to configure the application:
72
71
73
-
node server.js
72
+
###server/app/config/database.json:
73
+
this file contains the configuration params to connect with the database, hosted in <atarget="_blank"href="https://mongolab.com/welcome/">https://mongolab.com/welcome/</a></li>
74
74
75
-
##Server config
75
+
##Running the server
76
76
77
-
There are different files to configure the application:
77
+
To run the server, you must go to the server path and run the server.js with node
78
78
79
-
###server/config.json:
80
-
this file configure the server basics. At the moment, only configre the port where application will listen. If you wanna deploy the application usin <atarget="_blank"href="https://c9.io">https://c9.io</a>, you must set the port number to process.env.PORT</li>
81
-
82
-
###server/app/config/database.json:
83
-
this file contain the configuration params to connect with the database, hoste in <atarget="_blank"href="https://mongolab.com/welcome/">https://mongolab.com/welcome/</a></li>
0 commit comments