{"id":20238682,"url":"https://github.com/dotpep/scalable-ecommerce-microservices","last_synced_at":"2025-07-13T00:39:48.962Z","repository":{"id":262606262,"uuid":"877525005","full_name":"dotpep/scalable-ecommerce-microservices","owner":"dotpep","description":"Scalable E-Commerce Backend Platform Microservices written in Golang, gRPC, API Gateway, Docker, K8s and etc. (https://roadmap.sh/projects/scalable-ecommerce-platform)","archived":false,"fork":false,"pushed_at":"2024-11-15T17:30:14.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T14:48:05.204Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/dotpep.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-10-23T19:54:08.000Z","updated_at":"2024-11-15T17:30:18.000Z","dependencies_parsed_at":"2024-11-13T10:34:39.793Z","dependency_job_id":"6946ac18-ad50-4ee9-a69a-5cb1313ecd7b","html_url":"https://github.com/dotpep/scalable-ecommerce-microservices","commit_stats":null,"previous_names":["dotpep/scalable-ecommerce-microservices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dotpep/scalable-ecommerce-microservices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotpep%2Fscalable-ecommerce-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotpep%2Fscalable-ecommerce-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotpep%2Fscalable-ecommerce-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotpep%2Fscalable-ecommerce-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotpep","download_url":"https://codeload.github.com/dotpep/scalable-ecommerce-microservices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotpep%2Fscalable-ecommerce-microservices/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265076118,"owners_count":23707513,"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":[],"created_at":"2024-11-14T08:35:20.794Z","updated_at":"2025-07-13T00:39:48.776Z","avatar_url":"https://github.com/dotpep.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Core Shop Service (Scalable E-Commerce Microservices)\n\nOne Paragraph of project description goes here\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n## TO DO\n\n- [ ] Use .env or config/main.yml file for giving PORT (to Dockerfile and etc)\n- [ ] Rename of .env variables\n- [ ] restructure to clean architecture\n- [ ] use .air.toml for watch in dockerfile\n- [ ] write endpoints for core-shop-service (routes) (repository)\n- [ ] write unit tests\n- [ ] write CI/CD\n- [ ] divide docker compose to two docker composes (app, storage) and also for staging (development, production)\n- [ ] connect swagger/openapi documentation\n\n---\n\n- [ ] docker compose (app for api) and (storage for postges)\n- [ ] dockerfile and docker compose stagging dev/prod\n- [ ] docker image to dockerhub for production\n\n## Notes\n\n### Docker\n\n- `docker exec -it core-shop-service-psql_bp-1 bash` (to troubleshoot inside container with bash)\n- `docker-compose down -v` deletes volumes (if you have error with /health endpoint that check connection of postgres database)\n\n### Powershell\n\n- `netstat` for checking networks and what port they are using\n- `ps` is alias for `Get-Process` for checking process that is running or just Task Manager\n\n---\n\nHow to find web/api-server that is running on specific `port`? and also stop this process.\n\nPORT=8080\nPID=16064\n\n1. `netstat -ano | findstr \u003cPORT\u003e` for finding the Process ID (PID)\n2. `Get-Process -Id \u003cPID\u003e` for verifying the Process is running\n3. `Stop-Process -Id \u003cPID\u003e -Force` for terminating the Process\n\nFull Example:\n\n```powershell\n# Find the process ID (PID) on port 8080\n$pid = (netstat -ano | findstr :8080 | ForEach-Object { $_ -split '\\s+' })[-1]\n\n# Verify the process (optional step)\nGet-Process -Id $pid\n\n# Kill the process\nStop-Process -Id $pid -Force\n```\n\n### Problems\n\nProblems that can occur:\n\n- port conflict of your LocalMachine Postgres with Docker Postgres (you need to modify: `BLUEPRINT_DB_PORT=5433` in `.env` - `psql_bp: ports: - \"${BLUEPRINT_DB_PORT}:5432\"` of `docker-compose.yml`)\n\n## MakeFile\n\nRun build make command with tests\n```bash\nmake all\n```\n\nBuild the application\n```bash\nmake build\n```\n\nRun the application\n```bash\nmake run\n```\nCreate DB container\n```bash\nmake docker-run\n```\nShow Logs\n```bash\nmake docker-logs\n```\n\nShutdown DB Container\n```bash\nmake docker-down\n```\n\nDB Integrations Test:\n```bash\nmake itest\n```\n\nLive reload the application:\n```bash\nmake watch\n```\n\nRun the test suite:\n```bash\nmake test\n```\n\nClean up binary from the last build:\n```bash\nmake clean\n```\n#","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotpep%2Fscalable-ecommerce-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotpep%2Fscalable-ecommerce-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotpep%2Fscalable-ecommerce-microservices/lists"}