{"id":9829553,"url":"https://github.com/Aleena48/Alert-System","last_synced_at":"2025-08-28T16:31:19.780Z","repository":{"id":240319615,"uuid":"436887112","full_name":"Aleena48/Alert-System","owner":"Aleena48","description":"An Alert notification service is an application which can receive alerts from certain alerting systems like System_X and System_Y and send these alerts to developers in the form of SMS and emails.","archived":false,"fork":false,"pushed_at":"2021-12-16T06:36:08.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T07:29:44.021Z","etag":null,"topics":["docker","go","postgresql","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aleena48.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":"2021-12-10T07:19:43.000Z","updated_at":"2021-12-10T14:45:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"138189f8-f5dd-45c1-9d37-cb7332898209","html_url":"https://github.com/Aleena48/Alert-System","commit_stats":null,"previous_names":["aleena48/alert-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Aleena48/Alert-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleena48%2FAlert-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleena48%2FAlert-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleena48%2FAlert-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleena48%2FAlert-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aleena48","download_url":"https://codeload.github.com/Aleena48/Alert-System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleena48%2FAlert-System/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272522956,"owners_count":24949278,"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","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","go","postgresql","rest-api"],"created_at":"2024-05-18T01:42:10.824Z","updated_at":"2025-08-28T16:31:19.492Z","avatar_url":"https://github.com/Aleena48.png","language":"Go","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# Alert-System\n\nAn Alert notification service is an application which can receive alerts from certain alerting systems like System_X and System_Y and send these alerts to developers in the form of SMS and emails.\n\n## External Componest used:\n\n- **Postgres DB** (Data base)\n- **Postman** (RestAPI testing)\n\n## Pre-requisites:\n\n```bash\nfoo@bar:~$ docker pull postgres\nfoo@bar:~$ docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres\n```\n\n### DB Set Up:\n\n```sql\n-- To create a database\n\n-- Database: alertsystem\n\n-- DROP DATABASE IF EXISTS alertsystem;\n\nCREATE DATABASE alertsystem\n    WITH\n    OWNER = postgres\n    ENCODING = 'UTF8'\n    LC_COLLATE = 'en_US.utf8'\n    LC_CTYPE = 'en_US.utf8'\n    TABLESPACE = pg_default\n    CONNECTION LIMIT = -1;\n\n-- Table: public.developer\n\n-- DROP TABLE IF EXISTS public.developer;\n\nCREATE TABLE IF NOT EXISTS public.developer\n(\n    id bigint NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1000 MINVALUE 1000 MAXVALUE 10000000 CACHE 1 ),\n    full_name character varying COLLATE pg_catalog.\"default\",\n    email character varying COLLATE pg_catalog.\"default\",\n    mobile text COLLATE pg_catalog.\"default\",\n    CONSTRAINT developer_pkey PRIMARY KEY (id)\n)\n\nTABLESPACE pg_default;\n\nALTER TABLE IF EXISTS public.developer\n    OWNER to postgres;\n\n\n-- Table: public.message\n\n-- DROP TABLE IF EXISTS public.message;\n\nCREATE TABLE IF NOT EXISTS public.message\n(\n    id bigint NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1000 MINVALUE 1000 MAXVALUE 10000000 CACHE 1 ),\n    team_id bigint,\n    content character varying COLLATE pg_catalog.\"default\",\n    title character varying COLLATE pg_catalog.\"default\",\n    msg_time timestamp without time zone,\n    CONSTRAINT message_pkey PRIMARY KEY (id),\n    CONSTRAINT team_id FOREIGN KEY (team_id)\n        REFERENCES public.teams (id) MATCH SIMPLE\n        ON UPDATE NO ACTION\n        ON DELETE NO ACTION\n)\n\nTABLESPACE pg_default;\n\nALTER TABLE IF EXISTS public.message\n    OWNER to postgres;\n\n\n-- Table: public.teams\n\n-- DROP TABLE IF EXISTS public.teams;\n\nCREATE TABLE IF NOT EXISTS public.teams\n(\n    id bigint NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1000 MINVALUE 1000 MAXVALUE 99999999999999 CACHE 1 ),\n    name character varying COLLATE pg_catalog.\"default\",\n    dept_name character varying COLLATE pg_catalog.\"default\",\n    developer_ids bigint[],\n    CONSTRAINT teams_pkey PRIMARY KEY (id)\n)\n\nTABLESPACE pg_default;\n\nALTER TABLE IF EXISTS public.teams\n    OWNER to postgres;\n\n```\n\n## Build and Run:\n\n```bash\nfoo@bar:~$ git clone https://github.com/Aleena48/Alert-System.git\nfoo@bar:~$ cd Alert-System/cmd\nfoo@bar:~$ go build -o alertsystem\nfoo@bar:~$ ./alertsystem\n```\n\n## REST API Test:\n\nImport the attached alert-system.postman_collection.json file in postman for workspace.\nLogs are stored in logs folder for debugging.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAleena48%2FAlert-System","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAleena48%2FAlert-System","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAleena48%2FAlert-System/lists"}