{"id":24747804,"url":"https://github.com/iamfrerot/userverse","last_synced_at":"2025-03-23T02:15:44.056Z","repository":{"id":272820131,"uuid":"917829295","full_name":"iamfrerot/userverse","owner":"iamfrerot","description":"creating api for data analysis","archived":false,"fork":false,"pushed_at":"2025-03-03T20:20:43.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T21:26:35.042Z","etag":null,"topics":["data","data-analytics","spring-boot","users"],"latest_commit_sha":null,"homepage":"https://userverse.apidocumentation.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamfrerot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-01-16T18:11:58.000Z","updated_at":"2025-03-03T20:20:46.000Z","dependencies_parsed_at":"2025-01-16T20:47:04.701Z","dependency_job_id":"8dc524d1-2798-4d7f-9da5-e7eb08f77fd4","html_url":"https://github.com/iamfrerot/userverse","commit_stats":null,"previous_names":["iamfrerot/userverse"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamfrerot%2Fuserverse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamfrerot%2Fuserverse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamfrerot%2Fuserverse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamfrerot%2Fuserverse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamfrerot","download_url":"https://codeload.github.com/iamfrerot/userverse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245044583,"owners_count":20551903,"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":["data","data-analytics","spring-boot","users"],"created_at":"2025-01-28T05:17:46.777Z","updated_at":"2025-03-23T02:15:44.049Z","avatar_url":"https://github.com/iamfrerot.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Userverse \n\n## Overview\nUserverse is a Java-based application that uses Spring Boot and MongoDB. The project is built using Maven and is containerized using Docker. This project provides an API for data analysis.\n\n## Prerequisites\n- Java 17\n- Maven\n- Docker (optional, for containerization)\n\n## Configuration\nThe application configuration is managed through YAML files. The main configuration file is `application.yaml`, and environment-specific configurations can be found in files like `application-dev.yaml`.\n\n### `application.yaml`\n```yaml\nserver:\n  port: ${PORT:2000}\nspring:\n  application:\n    name: userverse\n  profiles:\n    active: ${PROFILE:dev}\n```\n\n### `application-dev.yaml`\n```yaml\nspring:\n  data:\n    mongodb:\n      database: ${MONGODB_DATABASE:userverse}\n      uri: ${MONGODB_URI:mongodb://localhost:27017}}\n```\n\n### `application-prod.yaml`\n```yaml\nspring:\n  data:\n    mongodb:\n      database: ${MONGODB_DATABASE}\n      uri: ${MONGODB_URI}\n```\n\n## Building the Project\nTo build the project, run the following command:\n```sh\n./mvnw clean install\n```\n\n## Running the Application\nTo run the application, use the following command:\n```sh\n./mvnw spring-boot:run\n```\n\n## Docker Support\nThe project includes a `Dockerfile` for containerization.\n\n### Building the Docker Image\nTo build the Docker image, run:\n```sh\ndocker build -t userverse .\n```\n\n### Running the Docker Container\nTo run the Docker container, use:\n```sh\ndocker run --name my_userverse -p 2000:2000 -e MONGODB_URI=mongodb://host.docker.internal:27017 userverse\n```\n\n## Endpoints\n\n### Example Endpoints\n\n- `GET /user`: Retrieves a list of users.\n- `GET /user/{id}`: Retrieves a user by ID.\n- `GET /user/profile/{userid}`: Get user profile by ID.\n- `GET /user/preference/{userid}`: Get user preferences by ID.\n- `POST /user/preference/{userid}`: Create a user preference.\n\n## .gitignore\nThe `.gitignore` file is configured to exclude build directories and IDE-specific files.\n\n## License\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamfrerot%2Fuserverse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamfrerot%2Fuserverse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamfrerot%2Fuserverse/lists"}