{"id":42959383,"url":"https://github.com/marceloxhenrique/url-shortener","last_synced_at":"2026-01-30T22:56:23.544Z","repository":{"id":323756932,"uuid":"1088329546","full_name":"marceloxhenrique/url-shortener","owner":"marceloxhenrique","description":"A Spring Boot URL shortening service that generates secure, random short URLs from long URLs.","archived":false,"fork":false,"pushed_at":"2025-11-26T22:47:27.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-29T17:52:06.583Z","etag":null,"topics":["java","postgresql","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/marceloxhenrique.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-02T18:58:07.000Z","updated_at":"2025-11-26T22:47:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/marceloxhenrique/url-shortener","commit_stats":null,"previous_names":["marceloxhenrique/url-shortener"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marceloxhenrique/url-shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceloxhenrique%2Furl-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceloxhenrique%2Furl-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceloxhenrique%2Furl-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceloxhenrique%2Furl-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marceloxhenrique","download_url":"https://codeload.github.com/marceloxhenrique/url-shortener/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceloxhenrique%2Furl-shortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28922223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T22:32:35.345Z","status":"ssl_error","status_checked_at":"2026-01-30T22:32:31.927Z","response_time":66,"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":["java","postgresql","spring-boot"],"created_at":"2026-01-30T22:56:22.894Z","updated_at":"2026-01-30T22:56:23.539Z","avatar_url":"https://github.com/marceloxhenrique.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShortURL App\n\nA simple URL shortening service built with **Spring Boot**. Generate short URLs from long URLs safely and efficiently.\n\n---\n\n## Features\n\n- Create short URLs using random Base62 codes\n\n---\n\n## Tech Stack\n\n- Java 17+\n- Spring Boot\n- Spring Data JPA\n- PostgreSQL\n- Maven\n\n---\n\n## Getting Started\n\n### Prerequisites\n\n- Java 17+\n- Maven\n- Git\n- PostgreSQL\n- Docker\n\n\n### Run Locally\n\n#### 1. Clone the repository:\n\n```bash\ngit clone https://github.com/marceloxhenrique/url-shortener.git\n```\n#### 2. Navigate to the project directory\n\n```bash\ncd url-shortener\n```\n\n#### 3. Install the project\n```bash\nmvn clean install\n```\n\n#### 4. Create .env file with environment variables\n```bash\nPOSTGRES_USER=youruser\nPOSTGRES_PASSWORD=yourpassword\nPOSTGRES_DATA_SOURCE=jdbc:postgresql://localhost:5433/urlshortener\nURL_BASE=http://localhost:8080\nPOSTGRES_DB=urlshortener\n```\n\n#### 4.1 Run PostgreSQL using Docker (optional)\nStart the database:\n```bash\ndocker-compose up -d\n```\nThis will start a PostgreSQL container with the environment variables defined in your .env file.\u003cbr\u003e\nThe database will be available at: localhost:5433\n\n#### 5 Setup application.properties\n\n```bash\nspring.application.name=urlshortener\n\nspring.sql.init.platform=postgres\n\nspring.datasource.username=${POSTGRES_USER}\nspring.datasource.password=${POSTGRES_PASSWORD}\nspring.datasource.url=${POSTGRES_DATA_SOURCE}\n\nurl.base=${URL_BASE}\n\nspring.jpa.hibernate.ddl-auto=update\nspring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true\n```\n\n#### 6. Running the application\n```bash\nmvn spring-boot:run\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarceloxhenrique%2Furl-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarceloxhenrique%2Furl-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarceloxhenrique%2Furl-shortener/lists"}