Skip to content
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

Wizeline_project #26

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
f41ff17
adding my next and chakra project
JesusDuarte-inv Mar 20, 2021
eee1921
adding my next and chakra project
JesusDuarte-inv Mar 20, 2021
3288576
changin raedme
JesusDuarte-inv Mar 20, 2021
709c523
adding styled title
JDuarthe Mar 20, 2021
24635fd
adding challenge2 questions in readme
JDuarthe Mar 20, 2021
e8abedf
adding testing into my project
JDuarthe Mar 20, 2021
71713f3
updated json
JDuarthe Mar 20, 2021
594468b
config changes
JDuarthe Mar 20, 2021
97d7c1f
trying to solving the deploy problem
JDuarthe Mar 20, 2021
e27c133
Update src/components/Layout/Layout.jsx
JDuarthe Mar 24, 2021
65912d1
Update src/components/CardList/CardList.jsx
JDuarthe Mar 24, 2021
6e2a3b1
Update src/components/CardList/CardList.jsx
JDuarthe Mar 24, 2021
0cc639d
Update src/components/CardList/CardList.jsx
JDuarthe Mar 24, 2021
2f3f5a6
Update src/components/Navbar/NavBar.jsx
JDuarthe Mar 24, 2021
e031f33
challenge2 changes
JDuarthe Mar 27, 2021
501595c
fixing key
JDuarthe Mar 27, 2021
d375350
challenge3
Apr 2, 2021
55dab99
challenge4
Apr 15, 2021
7d0f191
updating production
Apr 22, 2021
d4bf7c2
challenge 5
May 3, 2021
453d238
adding next config
May 3, 2021
933e7c0
fixing deploy
May 3, 2021
c0fda13
fixing again the deploy
May 3, 2021
0422b89
trying to fix the deploy
May 3, 2021
676094a
another atempt
May 3, 2021
24acbb9
solving deploy issue
May 3, 2021
c1881d6
again
May 3, 2021
6677e62
another trying
May 3, 2021
02f86e5
another
May 3, 2021
31e43bf
another another try
May 3, 2021
89dafb3
another another another try
May 3, 2021
9553a57
whisper
May 3, 2021
fa5459c
whisper another
May 3, 2021
76a759f
last dance
May 3, 2021
486aea1
let me believe
May 3, 2021
c847868
another try whisper
May 3, 2021
b0eecbf
another error in deploy
May 3, 2021
d1bcb09
another another error deploy
May 3, 2021
104d6cd
bueno
May 3, 2021
48fe73f
a ver
May 3, 2021
de59204
asdasd
May 3, 2021
e1f3a2a
aaaaaaaaaaaa
May 3, 2021
7855b22
yolo
May 3, 2021
2b110c1
yolo1
May 3, 2021
14d9f02
here we go again
May 3, 2021
268810a
ola
May 3, 2021
d3a6ad9
cambio
May 3, 2021
25f5dd8
new changes for deploy
May 3, 2021
4787874
another try
May 3, 2021
afeef17
let me see
May 3, 2021
103c91e
come on
May 3, 2021
eb06913
close
May 3, 2021
8041307
this is it
May 3, 2021
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
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
API_KEY='AIzaSyBLF4iEDjnWFmKrhEtIetO5qRT2aKQqO4o'
17 changes: 0 additions & 17 deletions .eslintrc

This file was deleted.

5 changes: 5 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"env": {
"jest": true
}
}
19 changes: 15 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,31 @@
/node_modules
/.pnp
.pnp.js

node_modules
# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
# vercel
.vercel
9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# Wizeline Academy - 2021 React Bootcamp
# Wizeline Challenge with Next and chakra.

This example features how to use [chakra-ui](https://github.com/chakra-ui/chakra-ui) as the component library within a Next.js app.

## Challenge2 Questions
Using create-react-app, what do we need to set up for testing?
```bash
Nothing, create-react-app has all that you need to test with jest
```
What components are worth to test in your development?
```bash
All of them, at the very least, make sure the component renders without error.
```
Can you apply TDD once you already created components?
```bash
Sure, you have to test the components that you has created
```



## How to use

```bash
npm install
npm dev
# or
yarn
yarn dev
```

Please refere to the following [GIST](https://gist.github.com/erickwize/d7311bfc972080c162c43cbb7dc80587) for further instructions
20 changes: 20 additions & 0 deletions TestResult.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
PASS src/components/CardList/CardList.test.jsx
PASS src/components/Title/Title.test.jsx
PASS src/components/Navbar/NavBar.test.jsx
---------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
---------------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
Navbar | 100 | 100 | 100 | 100 |
NavBar.jsx | 100 | 100 | 100 | 100 |
SideMenu | 100 | 100 | 100 | 100 |
SideMenu.jsx | 100 | 100 | 100 | 100 |
Title | 100 | 100 | 100 | 100 |
Title.jsx | 100 | 100 | 100 | 100 |
---------------|---------|----------|---------|---------|-------------------

Test Suites: 3 passed, 3 total
Tests: 3 passed, 3 total
Snapshots: 0 total
Time: 4.997 s
Ran all test suites.
15 changes: 15 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
webpack: (config, { isServer }) => {
// Fixes npm packages that depend on `fs` module
if (!isServer) {
config.node = {
fs: 'empty',
}
}

return config
},
env: {
API_KEY: 'AIzaSyBLF4iEDjnWFmKrhEtIetO5qRT2aKQqO4o',
},
}
80 changes: 26 additions & 54 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,33 @@
{
"name": "react-certification-2020",
"name": "with-chakra-ui",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^10.4.9",
"@testing-library/user-event": "^12.1.3",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint ./src --ext .js,.jsx",
"lint:fix": "eslint ./src --ext .js,.jsx --fix"
},
"devDependencies": {
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.13",
"prettier": "^2.1.1",
"pretty-quick": "^3.0.0"
"dev": "next dev",
"build": "next build",
"start": "next start",
"test": "jest --watch"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"lint-staged": {
"*.{js, jsx, css, json}": [
"yarn run lint:fix",
"pretty-quick --staged",
"git add"
]
"dependencies": {
"@chakra-ui/icons": "^1.0.0",
"@chakra-ui/react": "^1.0.0",
"@emotion/react": "^11.0.0",
"@emotion/styled": "^11.0.0",
"axios": "^0.21.1",
"formik": "^2.2.6",
"framer-motion": "^2.9.4",
"next": "^10.0.9",
"next-page-tester": "^0.24.1",
"node-fetch": "^2.6.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-icons": "^4.2.0",
"react-router-dom": "^5.2.0",
"styled-components": "^5.2.1",
"yarn": "^1.22.10"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"license": "MIT",
"devDependencies": {},
"jest": {
"testEnvironment": "jsdom"
}
}
Binary file removed public/404.gif
Binary file not shown.
Binary file removed public/favicon.ico
Binary file not shown.
40 changes: 0 additions & 40 deletions public/index.html

This file was deleted.

Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

58 changes: 0 additions & 58 deletions src/components/App/App.component.jsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/App/index.js

This file was deleted.

Loading