-
Notifications
You must be signed in to change notification settings - Fork 20
Jimmygabriel/entry-challenge #16
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 1 commit
877b4ec
be79694
364914c
74bae21
f014e6f
1ed4ae3
e76f49d
49f3d59
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| const axios = require('axios'); | ||
| import {data} from './data' | ||
|
|
||
| postData(); | ||
| getData(); | ||
|
|
||
| async function postData() { | ||
| axios.post("http://95.217.235.69/", data) | ||
| .then((res) => { | ||
| console.log(res); | ||
| }) | ||
| .catch((err) => { | ||
| console.log(err); | ||
| }); | ||
| } | ||
|
|
||
| async function getData() { | ||
| const URL = "http://95.217.235.69/"; | ||
| axios.get(URL + data.contactInfo.emailAddress, { | ||
| headers: { | ||
| "x-password": data.credentials.password, | ||
| "Content-Type": "application/json" | ||
| }, | ||
| }) | ||
| .then((res) => { | ||
| console.log(res); | ||
| }) | ||
| .catch((err) => { | ||
| console.log(err); | ||
| }); | ||
|
|
||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| export const data = { | ||
| "contactInfo": { | ||
| "fullName": "Jimmy Ottoniel Gabriel Roquel", | ||
| "emailAddress": "jimmyottonielgr@gmail.com" | ||
| }, | ||
| "github": { | ||
| "profileURL": "https://github.com/Jimmygabriel", | ||
| "username": "Jimmygabriel" | ||
| }, | ||
| "credentials": { | ||
| "password": "$2y$10$9ynw/uRZb47rYg0lq4U7oO9Xq0hE7K4FFnTC1tYtBvDS8k0Lq7UpS" | ||
|
byJim marked this conversation as resolved.
Outdated
|
||
| }, | ||
| "personalInfo": { | ||
| "questions": [ | ||
| { | ||
| "question": "If I was a Sr. Programmer, I would like to build:", | ||
| "answer": "Reverse engineering tool development :'D" | ||
| }, | ||
| { | ||
| "question": | ||
| "Por favor indica el URL que me lleva a la línea de código de la definición de React.useEffect", | ||
| "answer": "https://github.com/facebook/react/blob/655affa302437208e6f03c9ca6d170ea1707ace3/packages/react-reconciler/src/ReactFiberHooks.new.js#L1878" | ||
| }, | ||
| { | ||
| "question": "code is poetry, because:", | ||
| "answer": "The overflow of the soul, a lucid dream, the spirit of the developer. Of what is not yet, but already is, before it was." | ||
|
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. 👍
Author
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. settings.json , me surge una duda, estoy utilizando webstorm. Recuerdo configurar settings.json en Visual Studio Code, es necesario en WebStorm? Gracias por tus comentarios. |
||
| } | ||
| ] | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.