{"id":22441941,"url":"https://github.com/colinbut/user-service","last_synced_at":"2026-04-12T05:35:49.959Z","repository":{"id":69158683,"uuid":"121810491","full_name":"colinbut/user-service","owner":"colinbut","description":"A microservice that provides user functionality","archived":false,"fork":false,"pushed_at":"2018-10-28T08:42:33.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T10:16:18.964Z","etag":null,"topics":["activemq","cassandra","cassandra-driver","docker","docker-compose","java","jetty","jetty-server","microservice","spring","spring-framework","spring-jms","spring-web","spring-web-mvc","springframework"],"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/colinbut.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":"2018-02-16T23:07:09.000Z","updated_at":"2024-01-31T16:32:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"57d85153-6a9b-46aa-8d01-b60245bf8763","html_url":"https://github.com/colinbut/user-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/colinbut/user-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinbut%2Fuser-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinbut%2Fuser-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinbut%2Fuser-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinbut%2Fuser-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colinbut","download_url":"https://codeload.github.com/colinbut/user-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinbut%2Fuser-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31705574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T05:11:36.334Z","status":"ssl_error","status_checked_at":"2026-04-12T05:11:27.332Z","response_time":58,"last_error":"SSL_read: 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":["activemq","cassandra","cassandra-driver","docker","docker-compose","java","jetty","jetty-server","microservice","spring","spring-framework","spring-jms","spring-web","spring-web-mvc","springframework"],"created_at":"2024-12-06T02:16:55.597Z","updated_at":"2026-04-12T05:35:49.942Z","avatar_url":"https://github.com/colinbut.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Service\n\n[![Build Status](https://travis-ci.org/colinbut/user-service.svg?branch=master)](https://travis-ci.org/colinbut/user-service)\n\nMicroservice for user functionality. \n\nTechnologies:\n\n+ Java 7\n+ Spring Framework 4\n+ Jetty\n+ Datastax Cassandra Driver\n+ Apache Cassandra\n\n\nBuilt using Java with the Spring framework. It runs inside a Jetty server (a lightweight web container/server). Application connects to\nCassandra datastore (NoSQL)\n\nBelow:\n\n![Image of technology diagram](etc/diagram.png)\n\n\n### Build\n\n```bash\nmvn clean install\n```\n\n### Run locally\n\nThis method runs user-service locally in your own development machine with the use of a deployment facility in Docker.\n\n__Pre-requisite set up__\n\nUser Service microservice depends on the Cassandra DataStore.\n\n1. Download \u0026 Install Cassandra onto your machine\n2. Run the init-db.cql setup script contents under `src/main/resources/db/scripts`\n\nAssuming the artifact is built from the Build section then do the following:\n\nGo to Cassandra installed directory location and run the following script to start up Cassandra server.\n\n```bash\n./cassandra\n```\n\nLastly, run the microservice\n\n```bash\njava -jar target/user-service-1.0-SNAPSHOT-with-dependencies.jar\n```\n\n### Deployment\n\n*** Note - this section is still WIP\n\n#### using Docker Compose\n\n```bash\nrm docker/user-service-1.0-SNAPSHOT-with-dependencies.jar\ncp target/user-service-1.0-SNAPSHOT-with-dependencies.jar docker/\ncd docker;\ndocker-compose up\n```\n\n#### Bringing User Service + Cassandra DB up individually\n\nCassandra needs to be startup first as the microservice will try to connect to it on startup.\n\n__Cassandra DB__\n\n```bash\ncd docker;\ndocker build -f dockerfiles/cassandra.db -t cassandra-db:1.0-SNAPSHOT .\ndocker run cassandra-db:1.0-SNAPSHOT\n```\n\n__User Service__\n\n```bash\nrm docker/user-service-1.0-SNAPSHOT-with-dependencies.jar\ncp target/user-service-1.0-SNAPSHOT-with-dependencies.jar docker/\ncd docker;\ndocker build -f dockerfiles/userservice.app -t user-service:1.0-SNAPSHOT .\ndocker run user-service:1.0-SNAPSHOT\n```\n\nthen link the two containers together so the User Service microservice can talk to the Cassandra db.\n\n```bash\ndocker run --link cassandra-db:1.0-SNAPSHOT --name user-service:1.0-SNAPSHOT -p 8080:8080 user-service:1.0-SNAPSHOT\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinbut%2Fuser-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolinbut%2Fuser-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinbut%2Fuser-service/lists"}