Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const axios = require('axios');
Comment thread
byJim marked this conversation as resolved.
Outdated
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);
});

}


30 changes: 30 additions & 0 deletions src/data.ts
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"
Comment thread
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."
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

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.

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.

}
]
}
}