{"id":18993794,"url":"https://github.com/laststylebender14/flash-sale","last_synced_at":"2026-05-03T10:39:55.163Z","repository":{"id":222326400,"uuid":"756907396","full_name":"laststylebender14/flash-sale","owner":"laststylebender14","description":"understanding how flash sale works","archived":false,"fork":false,"pushed_at":"2024-02-14T17:46:35.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-29T13:15:59.328Z","etag":null,"topics":["docker","docker-compose","go","golang","postgres","relational-databases","system-design"],"latest_commit_sha":null,"homepage":"","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/laststylebender14.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-02-13T14:42:52.000Z","updated_at":"2024-02-14T17:47:31.000Z","dependencies_parsed_at":"2024-02-13T16:41:32.338Z","dependency_job_id":"bc851fee-767c-44c1-8373-9c5567e3a7f0","html_url":"https://github.com/laststylebender14/flash-sale","commit_stats":null,"previous_names":["ranjitmahadik/flash-sale"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laststylebender14/flash-sale","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fflash-sale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fflash-sale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fflash-sale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fflash-sale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laststylebender14","download_url":"https://codeload.github.com/laststylebender14/flash-sale/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststylebender14%2Fflash-sale/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32566444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["docker","docker-compose","go","golang","postgres","relational-databases","system-design"],"created_at":"2024-11-08T17:23:02.736Z","updated_at":"2026-05-03T10:39:55.110Z","avatar_url":"https://github.com/laststylebender14.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flash Sale\n\n## Overview\nThis project implements a very simple but effective flash sale system, allowing users to purchase products at discounted prices for a limited time. The system is designed to be set up using Docker for easy deployment and management.\n\n## Setup\n### Prerequisites\n- Docker Installed: Ensure that Docker is installed on your system. Docker allows you to package and distribute applications and their dependencies as containers.\n\n### Setup Environment Variables\n\nTo configure the necessary environment variables for the project, follow these steps:\n\n1. Rename the example environment file provided (`example.env`) to `.env`. This file will contain the environment variables required for the project.\n\n    ```bash\n    mv example.env .env\n    ```\n\n   This command renames `example.env` to `.env`, ensuring that the environment variables are properly configured for your local environment.\n\n### Initializing PostgreSQL Instance\n1. Use the provided Docker Compose file to set up a PostgreSQL database instance.\n2. Run the following command in your terminal:\n\n```\ndocker compose up -d\n```\nThis command will start the PostgreSQL container in detached mode (-d), allowing it to run in the background.\n\n### Running the Project\n1. After initializing the PostgreSQL instance, proceed to run the project.\n2. Utilize the provided Makefile to simplify the process.\n3. Run the following command in your terminal:\n\n```\nmake run\n```\nThis command will execute the necessary steps to run the flash sale project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaststylebender14%2Fflash-sale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaststylebender14%2Fflash-sale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaststylebender14%2Fflash-sale/lists"}