{"id":18524782,"url":"https://github.com/prashant-chaurasia/stories","last_synced_at":"2026-04-13T14:33:28.171Z","repository":{"id":52673690,"uuid":"358730590","full_name":"Prashant-Chaurasia/stories","owner":"Prashant-Chaurasia","description":"A service that provides APIs to store image/video in the database, create background task using celery to resize/rescale image/video, get the resized image/video","archived":false,"fork":false,"pushed_at":"2023-04-22T10:21:16.000Z","size":475,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T14:08:55.210Z","etag":null,"topics":["celery","docker","docker-compose","flask","multipart-data","postgresql","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Prashant-Chaurasia.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,"zenodo":null}},"created_at":"2021-04-16T22:08:57.000Z","updated_at":"2023-04-22T07:13:59.000Z","dependencies_parsed_at":"2025-05-14T19:51:16.150Z","dependency_job_id":null,"html_url":"https://github.com/Prashant-Chaurasia/stories","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Prashant-Chaurasia/stories","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant-Chaurasia%2Fstories","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant-Chaurasia%2Fstories/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant-Chaurasia%2Fstories/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant-Chaurasia%2Fstories/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prashant-Chaurasia","download_url":"https://codeload.github.com/Prashant-Chaurasia/stories/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant-Chaurasia%2Fstories/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31757479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T13:27:56.013Z","status":"ssl_error","status_checked_at":"2026-04-13T13:21:23.512Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["celery","docker","docker-compose","flask","multipart-data","postgresql","python","redis"],"created_at":"2024-11-06T17:43:17.918Z","updated_at":"2026-04-13T14:33:28.147Z","avatar_url":"https://github.com/Prashant-Chaurasia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Demo service that provides endpoint to store image/video in the database, create background task using celery to resize/rescale image/video, get the resized image/video. \n\n#### Development Setup Without Docker\n\n##### Database setup \n- Create a psql database and run \n```\n  create schema stories_schema;\n```\n\n##### Redis server setup\nThis will be used by celery as message broker.\n\n- Open a new terminal and run the below commands to start redis-server\n```\n  curl -O https://download.redis.io/releases/redis-6.2.1.tar.gz\n  tar xzf redis-6.2.1.tar.gz\n  rm redis-6.2.1.tar.gz\n  cd redis-6.2.1\n  make\n  src/redis-server\n```\n\n##### Flask app setup \n\n- Open a new terminal and go to the service directory, and run the following - \n```\n  virtualenv -p python3.8 venv\n  source venv/bin/activate\n  pip install -r requirements.txt\n```\n- Update the **env.sh** file with the Postgresql **user, password, host, port and database name**.\n- After updating the env.sh file, run \n```\n  bash run_server.sh\n```\n  The above command will run the server and will also run a celery worker. Now you can hit the endpoints. \n  \n#### Development Setup With Docker\n\n- Open a terminal, go to the project directory and run -  \n```\ndocker-compose up (-d)\n```\n- You will see that the `server_*` is crashing, to fix this exec into the db container. \n```\n# Open a new terminal, list down all the container\ndocker ps\n\n# Pick the container with name stories_service_db_1 and run - \ndocker exec -it stories_service_db_1 psql -U postgres stories\n\n# Now inside the database run \ncreate schema stories_schema; \nexit\n\n```\n- Now you will see the server will restart and will be running. \n- If the server doesn't restarts, press Ctrl-C and run `docker-compose up` again. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashant-chaurasia%2Fstories","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprashant-chaurasia%2Fstories","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashant-chaurasia%2Fstories/lists"}