Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
842d04c
UPDATE: .gitignore
MariaJoseDiazCa Nov 30, 2020
07d0c29
DELETE: img and README.md
MariaJoseDiazCa Dec 1, 2020
6e8a077
ADD: create-react-app project
MariaJoseDiazCa Dec 1, 2020
1bc7cc9
ADD: views
MariaJoseDiazCa Dec 1, 2020
bda0b29
ADD: SearchBox component
MariaJoseDiazCa Dec 1, 2020
2d8c34e
ADD: Logo component
MariaJoseDiazCa Dec 2, 2020
85120f0
UPDATE: Searchbox and Logo component styles
MariaJoseDiazCa Dec 2, 2020
8de62bb
ADD: config and webservices
MariaJoseDiazCa Dec 2, 2020
1c7a055
ADD: Routes
MariaJoseDiazCa Dec 2, 2020
38c2ac8
UPDATE: SearchBox component
MariaJoseDiazCa Dec 2, 2020
367c07f
ADD: context
MariaJoseDiazCa Dec 2, 2020
e83d4d8
ADD: Card component
MariaJoseDiazCa Dec 2, 2020
0f1be49
ADD: state in localStorage
MariaJoseDiazCa Dec 2, 2020
b86d53b
UPDATE: Details view
MariaJoseDiazCa Dec 3, 2020
9f7ef27
UPDATE: styles of views and components
MariaJoseDiazCa Dec 3, 2020
d3feba1
ADD: CardRepository component
MariaJoseDiazCa Dec 3, 2020
ae2b4ef
UPDATE: Logo component redirects to home
MariaJoseDiazCa Dec 3, 2020
64ba2ec
UPDATE: Details view styles
MariaJoseDiazCa Dec 3, 2020
8052bc2
ADD: fetchUserRepo webservices
MariaJoseDiazCa Dec 3, 2020
6e31944
UPDATE: CardRepository component and Details view
MariaJoseDiazCa Dec 3, 2020
cda517f
UPDATE: Details view
MariaJoseDiazCa Dec 3, 2020
123e100
UPDATE: Searchbox component
MariaJoseDiazCa Dec 3, 2020
a115aa6
UPDATE: NotFound view
MariaJoseDiazCa Dec 3, 2020
2bc4a60
UPDATE: Home and NotFound view
MariaJoseDiazCa Dec 3, 2020
d9546f1
UPDATE: Details view
MariaJoseDiazCa Dec 4, 2020
254f9f1
improve styles CardRepository and SearchBox
MariaJoseDiazCa Dec 4, 2020
293d792
Improve Details and Home styles and fix issues
MariaJoseDiazCa Dec 4, 2020
4a89881
Refactor import
MariaJoseDiazCa Dec 4, 2020
a3788fd
UPDATE: README with installation instructions
MariaJoseDiazCa Dec 4, 2020
0fecb19
UPDATE: Logo add link
MariaJoseDiazCa Dec 4, 2020
384ef1c
ADD: netlify.toml file
MariaJoseDiazCa Dec 4, 2020
09a362c
UPDATE: README with demo link
MariaJoseDiazCa Dec 4, 2020
7641150
UPDATE: README file
MariaJoseDiazCa Dec 4, 2020
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
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

