Skip to content

cokkike88 pull request#11

Open
cokkike88 wants to merge 7 commits into
corecodeio:masterfrom
cokkike88:cokkike88/entry-challenge
Open

cokkike88 pull request#11
cokkike88 wants to merge 7 commits into
corecodeio:masterfrom
cokkike88:cokkike88/entry-challenge

Conversation

@cokkike88
Copy link
Copy Markdown

:)

Copy link
Copy Markdown

@Ktoxcon Ktoxcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muy Buen Comienzo @cokkike88 !! 🎉🎉🎉
Por favor resuelve lo que se te pide en los comentarios.

Copy link
Copy Markdown

@Ktoxcon Ktoxcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resuelve los comments 😄

Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
});

server.get("/:emailAddress", async (req: Request, res: Response) => {
server.get("/:emailAddress", async (req, res) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No hay necesidad de modificar -/src/index.ts. Por favor, regresa este file al estado original.
Puedes intentar hacer git checkout master src/index.ts para regresar este file a como estaba antes. 😉

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya subi los cambios

Copy link
Copy Markdown

@netpoe netpoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gracias @Ktoxcon por los comments.

@cokkike88 resuelve los comentarios, por favor.

Comment thread src/index.ts
server.listen("80", () => {
server.listen("8081", () => {
console.log("listening");
});
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No es necesario modificar index.ts, por favor devuélvelo al estado original.

Comment thread package-lock.json Outdated
@@ -0,0 +1,1178 @@
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package-lock.json es creado por npm, pero en este proyecto estamos usando yarn. Cuando instales dependencias utiliza yarn.lock por favor. Y remueve este file.

Comment thread src/client.ts Outdated

router.post('/sendInformation', async(req, res) => {
try {
let data = {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mueve let data a un file ./src/data.ts para simplificar client.ts.

Igualmente, hay que usar const data, por que no se reasignará en el futuro.

Comment thread src/client.ts Outdated
username: "cokkike88",
},
credentials: {
password: "Enrique8@Lisso12",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Evita subir contraseñas a repositorios públicos (y privados), es una mala práctica. Cómo podemos hacer para ocultar esta contraseña?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se instalo la libreria dotenv, para configurar varaibles de entorno y se ignora el archivo de configuracion en el .gitignore. Ya subi los cambios.

Copy link
Copy Markdown

@netpoe netpoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cokkike88 todavía veo algunos de los comentarios no resueltos, como las observaciones sobre el file index.ts.

Por favor instala: https://github.com/prettier/prettier-vscode en tu editor.

Igualmente, agrega estas líneas en tu settings.json:

"editor.codeActionsOnSave": {
    "source.organizeImports": true
  },

Comment thread src/data.ts Outdated
questions: [
{
question: "If I was a Sr. Programmer, I would like to build:",
answer: "Respuesta: Some application with micriservices with aws lambda, with neptuno database, nodejs as backend, reactjs as frontend, aws cognito for authentication and authorization, aws s3 to resources storage, aws api gateway",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hay que poner atención a los detalles

Suggested change
answer: "Respuesta: Some application with micriservices with aws lambda, with neptuno database, nodejs as backend, reactjs as frontend, aws cognito for authentication and authorization, aws s3 to resources storage, aws api gateway",
answer: "Respuesta: Some application with microservices with aws lambda, with neptuno database, nodejs as backend, reactjs as frontend, aws cognito for authentication and authorization, aws s3 to resources storage, aws api gateway",

Copy link
Copy Markdown

@netpoe netpoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cokkike88 te falta agregar el código del cliente que devuelve la claveDeAcceso.

Comment thread src/client.ts Outdated
Comment on lines +10 to +23
server.post('/sendInformation', async(req, res) => {
try {
let result = await axios.post(url, data);
res.json(result.data);
}
catch(error){
return error;
}
});


server.listen("8081", () => {
console.log('listening 8081');
}) No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En tu solución no veo el GET request que se tiene que hacer para recibir la claveDeAcceso. 🤔

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya agregue el metodo get.

Copy link
Copy Markdown

@netpoe netpoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cokkike88
Muy cerca.

Por favor instala prettier en tu editor y guarda los files de nuevo para aplicar el nuevo formato.

También agrega esta configuración a tu settings.json:

"editor.codeActionsOnSave": {
    "source.organizeImports": true
  },

…ivos, y se agrego la configuracion en settings.json de vscode
Copy link
Copy Markdown

@netpoe netpoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cokkike88 últimos comentarios.

Comment thread src/client.ts Outdated
Comment on lines +10 to +18
server.post('/sendInformation', async (req, res) => {
try {
let result = await axios.post(url, data);
res.json(result.data);
}
catch (error) {
return error;
}
});
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cokkike88 todavía veo una sangría incorrecta. Ya instalaste prettier en tu editor?
hay que guardar los files de nuevo para que se aplique el formatting.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya subi los cambios

Copy link
Copy Markdown

@netpoe netpoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
buen trabajo.

Bienvenido.

Espera la invitación al Github de corecodeio en tu correo.
Y también la invitación a Slack.

cc @sofiacastillo @sofiacastillod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants