-
Notifications
You must be signed in to change notification settings - Fork 20
Jguzaro2018017/entry-challenge #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| import { data } from "./data"; | ||
|
|
||
| const axios = require('axios'); | ||
| var contraseña = data.credentials.password; | ||
|
|
||
| async function sendPost(){ | ||
| let res = await axios.post('http://95.217.235.69/', data) | ||
| .then(function(response){ | ||
| console.log(response); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No se tienen que dejar |
||
| }) | ||
| .catch(function (error){ | ||
| console.log(error); | ||
| }) | ||
|
|
||
| } | ||
|
|
||
| async function guetData(){ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. El nombre de está función contiene un |
||
| let res = await axios.get('http://95.217.235.69/[email protected]', { | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| "x-password": contraseña | ||
| } | ||
| }) | ||
| .then(function(response){ | ||
| console.log(response.data) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ |
||
| }) | ||
| .catch(function(error){ | ||
| console.log(error); | ||
| }) | ||
| } | ||
|
|
||
| sendPost(); | ||
| guetData(); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
Comment on lines
+34
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cuándo instales |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| export const data = { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deberías de instalar |
||
|
|
||
| contactInfo: { | ||
| fullName: "Joel Alexander Guzaro Tzunun", | ||
| emailAddress: "[email protected]", | ||
| }, | ||
| github: { | ||
| profileURL: "https://github.com/jguzaro2018017", | ||
| username: "jguzaro2018017", | ||
| }, | ||
| credentials: { | ||
| password: "GuzaroTG2482", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Está información es privada, por lo que debes de buscar una manera para introducir está información de una manera indirecta. |
||
| }, | ||
| personalInfo: { | ||
| questions: [ | ||
| { | ||
| question: "If I was a Sr. Programmer, I would like to build:", | ||
| answer: "Respuesta: Me gustaria crear una red social y videojuegos", | ||
| }, | ||
| { | ||
| question: | ||
| "Por favor indica el URL que me lleva a la línea de código de la definición de React.useEffect", | ||
| answer: "Respuesta: https://github.com/facebook/react/blob/655affa302437208e6f03c9ca6d170ea1707ace3/packages/react-reconciler/src/ReactFiberHooks.new.js#L1878", | ||
| }, | ||
| { | ||
| question: "code is poetry, because:", | ||
| answer: "Respuesta: It is recited as a result of a reflection of our thoughts.", | ||
| }, | ||
| ], | ||
| }, | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Una buena práctica al momento de programar es escribirlo en inglés, además que escribirlo en español con carácteres especiales como lo es la ñ te podría generar incovenientes.