hrodri02 / tournaments-frontend

0 stars 0 forks source link

Develop Mock API with Faker.js for Backend Simulation #4

Closed angelroma closed 1 month ago

angelroma commented 1 month ago

Description:

Use Faker.js to generate realistic data for testing and development purposes within a React Native application. This mock API should include the entities and relationships as described in the diagram. The APIs should be created based on your considerations and needs, and we will iterate and improve them as needed.

References:

Example:

`import faker from 'faker';

const generateTeam = () => ({ id: faker.datatype.uuid(), name: faker.company.companyName(), });

// So then I can use the function to mock realistic data so I can test and developt future components. export const getTeams = () => { return Array.from({ length: 10 }, generateTeam); }; `