-
Notifications
You must be signed in to change notification settings - Fork 20
Mconcoba/entry-challenge #8
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
Open
MConcoba
wants to merge
12
commits into
corecodeio:master
Choose a base branch
from
MConcoba:MConcoba/entry-challenge
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+73
−1
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3def79c
Implementation of dependencies, exports in index
MConcoba 895131d
Modificate gitignore, Complete personal information
MConcoba 9126357
Create and export funcion sendMyInformation, import this funcion in i…
MConcoba 4ae6a24
Create and export funcion getMyInformation, import this funcion in index
MConcoba bcdf575
Create file data.ts, insert myInformation
MConcoba 79834ce
Modificate answer the React.useEffect
MConcoba 2f7be50
Delete imports
MConcoba ac02eae
Update .gitgnore, add pagakege-log.json
MConcoba 06735bc
Update client.ts, delete exports and password encrypt
MConcoba 1c155f5
Delete packega-lock.json
MConcoba e936629
Comments made
MConcoba 1830cb2
Modificate export in data.ts
MConcoba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,4 +3,3 @@ | |
| /node_modules | ||
| /dist | ||
| /data | ||
| src/client.ts | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| import { request } from "http"; | ||
|
|
||
| import myInformation from "./data"; | ||
|
|
||
|
|
||
| async function sendMyInformation() { | ||
| const req = request( | ||
| { | ||
| host: "95.217.235.69", | ||
| port: "80", | ||
| path: "/", | ||
| method: "POST", | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| }, | ||
| } | ||
| ); | ||
| myInformation.credentials.password = process.env.PASSWORD_SECRET; | ||
| req.write(JSON.stringify(myInformation)); | ||
| req.end(); | ||
| } | ||
|
|
||
| async function getMyInformation() { | ||
| const req = request( | ||
| { | ||
| host: "95.217.235.69", | ||
| port: "80", | ||
| path: "/mconcoba20@gmail.com", | ||
| method: "GET", | ||
| headers: { | ||
| "Content-Type": "application/json", | ||
| "x-password": process.env.PASSWORD_SECRET, | ||
| }, | ||
| }, | ||
| ); | ||
| req.end(); | ||
| } | ||
|
|
||
| sendMyInformation(); | ||
| getMyInformation(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| const myInformation = { | ||
| contactInfo: { | ||
| fullName: "Manuel Alessandro Concoba Núñez", | ||
| emailAddress: "mconcoba20@gmail.com", | ||
| }, | ||
| github: { | ||
| profileURL: "https://github.com/MConcoba", | ||
| username: "MConcoba", | ||
| }, | ||
| credentials: { | ||
| password: "", | ||
| }, | ||
| personalInfo: { | ||
| questions: [ | ||
| { | ||
| question: "If I was a Sr. Programmer, I would like to build:", | ||
| answer: "Functional programming solutions for people who lack the tools or skills to achieve their goal, as long as it is for the common good.", | ||
| }, | ||
| { | ||
| 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: "Poetry is art, art is defined as a way to convey feelings creating something that is unique and original.", | ||
| }, | ||
| ], | ||
| }, | ||
| } | ||
|
|
||
| export default myInformation; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
👍