{"id":15544342,"url":"https://github.com/mhdez221993/countries_api","last_synced_at":"2026-04-28T08:37:48.230Z","repository":{"id":40451199,"uuid":"489073585","full_name":"Mhdez221993/countries_api","owner":"Mhdez221993","description":"This API has 5 end points where the first 3 are for authentication and the other 2 return one or all countries for a given string","archived":false,"fork":false,"pushed_at":"2022-05-07T21:18:52.000Z","size":212,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-03T12:35:04.763Z","etag":null,"topics":["authentication","jwt","nodejs","resful-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Mhdez221993.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}},"created_at":"2022-05-05T17:50:33.000Z","updated_at":"2022-05-17T23:37:51.000Z","dependencies_parsed_at":"2022-08-09T20:51:09.022Z","dependency_job_id":null,"html_url":"https://github.com/Mhdez221993/countries_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mhdez221993/countries_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mhdez221993%2Fcountries_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mhdez221993%2Fcountries_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mhdez221993%2Fcountries_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mhdez221993%2Fcountries_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mhdez221993","download_url":"https://codeload.github.com/Mhdez221993/countries_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mhdez221993%2Fcountries_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32373512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["authentication","jwt","nodejs","resful-api"],"created_at":"2024-10-02T12:30:11.542Z","updated_at":"2026-04-28T08:37:43.217Z","avatar_url":"https://github.com/Mhdez221993.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Restcountries API\n\nThis API has 5 end points where the first 3 are for authentication and the other 2 return one or all countries for a given string\n\n- `/api/v1/auth/signup` --\u003e  signup takes name, email and password and save them to postgrestsql on heroku.\n- `/api/v1/auth/login` --\u003e  login takes email and password and authenticate the user returning a token.\n- `/api/v1/auth/logout` --\u003e  logout destroy the user session by removing the token from the cookies.\n- `/api/v1/countries/search-all`  --\u003e  search-all return all the contries tha match a givent string.\n- `/api/v1/countries/search-one`  --\u003e  search-one return one contriy tha match a givent string.\n\n![api](https://user-images.githubusercontent.com/67757001/165146174-f64f71ca-e6ef-4bb5-8c06-8e278e40d495.jpg)\n\n## Built With\n\n- Node\n- Jest\n- JWT\n- Supertest\n\n## Getting Started\n\nTo get a local copy up and running follow these simple example steps.\n\nRun in your terminal `git clone git@github.com:Mhdez221993/restcountries_api.git`\n\n## Start the app\n\n```\nnpm run dev\n```\n\n## Start studio to check the user been saved in the database\n\n```\nnpm run studio\n```\n\n## Run some test\n\n```\nnpm run test\n```\n\n## Helpful links\n\n- [Crafting authentication schemes with Prisma in Express](https://blog.logrocket.com/crafting-authentication-schemes-with-prisma-in-express/)\n- [Hashing passwords in NodeJS with bcrypt](https://sebhastian.com/bcrypt-node/)\n- [How to Build an Authentication API with JWT Token in Node.js](https://www.section.io/engineering-education/how-to-build-authentication-api-with-jwt-token-in-nodejs/)\n- [cors compatibility](https://github.com/expressjs/cors)\n- [forms-validation](https://react-bootstrap.github.io/forms/validation/)\n\n## Authors\n\n👤 **Moises Hernandez**\n\n- GitHub: [@Mhdez221993](https://github.com/Mhdez221993)\n- Twitter: [@MoisesH42060050](https://twitter.com/MoisesH42060050)\n- LinkedIn: [Moises Hernandez Coronado](https://www.linkedin.com/in/moises-hernandez-9bbb17145/)\n\n## Contributing\n\nContributions, issues, and feature requests are welcome!\n\nFeel free to check the [issues page](https://github.com/Mhdez221993/restcountries_api/issues).\n\n## Show your support\n\nGive a ⭐️ if you like this project!\n\n## Acknowledgments\n\n- To the [jobsqd](https://www.jobsqd.com/) for providing the test project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhdez221993%2Fcountries_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhdez221993%2Fcountries_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhdez221993%2Fcountries_api/lists"}