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).
84
-
*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
85
96
86
97
```git
87
98
npm i
88
99
```
89
100
90
-
*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.
91
-
*El siguiente script configurado en el package.json del proyecto es el encargado de
92
-
*Levantar el servidor con express (entorno productivo)
93
-
*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)
94
105
95
106
```git
96
107
"scripts": {
97
-
"dev": "nodemon src/server.js",
98
-
"start": "node src/server.js"
99
-
},
108
+
"dev": "nodemon src/server.js",
109
+
"start": "node src/server.js"
110
+
},
100
111
```
101
112
102
-
*Ejecutamos la app desde terminal para entorno local.
113
+
*We run the app from a terminal for a local environment.
103
114
104
115
```git
105
116
npm run dev
106
117
```
107
118
108
-
*Ejecutamos la app desde terminal para entorno productivo.
119
+
*We run the app from a terminal for a productive environment.
109
120
110
121
```git
111
122
npm start
112
123
```
113
124
114
-
*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
115
126
116
127
```git
117
128
npx kill-port 8080
118
-
npm run dev o npm start
129
+
npm run dev or npm start
119
130
```
120
131
121
132
<br>
122
133
123
134
</details>
124
135
125
-
### 1.2) Configuración del proyecto desde cero [🔝](#índice-)
136
+
### 1.2) Project configuration from scratch [🔝](#index-)
126
137
127
138
<details>
128
-
<summary>Ver</summary>
129
-
<br>
139
+
<summary>See</summary>
140
+
<br>
130
141
131
-
#### 1.2.0) Configuraciones iniciales
142
+
#### 1.2.0) Initial settings
132
143
133
-
*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)
146
-
*Abrimos una terminal desde vsc
147
-
*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
148
159
149
160
```git
150
161
npm init -y
151
162
```
152
163
153
-
*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)
154
165
155
166
```git
156
167
node_modules
157
168
```
158
169
159
-
*Creamos un direct source (src) para agregar toda la lógica de nuestra app
160
-
*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)
161
172
162
173
```git
163
174
npm i express
164
175
```
165
176
166
-
*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)
167
178
168
179
```git
169
180
npm i cors
170
181
```
171
182
172
-
*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)
173
184
174
185
```git
175
186
npm i dotenv
176
187
```
177
188
178
-
*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)
179
190
180
191
```git
181
192
npm i morgan
182
193
```
183
194
184
-
Instalamos uuid para id's unicos
195
+
We install uuid for unique ids
185
196
186
197
```git
187
198
npm i uuid
188
199
```
189
200
190
-
*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
191
202
192
203
```git
193
204
npm i -g nodemon
194
205
```
195
206
196
-
*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
197
208
198
209
```git
199
210
npm i nodemon --save-dev
200
211
```
201
212
202
-
*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)
203
214
204
215
```git
205
216
npm i @grpc/proto-loader
206
217
```
207
218
208
-
*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.
209
-
*El siguiente script configurado en el package.json del proyecto es el encargado de
210
-
*Levantar el servidor con express (entorno productivo)
211
-
*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)
212
223
213
224
```git
214
225
"scripts": {
215
-
"dev": "nodemon src/server.js",
216
-
"start": "node src/server.js"
217
-
},
226
+
"dev": "nodemon src/server.js",
227
+
"start": "node src/server.js"
228
+
},
218
229
```
219
230
220
-
*Ejecutamos la app desde terminal para entorno local.
231
+
*We run the app from a terminal for a local environment.
221
232
222
233
```git
223
234
npm run dev
224
235
```
225
236
226
-
*Ejecutamos la app desde terminal para entorno productivo.
237
+
*We run the app from a terminal for a productive environment.
227
238
228
239
```git
229
240
npm start
230
241
```
231
242
232
-
*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