diff --git a/staff/rafael-infante/playground/pokeapi/app.js b/staff/rafael-infante/playground/pokeapi/app.js new file mode 100644 index 000000000..ae3420422 --- /dev/null +++ b/staff/rafael-infante/playground/pokeapi/app.js @@ -0,0 +1,13 @@ +const btnApi = document.getElementById('btn-api') +const apiData = document.getElementById('api-data') + +const callApi = () => { + fetch('https://pokeapi.co/api/v2/pokemon/ditto') + .then((res) => res.json()) + .then((data) => { + apiData.innerText = JSON.stringify(data.base_experience) + }) + .catch((error) => console.error(new Error(error))) +} + +btnApi.addEventListener('click', callApi) diff --git a/staff/rafael-infante/playground/pokeapi/index.html b/staff/rafael-infante/playground/pokeapi/index.html new file mode 100644 index 000000000..107dd24fb --- /dev/null +++ b/staff/rafael-infante/playground/pokeapi/index.html @@ -0,0 +1,14 @@ + + + + + + Pokeapi + + + +

+ + + + diff --git a/staff/rafael-infante/project/doc/README.md b/staff/rafael-infante/project/doc/README.md index 1bb87c052..80475ff96 100644 --- a/staff/rafael-infante/project/doc/README.md +++ b/staff/rafael-infante/project/doc/README.md @@ -11,13 +11,19 @@ This is a Mobile app for elderly people who need some assistance at home. ### Use Cases Caregiver (User) -- -- + +- Create and publish help offers: Specify the type of help offer with the availability, address and price. +- Search for help requests: Browse active requests on the platform and communicate with assistance seekers. +- Submit offers: Send offers to assist an elder with specific needs. +- Manage profile: Update availability, view ratings, and manage completed tasks. +- Rate elders: Send a review with a rating of the elder. Elder (User) -- -- -- + +- Create help requests: Specify the type of assistance needed and publish requests. +- Search for assistance offers: Browse active offers on the platform and communicate with caregivers. +- Save the post of a specified caregiver. +- Rate the caregiver: Provide a feedback after receiving help. ### UXUI Design @@ -42,7 +48,7 @@ Elder (User) ### Techs - HTML/CSS/JS (...) -- React Native (...) +- React JS (...) - Node (...) - Express (...) - Mongo (...) @@ -52,20 +58,44 @@ Elder (User) ### Data Model User + +- id (uuid) - name (string) +- address (string) - email (string) - username (string) - password (string) +- rating (object) - role (string, enum: caregiver | elder) +- permission (string, enum: read | write) + +Rating + +- stars (number) +- reviews (string) + +Post + +- id (uuid) +- author (string) +- image (string) +- text(string) +- date (Date) +- comments (object) + +Comment + +- id (uuid) +- comment (string) ### Test Coverage ```sh ----------------------|---------|----------|---------|---------|------------------- -File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------------|---------|----------|---------|---------|------------------- -All files | 96.96 | 50 | 100 | 96.87 | - registerUser.js | 92.3 | 50 | 100 | 91.66 | 23 - registerUser.spec.js | 100 | 100 | 100 | 100 | +All files | 96.96 | 50 | 100 | 96.87 | + registerUser.js | 92.3 | 50 | 100 | 91.66 | 23 + registerUser.spec.js | 100 | 100 | 100 | 100 | ----------------------|---------|----------|---------|---------|------------------- ```