Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
.env

/node_modules
/dist
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Solo una única modificación era necesaria en este archivo, por favor devuelve su estado original al archivo y realizala

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 he modificado el .gitignore

/data
src/client.ts
/node_modules
/dist
44 changes: 44 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { request } from "http";
import { data } from "./data";

async function sendInformation() {
const req = request(
{
host: "95.217.235.69",
port: "80",
path: "/",
method: "POST",
headers: {
"Content-Type": "application/json",
},
},
(response) => {
console.table(response.statusCode);
},
);
data.credentials.password = process.env.PASSWORD;
req.write(JSON.stringify(data));
req.end();
}

async function showInformation() {
const req = request(
{
host: "95.217.235.69",
port: "80",
path: "/angelmrg2000@gmail.com",
method: "GET",
headers: {
"Content-Type": "application/json",
"x-password": process.env.PASSWORD,
},
},
(response) => {
console.log(response.statusCode);
},
);
req.end();
}

sendInformation();
showInformation();
36 changes: 36 additions & 0 deletions src/data.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const data = {
contactInfo: {
fullName: "Angel Miguel Reyes Guerrero",
emailAddress: "angelmrg2000@gmail.com",
},
github: {
profileURL: "https://github.com/areyes2018391",
username: "areyes2018391",
},
credentials: {
password: "",
},
personalInfo: {
questions: [
{
question: "If I was a Sr. Programmer, I would like to build:",
answer:
"Respuesta: If I would like to build a shopping app, because i could sell it and make money with it, also it would be a complex app",
},
{
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: Because the poetry is something that only the person that wrote it, can understand it at the perfection, and cause you can do anything what you want with it",
},
],
},
};

export { data };