{"id":27050493,"url":"https://github.com/arjun-tp/address-mapper","last_synced_at":"2026-04-08T16:01:26.944Z","repository":{"id":281770023,"uuid":"946365544","full_name":"Arjun-tp/address-mapper","owner":"Arjun-tp","description":"It calculates the distance between addresses and provides a user-friendly interface. ","archived":false,"fork":false,"pushed_at":"2025-04-03T05:24:53.000Z","size":8093,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T09:49:30.708Z","etag":null,"topics":["bootstrap5","dockerfile","express","mongdb","nodejs","railway-app","svelte","sveltekit"],"latest_commit_sha":null,"homepage":"https://address-mapper-production-322e.up.railway.app","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/Arjun-tp.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,"zenodo":null}},"created_at":"2025-03-11T02:58:49.000Z","updated_at":"2025-04-03T05:12:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e29c063-ac02-40e3-b29b-cda3f0b4bf3b","html_url":"https://github.com/Arjun-tp/address-mapper","commit_stats":null,"previous_names":["arjun-tp/address-mapper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Arjun-tp/address-mapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arjun-tp%2Faddress-mapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arjun-tp%2Faddress-mapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arjun-tp%2Faddress-mapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arjun-tp%2Faddress-mapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arjun-tp","download_url":"https://codeload.github.com/Arjun-tp/address-mapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arjun-tp%2Faddress-mapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31562696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bootstrap5","dockerfile","express","mongdb","nodejs","railway-app","svelte","sveltekit"],"created_at":"2025-04-05T08:16:37.611Z","updated_at":"2026-04-08T16:01:26.907Z","avatar_url":"https://github.com/Arjun-tp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Address Mapper\n\n## Overview\nAddress-Mapper is a **full-stack web application** built with **SvelteKit (Frontend)**, **Node.js + Express (Backend)**, and **MongoDB (Database)**. It calculates the distance between addresses and provides a user-friendly interface.\nThis project supports **Docker deployment**, making it easy to set up locally and in production.\n\n![distanceCalculator.png](assets/distanceCalculator.png)\n\n## Getting Started\n\n\u003e Pre-requisite: Docker client should be running, envs should be added ( this will just make sure the third party apis are working )\n\n1. Clone the repo\n\n2. Add environment variables in /backend before running the project, create a `.env` file inside the `backend` folder and add the following variables:\n\n```bash\n  PORT=7004\n  MONGO_USERNAME= # MongoDB user name\n  MONGO_PASSWORD= # MongoDB password\n  MONGO_HOST= # MongoDB host\n  GOOGLE_API_KEY= # Google API key\n  ALLOWED_ORIGINS= # http://localhost:5173 for local development and testing\n```\n\n3. Update variable `API_URL` and set it to localhost url [web/src/config/constant.js](./web/src/config/constant.js)\n```bash\n   localHost url: http://localhost:7004\n```\n4. On project root terminal run \n```bash\n  make service\n```\n\n## Hosting \u0026 Deployment\nThe project is live and accessible at https://address-mapper-production-322e.up.railway.app.\n\nThe application is deployed using **Railway**, and **Docker** is used for containerization, ensuring reliable deployment environments\n\n## API Documentation\nYou can access swagger api-documentation at https://address-mapper-production.up.railway.app/api-docs/#/\n\nMake sure to change the server to production server while using the api-doc. \n\n## Tech Stack \u0026 Features\n\n| Category          | Technologies |\n|------------------|-------------------------------|\n| **Frontend**     | SvelteKit, Vite, Bootstrap |\n| **Backend**      | Node.js, Express.js |\n| **Database**     | MongoDB |\n| **Deployment**   | Docker, Docker Compose, Railway |\n| **Linting**      | ESLint, Prettier |\n| **APIs**        | Nominatim (Geocoding), Google API (Distance Calculation) |\n\n\n### Frontend\n- Built with **SvelteKit** and **Vite** for modern UI development\n- Uses **Bootstrap** for responsive design and styling\n\n### Backend\n- Secure and scalable **Node.js \u0026 Express.js** architecture\n- **Joi Middleware** for request validation and data integrity\n- API documentation with **Swagger**\n- **Retry Mechanism** to handle API failures gracefully\n- **Rate limiting, CORS, Helmet, and Joi validation** for security and performance\n- Proper test cases with **node:test**\n\n### Database\n- **MongoDB** for flexible document-based storage\n\n### Third-Party Integrations\n- **Nominatim API** for address-to-coordinates conversion\n- **Google API** for accurate distance calculations\n\n### Security \u0026 Performance\n- **Rate Limiting** to prevent abuse and throttling\n- **CORS Enabled** to handle cross-origin requests securely\n- **ESLint \u0026 Prettier** for code quality and formatting\n\n### Deployment \u0026 DevOps\n- **Dockerized Backend \u0026 Web** using **Docker Compose** for easy deployment\n- **Railway** for cloud hosting with auto-deployments\n- **Makefile** to consolidate commands\n\n\n## More commands \n\n```bash\n  make lint-backend\n```\nLint and Format the Backend Code.\nFixes ESLint errors in the backend code (backend/**/*.js).\nFormats code using Prettier for consistent styling.\n\n```bash\n  make start-backend\n```\nStarts the Backend. Navigates to the backend directory and starts the Node.js Express server.\nRuns on port 7004 by default.\n\n```bash\n  make start-web\n```\nStart the Frontend. Navigates to the web directory and starts the SvelteKit frontend.\nRuns the frontend on port 5173 by default.\n\n```bash\n  make service\n```\nStart the Full Application with Docker. Runs the entire application using Docker Compose.\n\n```bash\n  make service-build\n```\nBuilds all Docker containers without starting them. Useful if you want to prepare images before deployment.\n\n```bash\n  make service-stop\n```\nStops all running Docker containers gracefully.\n\n```bash\n  make test\n```\nStart running the backed test cases.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjun-tp%2Faddress-mapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farjun-tp%2Faddress-mapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjun-tp%2Faddress-mapper/lists"}