{"id":19774604,"url":"https://github.com/yeukfei02/tropicalcycloneapi","last_synced_at":"2025-04-30T18:33:29.987Z","repository":{"id":53156318,"uuid":"293095636","full_name":"yeukfei02/tropicalCycloneApi","owner":"yeukfei02","description":"tropicalCycloneApi","archived":false,"fork":false,"pushed_at":"2022-03-23T14:59:08.000Z","size":93,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-09T16:14:00.384Z","etag":null,"topics":["celery","flask","postgres","python","redis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yeukfei02.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}},"created_at":"2020-09-05T14:48:43.000Z","updated_at":"2022-09-22T09:41:21.000Z","dependencies_parsed_at":"2022-09-09T15:51:39.733Z","dependency_job_id":null,"html_url":"https://github.com/yeukfei02/tropicalCycloneApi","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2FtropicalCycloneApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2FtropicalCycloneApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2FtropicalCycloneApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2FtropicalCycloneApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeukfei02","download_url":"https://codeload.github.com/yeukfei02/tropicalCycloneApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224219441,"owners_count":17275477,"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":["celery","flask","postgres","python","redis"],"created_at":"2024-11-12T05:13:24.513Z","updated_at":"2024-11-12T05:13:25.174Z","avatar_url":"https://github.com/yeukfei02.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tropicalCycloneApi\n\ntropicalCycloneApi\n\ndocumentation: \u003chttps://documenter.getpostman.com/view/3827865/TVCiSR7Z\u003e\n\n## Requirement\n\n- install python(3.8)\n- install pip3\n- install celery\n- install postgres\n- install redis\n\n## Testing and run\n\n```zsh\n// use requirements.txt\n$ pip3 install -r requirements.txt\n\n// run api\n$ python3 app.py\nor\n$ flask run\nor\n$ gunicorn app:app --reload\n\n// create db migration\n$ python3 manage.py db init\n$ python3 manage.py db migrate\n$ python3 manage.py db upgrade\n\n// run cron job\n$ celery worker -A app.celery --loglevel=info --purge\n$ celery beat -A app.celery --loglevel=info\n\n// check schedule job in flower dashboard\n$ flower -A app.celery --port=5555\nopen localhost:5555\n\n// run test case\n$ python3 src/test/main.test.py\n```\n\n## Docker\n\n```zsh\n// build images and start container in one line\ndocker-compose up -d --build\n\n// go inside container\ndocker exec -it \u003ccontainerId\u003e /bin/bash\n\n// check container logs\ndocker logs \u003ccontainerId\u003e\n\n// remove and stop container\ndocker-compose down\n```\n\nopen localhost:5000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeukfei02%2Ftropicalcycloneapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeukfei02%2Ftropicalcycloneapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeukfei02%2Ftropicalcycloneapi/lists"}