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
*Instalamos la última versión LTS de[Nodejs(v18)](https://nodejs.org/en/download).
82
-
*Instalamos todas las librerías necesarias
94
+
*We install the latest LTS version of[Nodejs(v18)](https://nodejs.org/en/download).
95
+
*We install all the necessary libraries
83
96
84
97
```git
85
98
npm i
86
99
```
87
100
88
-
*Las variables de entorno utilizadas en el proyecto se mantienen para simplificar el proceso de configuración de las mismas. Es recomendado agregar el archivo correspondiente (.env) al .gitignore.
89
-
*El siguiente script configurado en el package.json del proyecto es el encargado de
90
-
*Levantar el servidor con express (entorno productivo)
91
-
*Levantar el servidor con express y nodemon (entorno local dev)
101
+
*The environment variables used in the project are maintained to simplify their configuration process. It is recommended to add the corresponding file (.env) to the .gitignore.
102
+
*The following script configured in the project's package.json is responsible for
103
+
*Raise the server with express (productive environment)
104
+
*Raise the server with express and nodemon (local dev environment)
92
105
93
106
```git
94
107
"scripts": {
95
-
"dev": "nodemon src/server.js",
96
-
"start": "node src/server.js"
97
-
},
108
+
"dev": "nodemon src/server.js",
109
+
"start": "node src/server.js"
110
+
},
98
111
```
99
112
100
-
*Ejecutamos la app desde terminal para entorno local.
113
+
*We run the app from a terminal for a local environment.
101
114
102
115
```git
103
116
npm run dev
104
117
```
105
118
106
-
*Ejecutamos la app desde terminal para entorno productivo.
119
+
*We run the app from a terminal for a productive environment.
107
120
108
121
```git
109
122
npm start
110
123
```
111
124
112
-
*Si se presenta algún mensaje indicando qué el puerto 8080 ya está en uso, podemos terminar todos los procesos dependientes y volver a ejecutar la app
125
+
*If a message appears indicating that port 8080 is already in use, we can terminate all dependent processes and run the app again
113
126
114
127
```git
115
128
npx kill-port 8080
116
-
npm run dev o npm start
129
+
npm run dev or npm start
117
130
```
118
131
119
132
<br>
120
133
121
134
</details>
122
135
123
-
### 1.2) Configuración del proyecto desde cero [🔝](#índice-)
136
+
### 1.2) Project configuration from scratch [🔝](#index-)
124
137
125
138
<details>
126
-
<summary>Ver</summary>
127
-
<br>
139
+
<summary>See</summary>
140
+
<br>
128
141
129
-
#### 1.2.0) Configuraciones iniciales
142
+
#### 1.2.0) Initial settings
130
143
131
-
*Una vez creado un entorno de trabajo a través de algún ide, clonamos el proyecto
144
+
*Once a work environment has been created through some IDE, we clone the project
*Instalamos la última versión LTS de[Nodejs(v18)](https://nodejs.org/en/download)
144
-
*Abrimos una terminal desde vsc
145
-
*Inicializamos un proyecto nodejs
156
+
*We install the latest LTS version of[Nodejs(v18)](https://nodejs.org/en/download)
157
+
*We open a terminal from vsc
158
+
*We initialize a nodejs project
146
159
147
160
```git
148
161
npm init -y
149
162
```
150
163
151
-
*Creamos un archivo .gitignore y agregamos los files necesarios (por el momento node\_modules)
164
+
*We create a .gitignore file and add the necessary files (for the moment node\_modules)
152
165
153
166
```git
154
167
node_modules
155
168
```
156
169
157
-
*Creamos un direct source (src) para agregar toda la lógica de nuestra app
158
-
*Instalamos el plugin para[express (framework)](https://www.npmjs.com/package/express)
170
+
*We create a direct source (src) to add all the logic of our app
171
+
*We install the plugin for[express (framework)](https://www.npmjs.com/package/express)
159
172
160
173
```git
161
174
npm i express
162
175
```
163
176
164
-
*Instalamos el plugin para[cors (gestión de recursos)](https://www.npmjs.com/package/cors)
177
+
*We install the plugin for[cors (resource management)](https://www.npmjs.com/package/cors)
165
178
166
179
```git
167
180
npm i cors
168
181
```
169
182
170
-
*Instalamos el plugin para[dotenv (variables de entorno)](https://www.npmjs.com/package/dotenv)
183
+
*We install the plugin for[dotenv (environment variables)](https://www.npmjs.com/package/dotenv)
171
184
172
185
```git
173
186
npm i dotenv
174
187
```
175
188
176
-
*Instalamos el plugin para[morgan-middleware (errores, formatos, etc)](https://expressjs.com/en/resources/middleware/morgan.html)
189
+
*We install the plugin for[morgan-middleware (errors, formats, etc)](https://expressjs.com/en/resources/middleware/morgan.html)
177
190
178
191
```git
179
192
npm i morgan
180
193
```
181
194
182
-
Instalamos uuid para id's unicos
195
+
We install uuid for unique ids
183
196
184
197
```git
185
198
npm i uuid
186
199
```
187
200
188
-
*Instalamos el plugin para[nodemon (autoreload server)](https://www.npmjs.com/package/nodemon)de forma global
201
+
*We install the plugin for[nodemon (autoreload server)](https://www.npmjs.com/package/nodemon)globally
189
202
190
203
```git
191
204
npm i -g nodemon
192
205
```
193
206
194
-
*Instalamos el plugin para[nodemon (autoreload server)](https://www.npmjs.com/package/nodemon)para desarrollo
207
+
*We install the plugin for[nodemon (autoreload server)](https://www.npmjs.com/package/nodemon)for development
195
208
196
209
```git
197
210
npm i nodemon --save-dev
198
211
```
199
212
200
-
*Instalamos las librerías para el [compilador gRPC](https://www.npmjs.com/package/@grpc/proto-loader)
213
+
*We install the libraries for the [gRPC compiler](https://www.npmjs.com/package/@grpc/proto-loader)
201
214
202
215
```git
203
216
npm i @grpc/proto-loader
204
217
```
205
218
206
-
*Las variables de entorno utilizadas en el proyecto se mantienen para simplificar el proceso de configuración de las mismas. Es recomendado agregar el archivo correspondiente (.env) al .gitignore.
207
-
*El siguiente script configurado en el package.json del proyecto es el encargado de
208
-
*Levantar el servidor con express (entorno productivo)
209
-
*Levantar el servidor con express y nodemon (entorno local dev)
219
+
*The environment variables used in the project are maintained to simplify their configuration process. It is recommended to add the corresponding file (.env) to the .gitignore.
220
+
*The following script configured in the project's package.json is responsible for
221
+
*Raise the server with express (productive environment)
222
+
*Raise the server with express and nodemon (local dev environment)
210
223
211
224
```git
212
225
"scripts": {
213
-
"dev": "nodemon src/server.js",
214
-
"start": "node src/server.js"
215
-
},
226
+
"dev": "nodemon src/server.js",
227
+
"start": "node src/server.js"
228
+
},
216
229
```
217
230
218
-
*Ejecutamos la app desde terminal para entorno local.
231
+
*We run the app from a terminal for a local environment.
219
232
220
233
```git
221
234
npm run dev
222
235
```
223
236
224
-
*Ejecutamos la app desde terminal para entorno productivo.
237
+
*We run the app from a terminal for a productive environment.
225
238
226
239
```git
227
240
npm start
228
241
```
229
242
230
-
*Si se presenta algún mensaje indicando qué el puerto 8080 ya está en uso, podemos terminar todos los procesos dependientes y volver a ejecutar la app
243
+
*If a message appears indicating that port 8080 is already in use, we can terminate all dependent processes and run the app again
0 commit comments