REACT_APP_API_URL=https://api.github.com
1 change: 1 addition & 0 deletions .eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\index.js":"1","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\App.js":"2","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\reportWebVitals.js":"3","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\Routes.js":"4","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\config\\historyRouter.js":"5","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\context\\GlobalState.js":"6","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\webservices\\index.js":"7","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\Home\\index.js":"8","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\context\\AppReducer.js":"9","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\NotFound\\index.js":"10","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\Details\\index.js":"11","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\config\\api.js":"12","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\Home\\Home.js":"13","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\NotFound\\NotFound.js":"14","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\Details\\Details.js":"15","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\Logo\\index.js":"16","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\SearchBox\\index.js":"17","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\CardRepository\\index.js":"18","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\Card\\index.js":"19","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\Logo\\Logo.js":"20","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\SearchBox\\SearchBox.js":"21","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\CardRepository\\CardRepository.js":"22","C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\Card\\Card.js":"23"},{"size":500,"mtime":499162500000,"results":"24","hashOfConfig":"25"},{"size":504,"mtime":1607049348906,"results":"26","hashOfConfig":"25"},{"size":362,"mtime":499162500000,"results":"27","hashOfConfig":"25"},{"size":669,"mtime":1607049348908,"results":"28","hashOfConfig":"25"},{"size":91,"mtime":1607049348952,"results":"29","hashOfConfig":"25"},{"size":1064,"mtime":1607049348966,"results":"30","hashOfConfig":"25"},{"size":379,"mtime":1607049348995,"results":"31","hashOfConfig":"25"},{"size":35,"mtime":1607049348984,"results":"32","hashOfConfig":"25"},{"size":296,"mtime":1607049348961,"results":"33","hashOfConfig":"25"},{"size":39,"mtime":1607049348991,"results":"34","hashOfConfig":"25"},{"size":38,"mtime":1607049348977,"results":"35","hashOfConfig":"25"},{"size":56,"mtime":1607049348948,"results":"36","hashOfConfig":"25"},{"size":395,"mtime":1607049348980,"results":"37","hashOfConfig":"25"},{"size":685,"mtime":1607049348987,"results":"38","hashOfConfig":"25"},{"size":2412,"mtime":1607049348971,"results":"39","hashOfConfig":"25"},{"size":35,"mtime":1607049348934,"results":"40","hashOfConfig":"25"},{"size":40,"mtime":1607049348943,"results":"41","hashOfConfig":"25"},{"size":45,"mtime":1607049348926,"results":"42","hashOfConfig":"25"},{"size":35,"mtime":1607049348918,"results":"43","hashOfConfig":"25"},{"size":487,"mtime":1607049348929,"results":"44","hashOfConfig":"25"},{"size":1689,"mtime":1607049348938,"results":"45","hashOfConfig":"25"},{"size":816,"mtime":1607049348921,"results":"46","hashOfConfig":"25"},{"size":1685,"mtime":1607049348913,"results":"47","hashOfConfig":"25"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"x2z7md",{"filePath":"50","messages":"51","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"64","messages":"65","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"76","messages":"77","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"78","messages":"79","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"82","messages":"83","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"84","messages":"85","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"86","messages":"87","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"88","messages":"89","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"90","messages":"91","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\index.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\App.js",["94","95"],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\reportWebVitals.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\Routes.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\config\\historyRouter.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\context\\GlobalState.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\webservices\\index.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\Home\\index.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\context\\AppReducer.js",["96"],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\NotFound\\index.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\Details\\index.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\config\\api.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\Home\\Home.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\NotFound\\NotFound.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\views\\Details\\Details.js",["97"],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\Logo\\index.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\SearchBox\\index.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\CardRepository\\index.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\Card\\index.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\Logo\\Logo.js",["98"],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\SearchBox\\SearchBox.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\CardRepository\\CardRepository.js",[],"C:\\Users\\Kothe\\Desktop\\proyectos\\frontend-recruiting-hsa\\src\\components\\Card\\Card.js",[],{"ruleId":"99","severity":1,"message":"100","line":2,"column":8,"nodeType":"101","messageId":"102","endLine":2,"endColumn":12},{"ruleId":"99","severity":1,"message":"103","line":4,"column":18,"nodeType":"101","messageId":"102","endLine":4,"endColumn":24},{"ruleId":"104","severity":1,"message":"105","line":1,"column":1,"nodeType":"106","endLine":15,"endColumn":3},{"ruleId":"107","severity":1,"message":"108","line":18,"column":6,"nodeType":"109","endLine":18,"endColumn":12,"suggestions":"110"},{"ruleId":"111","severity":1,"message":"112","line":11,"column":9,"nodeType":"113","endLine":11,"endColumn":12},"no-unused-vars","'Home' is defined but never used.","Identifier","unusedVar","'routes' is defined but never used.","import/no-anonymous-default-export","Assign arrow function to a variable before exporting as module default","ExportDefaultDeclaration","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'userRepo'. Either include it or remove the dependency array.","ArrayExpression",["114"],"jsx-a11y/anchor-is-valid","The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md","JSXOpeningElement",{"desc":"115","fix":"116"},"Update the dependencies array to be: [user, userRepo]",{"range":"117","text":"118"},[698,704],"[user, userRepo]"]
76 changes: 75 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,75 @@
.DS_Store
psd
thumb
sketch

# local env
.env

### Sass ###
.sass-cache/
*.css.map
*.sass.map
*.scss.map

.eslintcache

### VisualStudioCode ###
.vscode/*
!.vscode/tasks.json
!.vscode/launch.json
*.code-workspace

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,react,windows,macos,sass# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
70 changes: 70 additions & 0 deletions DEVELOPERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
Loading