{"id":21541680,"url":"https://github.com/concretesolutions/desafio-node-espanol","last_synced_at":"2026-03-19T20:49:19.529Z","repository":{"id":70248440,"uuid":"198886441","full_name":"concretesolutions/desafio-node-espanol","owner":"concretesolutions","description":"Desafio de Node.js en castellano.","archived":false,"fork":false,"pushed_at":"2019-07-25T19:17:09.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T08:31:15.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/concretesolutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-25T18:59:37.000Z","updated_at":"2023-03-31T19:10:48.000Z","dependencies_parsed_at":"2023-03-01T05:45:29.809Z","dependency_job_id":null,"html_url":"https://github.com/concretesolutions/desafio-node-espanol","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concretesolutions%2Fdesafio-node-espanol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concretesolutions%2Fdesafio-node-espanol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concretesolutions%2Fdesafio-node-espanol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concretesolutions%2Fdesafio-node-espanol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/concretesolutions","download_url":"https://codeload.github.com/concretesolutions/desafio-node-espanol/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244123616,"owners_count":20401625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T05:07:16.133Z","updated_at":"2026-01-04T16:03:06.225Z","avatar_url":"https://github.com/concretesolutions.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Desafio Node.js\n\n## Requisitos:\n\n- Usar status codes REST.\n- Validar los datos de entrada.\n- Implementar JWT stateless.\n- Usar persistencia de datos.\n- Usar un linter (Eslint, Jshiint).\n- Usar frameworks como Express, Hapi o similares.\n- Deployar API en la nuve (heroku, next, aws, google cloud, etc).\n- El desafio deve entregarse en Github.\n\n## Deseado\n - Tests unitarios y de API.\n - Criptografia no reversível (hash) para password y token.\n\n## Registro de usuario (Sign up)\n\nEste endpoint deve recibir un objeto siguiendo el siguiente modelo:\n\n```\n{\n \"name\": \"string\",\n \"email\": \"string\",\n \"password\": \"string\",\n \"telephones\": [\n   {\n     \"number\": \"number\",\n     \"area_code\": \"number\"\n   }\n ]\n}\n```\n\nEn caso de exito retorna 200:\n\n```\n{\n \"id\": \"string\",\n \"created_at\": \"date\"\n \"modified_at\": \"date\"\n \n}\n```\n\nEn caso de error retornar status code y mensaje de error correspondiente.\n\n# Login de usuarios (Sign in)\n\nEste endpoint deve recibir un objeto con `email` y `password`\n\nEn caso que el email exista y el password sea igual al persistido, retorna un token JWT el cual deve incluir en el payload : `email`, `id`.\n\nEn caso de login inválido deve retornar 401 y mensaje de error apropiado.\n\n# Buscar usuario\n\nEste endpoint deve recibir un header:\n\n```\nHeader\nAuthorization: Bearer \u003ctoken\u003e\n```\n\nDonde  `token` es el retornado en el endpoint de login.\n\nEn caso de token inválido deve retornar 401 y mensaje de error apropiado.\n\nEn caso de exito retorna `email`, `id`, `telephones`, `created_at`, `modified_at`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcretesolutions%2Fdesafio-node-espanol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconcretesolutions%2Fdesafio-node-espanol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcretesolutions%2Fdesafio-node-espanol/lists"}