diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 00000000..d6a387ae --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "socialnetwork-15a5f" + } +} diff --git a/Readme.md b/Readme.md index ed84ec5c..d2657605 100644 --- a/Readme.md +++ b/Readme.md @@ -137,40 +137,44 @@ El objetivo de usar Firestore en este proyecto, es que aprendes a manejar y pers > - Se hicieron pruebas de usuabilidad y se implementó el feedback si se > consideró necesario. -## Objetivos de aprendizaje - -Antes de empezar el proyecto, recuerda agregar tus objetivos de aprendizaje pendientes de tu proyecto -anterior en la siguiente sección. +### Objetivos de aprendizajes pendientes Ania -### Objetivos de aprendizajes pendientes +[/] Diseñar la aplicación pensando y entendiendo al usuario. +[/] Planear y ejecutar tests de usabilidad. +[ ] Testear funciones (funciones puras). +[/] Manipular arrays (filter | map | sort | reduce). +[/] Manipular objects (key | value). +[ ] Entender la diferencia entre expression y statements. +[ ] Utilizar funciones (parámetros | argumentos | valor de retorno). +[ ] Entender la diferencia entre tipos de datos atómicos y estructurados. ### HTML y CSS -* [ ] [HTML semántico](https://developer.mozilla.org/en-US/docs/Glossary/Semantics#Semantics_in_HTML) +* [/] [HTML semántico](https://developer.mozilla.org/en-US/docs/Glossary/Semantics#Semantics_in_HTML) * [ ] [CSS `flexbox`](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) * [ ] Construir tu aplicación respetando el diseño realizado (maquetación). ### DOM y Web APIs -* [ ] [Manipulación dinámica del DOM](https://developer.mozilla.org/es/docs/Referencia_DOM_de_Gecko/Introducci%C3%B3n) +* [/] [Manipulación dinámica del DOM](https://developer.mozilla.org/es/docs/Referencia_DOM_de_Gecko/Introducci%C3%B3n) * [ ] [History API](https://developer.mozilla.org/es/docs/DOM/Manipulando_el_historial_del_navegador) * [ ] [`localStorage`] ### Javascript -* [ ] [Uso de callbacks](https://developer.mozilla.org/es/docs/Glossary/Callback_function) -* [ ] [Consumo de Promesas](https://scotch.io/tutorials/javascript-promises-for-dummies#toc-consuming-promises) -* [ ] Uso ES modules +* [/] [Uso de callbacks](https://developer.mozilla.org/es/docs/Glossary/Callback_function) +* [/] [Consumo de Promesas](https://scotch.io/tutorials/javascript-promises-for-dummies#toc-consuming-promises) +* [/] Uso ES modules ([`import`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) | [`export`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export)) ### Firebase -* [ ] [Firestore](https://firebase.google.com/docs/firestore) +* [/] [Firestore](https://firebase.google.com/docs/firestore) * [ ] [Firebase Auth](https://firebase.google.com/docs/auth/web/start) -* [ ] [Firebase security rules](https://firebase.google.com/docs/rules) -* [ ] [Uso de onSnapshot](https://firebase.google.com/docs/firestore/query-data/listen) +* [/] [Firebase security rules](https://firebase.google.com/docs/rules) +* [/] [Uso de onSnapshot](https://firebase.google.com/docs/firestore/query-data/listen) | [onAuthStateChanged](https://firebase.google.com/docs/auth/web/start#set_an_authentication_state_observer_and_get_user_data) ### Testing @@ -181,7 +185,7 @@ anterior en la siguiente sección. ### Colaboración en Github -* [ ] Branches +* [/] Branches * [ ] Pull Requests * [ ] Tags @@ -194,9 +198,162 @@ anterior en la siguiente sección. ### Buenas prácticas de desarrollo -* [ ] Modularización +* [/] Modularización * [ ] Nomenclatura / Semántica * [ ] Linting +## Objetivos de aprendizaje +### Objetivos de aprendizajes pendientes Liz + + +### HTML y CSS + +* [X] [HTML semántico](https://developer.mozilla.org/en-US/docs/Glossary/Semantics#Semantics_in_HTML) +* [X] [CSS flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) +* [X] Construir tu aplicación respetando el diseño realizado (maquetación). + +### DOM y Web APIs + +* [X] [Manipulación dinámica del DOM](https://developer.mozilla.org/es/docs/Referencia_DOM_de_Gecko/Introducci%C3%B3n) +* [ ] [History API](https://developer.mozilla.org/es/docs/DOM/Manipulando_el_historial_del_navegador) +* [ ] [localStorage] + +### Javascript + +* [X] [Uso de callbacks](https://developer.mozilla.org/es/docs/Glossary/Callback_function) +* [X] [Consumo de Promesas](https://scotch.io/tutorials/javascript-promises-for-dummies#toc-consuming-promises) +* [X] Uso ES modules +([import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) +| [export](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export)) + +### Firebase + +* [X] [Firestore](https://firebase.google.com/docs/firestore) +* [X] [Firebase Auth](https://firebase.google.com/docs/auth/web/start) +* [X] [Firebase security rules](https://firebase.google.com/docs/rules) +* [X] [Uso de onSnapshot](https://firebase.google.com/docs/firestore/query-data/listen) +| [onAuthStateChanged](https://firebase.google.com/docs/auth/web/start#set_an_authentication_state_observer_and_get_user_data) + +### Testing + +* [ ] [Testeo de tus funciones](https://jestjs.io/docs/es-ES/getting-started) +* [ ] [Testeo asíncrono](https://jestjs.io/docs/es-ES/asynchronous) +* [ ] [Mocking](https://jestjs.io/docs/es-ES/manual-mocks) + +### Colaboración en Github + +* [X] Branches +* [X] Pull Requests +* [ ] Tags + +### Organización en Github + +* [ ] Projects +* [ ] Issues +* [ ] Labels +* [ ] Milestones + +### Buenas prácticas de desarrollo + +* [X] Modularización +* [X] Nomenclatura / Semántica +* [X] Linting + +ITZEL PAOLA TAPIA +### HTML y CSS + +* [x] [HTML semántico](https://developer.mozilla.org/en-US/docs/Glossary/Semantics#Semantics_in_HTML) +* [x] [CSS `flexbox`](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) +* [x] Construir tu aplicación respetando el diseño realizado (maquetación). + +### DOM y Web APIs + +* [x] [Manipulación dinámica del DOM](https://developer.mozilla.org/es/docs/Referencia_DOM_de_Gecko/Introducci%C3%B3n) +* [-] [History API](https://developer.mozilla.org/es/docs/DOM/Manipulando_el_historial_del_navegador) +* [-] [`localStorage`] + +### Javascript + +* [-] [Uso de callbacks](https://developer.mozilla.org/es/docs/Glossary/Callback_function) +* [-] [Consumo de Promesas](https://scotch.io/tutorials/javascript-promises-for-dummies#toc-consuming-promises) +* [-] Uso ES modules +([`import`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) +| [`export`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export)) + +### Firebase + +* [-] [Firestore](https://firebase.google.com/docs/firestore) +* [x] [Firebase Auth](https://firebase.google.com/docs/auth/web/start) +* [-] [Firebase security rules](https://firebase.google.com/docs/rules) +* [-] [Uso de onSnapshot](https://firebase.google.com/docs/firestore/query-data/listen) +| [-]onAuthStateChanged](https://firebase.google.com/docs/auth/web/start#set_an_authentication_state_observer_and_get_user_data) + +### Testing + +* [ ] [Testeo de tus funciones](https://jestjs.io/docs/es-ES/getting-started) +* [ ] [Testeo asíncrono](https://jestjs.io/docs/es-ES/asynchronous) +* [ ] [Mocking](https://jestjs.io/docs/es-ES/manual-mocks) + +### Colaboración en Github + +* [x] Branches +* [x] Pull Requests +* [ -] Tags + +### Organización en Github + +* [ ] Projects +* [ ] Issues +* [ ] Labels +* [ ] Milestones + +### Buenas prácticas de desarrollo + +* [-] Modularización +* [x] Nomenclatura / Semántica +* [ ] Linting + +Jimena +## HTML y CSS + +* [x] [HTML semántico](https://developer.mozilla.org/en-US/docs/Glossary/Semantics#Semantics_in_HTML) +* [x] [CSS flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) +* [x] Construir tu aplicación respetando el diseño realizado (maquetación). + +### DOM y Web APIs + +* [ ] [Manipulación dinámica del DOM](https://developer.mozilla.org/es/docs/Referencia_DOM_de_Gecko/Introducci%C3%B3n) +* [ ] [History API](https://developer.mozilla.org/es/docs/DOM/Manipulando_el_historial_del_navegador) +* [ ] [localStorage] + +### Javascript + +* [ ] [Uso de callbacks](https://developer.mozilla.org/es/docs/Glossary/Callback_function) +* [ ] [Consumo de Promesas](https://scotch.io/tutorials/javascript-promises-for-dummies#toc-consuming-promises) +* [ x] Uso ES modules +([import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) +| [export](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export)) + +### Firebase + +* [ ] [Firestore](https://firebase.google.com/docs/firestore) +* [x ] [Firebase Auth](https://firebase.google.com/docs/auth/web/start) +* [ ] [Firebase security rules](https://firebase.google.com/docs/rules) +* [ ] [Uso de onSnapshot](https://firebase.google.com/docs/firestore/query-data/listen) +| [onAuthStateChanged](https://firebase.google.com/docs/auth/web/start#set_an_authentication_state_observer_and_get_user_data) + +### Testing + +* [ ] [Testeo de tus funciones](https://jestjs.io/docs/es-ES/getting-started) +* [ ] [Testeo asíncrono](https://jestjs.io/docs/es-ES/asynchronous) +* [ ] [Mocking](https://jestjs.io/docs/es-ES/manual-mocks) + +### Colaboración en Github + +* [ x] Branches +* [ ] Pull Requests +* [ ] Tags + + *** diff --git a/_mocks_/firebase-mock.js b/_mocks_/firebase-mock.js new file mode 100644 index 00000000..0623878b --- /dev/null +++ b/_mocks_/firebase-mock.js @@ -0,0 +1,34 @@ + +/* const firestore = { + auth: () => { + return { + signInWithPopup: (provider) => { + return new Promise((resolve, reject) => { + resolve('datauser') + + + }) + } + } + } +} */ +//Creando un mock manual +/* const firebase = { + auth: () => { + return { + signInWithPopup: (provider) => { + return new Promise((resolve, reject) => { + resolve('datauser') + + + }) + } + } + }, + + +} + +export default jest.fn(() => { + return firebase +}) */ \ No newline at end of file diff --git a/database.rules.json b/database.rules.json new file mode 100644 index 00000000..c0aa595d --- /dev/null +++ b/database.rules.json @@ -0,0 +1,6 @@ +{ + "rules": { + ".read": "auth != null", + ".write": "auth != null" + } +} \ No newline at end of file diff --git a/firebase.json b/firebase.json new file mode 100644 index 00000000..2dbc6cb3 --- /dev/null +++ b/firebase.json @@ -0,0 +1,16 @@ +{ + "database": { + "rules": "database.rules.json" + }, + "hosting": { + "public": "src", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ] + }, + "storage": { + "rules": "storage.rules" + } +} diff --git a/package.json b/package.json index 9a365577..dc2e931e 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,6 @@ "scripts": { "htmlhint": "htmlhint dist/*.html ", "eslint": "eslint --ext .js src/ test/", - "stylelint": "stylelint --aei src/**/*.css", - "pretest": "npm run htmlhint && npm run eslint && npm run stylelint", "test": "jest --coverage", "start": "serve src/" }, @@ -32,5 +30,8 @@ "serve": "^11.0.2", "stylelint": "^10.1.0", "stylelint-config-recommended": "^2.2.0" + }, + "dependencies": { + "bulma": "^0.8.2" } -} \ No newline at end of file +} diff --git a/src/404.html b/src/404.html new file mode 100644 index 00000000..829eda8f --- /dev/null +++ b/src/404.html @@ -0,0 +1,33 @@ + + +
+ + +The specified file was not found on this website. Please check the URL for mistakes and try again.
+This page was generated by the Firebase Command-Line Interface. To modify it, edit the 404.html file in your project's configured public directory.
+ Tale
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar + felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Morbi maximus, leo + sit amet vehicula eleifend, nunc dui porta orci, quis semper odio felis ut quam.
+*Escribe un microcuento*
*Ilustra un microcuento*
++Escribe e ilustra++
+