{"id":16165996,"url":"https://github.com/luisnquin/blind-creator-test-core","last_synced_at":"2025-04-07T05:27:47.819Z","repository":{"id":166535882,"uuid":"639710947","full_name":"luisnquin/blind-creator-test-core","owner":"luisnquin","description":"The second project for the Blind Creator technical interview","archived":false,"fork":false,"pushed_at":"2023-05-17T03:20:29.000Z","size":149,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T09:46:10.524Z","etag":null,"topics":["restapi","technical-interview"],"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/luisnquin.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":"2023-05-12T03:57:55.000Z","updated_at":"2023-06-16T02:23:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"88aa82c4-b6ad-473f-940a-4a1cc0bbc332","html_url":"https://github.com/luisnquin/blind-creator-test-core","commit_stats":null,"previous_names":["luisnquin/blind-creator-test-core"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisnquin%2Fblind-creator-test-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisnquin%2Fblind-creator-test-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisnquin%2Fblind-creator-test-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisnquin%2Fblind-creator-test-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luisnquin","download_url":"https://codeload.github.com/luisnquin/blind-creator-test-core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247598588,"owners_count":20964496,"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":["restapi","technical-interview"],"created_at":"2024-10-10T02:52:54.041Z","updated_at":"2025-04-07T05:27:47.791Z","avatar_url":"https://github.com/luisnquin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GO BACKEND CHALLENGE API MICROSERVICE\n\n## 1. Get started\n\n```bash\n  create .env file in the root of the project with the following variables\n\n    DB_HOST=\n    DB_PORT=\n    DB_NAME=\n    DB_USER=\n    DB_PASS=\n    DB_ENGINE=\n    BASIC_AUTH_USERNAME=\n    BASIC_AUTH_PASSWORD=\n    SERVER_PORT=\n    CORS_WHITELIST=\n    SHOW_GORM_LOGS=\n    APPLY_MIGRATIONS=  \n  \n```\n\n## 2. DB Diagram\n\n```txt\nhttps://drive.google.com/file/d/1Knr1th8bGDwQvMLMgpX_F41EuMWsMxwC/view?usp=sharing\n```\n\n## 3. Postman\n\n```txt\nhttps://www.postman.com/blind-creator/workspace/github.com/luisnquin/blind-creator/test-core\n```\n\n## 4. Challenges\n\n- [x] Add metadata\n\n  We want to add an campaign_creator_social_network_actions array for each campaign in the list campaign response data\n\n  ```json\n  {\n      \"current_page\": 1,\n      \"data\": [\n          {\n              \"campaign_id\": 2,\n              \"campaign_created_at\": \"2023-05-03T17:29:25.534412-04:00\",\n              \"campaign_updated_at\": \"2023-05-03T17:29:25.534412-04:00\",\n              \"campaign_name\": \"test\",\n              \"campaign_initial_date\": \"2023-04-20T00:00:00Z\",\n              \"campaign_final_date\": \"2023-04-21T00:00:00Z\",\n              \"campaign_budget\": 100,\n              \"campaign_currency\": \"USD\",\n              \"campaign_agency_id\": 1,\n              \"campaign_manager_id\": 1,\n              \"campaign_company_id\": 1,\n              \"campaign_bundle_id\": 0,\n              \"manager_email\": \"cristian.mancilla96@gmail.com\",\n              \"manager_name\": \"Cristian\",\n              \"company_name\": \"Company Demo\",\n              \"company_email\": \"demo@demo.com\",\n              \"campaign_creator_social_network_actions\": [\n                  {\n                      \"action_code_name\": \"\",\n                      \"action_quantity\": 0,\n                      \"action_cost_price\": 0,\n                      \"action_cost_currency\": \"\",\n                      \"action_bundle_price\": 0,\n                      \"action_accepted_price\": 0,\n                      \"action_draft_content_status\": \"\",\n                      \"action_final_content_status\": \"\",\n                      \"action_upload_draft_content_date\": \"\",\n                      \"action_upload_final_content_date\": \"\",\n                      \"action_payment_condition\": \"\",\n                      \"action_creator_id\": 0,\n                      \"action_creator_name\": \"\",\n                      \"action_creator_avatar\": \"\",\n                      \"action_creator_email\": \"\",\n                      \"action_creator_social_network_id\": 0,\n                      \"action_creator_social_network_name\": \"\",\n                      \"action_creator_social_network_username\": \"\"\n                  },\n                  {\n                      \"action_code_name\": \"\",\n                      \"action_quantity\": 0,\n                      \"action_cost_price\": 0,\n                      \"action_cost_currency\": \"\",\n                      \"action_bundle_price\": 0,\n                      \"action_accepted_price\": 0,\n                      \"action_draft_content_status\": \"\",\n                      \"action_final_content_status\": \"\",\n                      \"action_upload_draft_content_date\": \"\",\n                      \"action_upload_final_content_date\": \"\",\n                      \"action_payment_condition\": \"\",\n                      \"action_creator_id\": 0,\n                      \"action_creator_name\": \"\",\n                      \"action_creator_avatar\": \"\",\n                      \"action_creator_email\": \"\",\n                      \"action_creator_social_network_id\": 0,\n                      \"action_creator_social_network_name\": \"\",\n                      \"action_creator_social_network_username\": \"\"\n                  }\n              ]\n          }\n      ],\n      \"page_size\": 1,\n      \"status\": \"SUCCESS\",\n      \"total_items\": 1,\n      \"total_pages\": 1\n  }\n  ```\n\n- [x] Advanced queries\n\n  We want to search campaigns by campaign_creator_social_network_actions.codename=INSTAGRAM_POST_PHOTO\n\n- [x] New routes\n\n  We want to have an POST endpoint to save campaign_creator_social_network_actions\n\n- [x] Optimization\n\n  We want to create 2 libraries core-models-private-library and core-utils-private-library and install them in the go.mod file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisnquin%2Fblind-creator-test-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisnquin%2Fblind-creator-test-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisnquin%2Fblind-creator-test-core/lists"}