{"id":17366800,"url":"https://github.com/eldsonc/backend-country","last_synced_at":"2025-08-02T14:31:37.268Z","repository":{"id":257071847,"uuid":"857247166","full_name":"EldsonC/backend-country","owner":"EldsonC","description":"Backend CountrySearch","archived":false,"fork":false,"pushed_at":"2024-09-14T06:42:00.000Z","size":6856,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-17T02:04:54.861Z","etag":null,"topics":["axios","cors","dotenv","express","nodejs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/EldsonC.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":"2024-09-14T06:27:36.000Z","updated_at":"2024-09-14T06:42:03.000Z","dependencies_parsed_at":"2024-09-14T18:25:56.633Z","dependency_job_id":null,"html_url":"https://github.com/EldsonC/backend-country","commit_stats":null,"previous_names":["eldsonc/backend-country"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EldsonC%2Fbackend-country","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EldsonC%2Fbackend-country/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EldsonC%2Fbackend-country/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EldsonC%2Fbackend-country/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EldsonC","download_url":"https://codeload.github.com/EldsonC/backend-country/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228480212,"owners_count":17926890,"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":["axios","cors","dotenv","express","nodejs","typescript"],"created_at":"2024-10-15T22:05:02.729Z","updated_at":"2024-12-06T14:42:07.300Z","avatar_url":"https://github.com/EldsonC.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Country Information API\n\n## Description\nThis backend API allows you to fetch information about countries, including:\n- All available countries.\n- Specific information about a country, including borders, population, and flag.\n\nThe API integrates with external services to gather data.\n\n## Technologies Used\n- **Languages**: TypeScript\n- **Frameworks/Libraries**: Express, Axios\n- **Other Tools**: CORS, dotenv\n\n## Installation\n\n### Prerequisites\n- **Node.js**\n- **Yarn** or **npm**\n\n### Installation Steps\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/EldsonC/backend-country.git\n    ```\n\n2. Navigate into the project directory:\n    ```bash\n    cd backend-country\n    ```\n\n3. Install the dependencies:\n    ```bash\n    yarn install\n    # or\n    npm install\n    ```\n\n4. Create the `.env` file with the following variables:\n    ```bash\n    ALL_COUNTRIES_URL=\"https://date.nager.at/api/v3/AvailableCountries\"\n    COUNTRY_INFO_URL=\"https://date.nager.at/api/v3/CountryInfo/\"\n    POPULATION_URL=\"https://countriesnow.space/api/v0.1/countries/population\"\n    FLAGS_URL=\"https://countriesnow.space/api/v0.1/countries/flag/images\"\n    PORT=3000\n    ```\n\n5. Start the project:\n    ```bash\n    yarn dev\n    # or\n    npm run dev\n    ```\n\n## API Endpoints\n\n### Get All Countries\n**GET** `/countries`\n\nReturns a list of all available countries.\n\n#### Response Example:\n```json\n[\n  {\n    \"commonName\": \"United States\",\n    \"officialName\": \"United States of America\"\n  },\n  {\n    \"commonName\": \"Brazil\",\n    \"officialName\": \"Federative Republic of Brazil\"\n  }\n]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldsonc%2Fbackend-country","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldsonc%2Fbackend-country","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldsonc%2Fbackend-country/lists"}