{"id":21459760,"url":"https://github.com/stepanzubkov/bakery","last_synced_at":"2025-03-17T04:24:13.420Z","repository":{"id":110684924,"uuid":"476835663","full_name":"stepanzubkov/Bakery","owner":"stepanzubkov","description":"Flask website for bakery.","archived":false,"fork":false,"pushed_at":"2022-07-12T10:25:01.000Z","size":12584,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T14:15:17.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/stepanzubkov.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":"2022-04-01T18:52:39.000Z","updated_at":"2022-11-15T17:28:52.000Z","dependencies_parsed_at":"2023-07-15T22:15:20.863Z","dependency_job_id":null,"html_url":"https://github.com/stepanzubkov/Bakery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanzubkov%2FBakery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanzubkov%2FBakery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanzubkov%2FBakery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanzubkov%2FBakery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stepanzubkov","download_url":"https://codeload.github.com/stepanzubkov/Bakery/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243971687,"owners_count":20376874,"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":[],"created_at":"2024-11-23T06:31:52.080Z","updated_at":"2025-03-17T04:24:13.382Z","avatar_url":"https://github.com/stepanzubkov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bakery - website on flask\n\nThis is a site for an American bakery. You can familiarize yourself with the functionality.\n\n## Run app\n\nFor this website i use docker and you can simply run this app in one line\n\n```bash\ndocker-compose up -d --build\n```\n\nThe container will run in background (option -d) and you can easy run different commands, like 'bash' or 'ls', with 'docker-compose exec'\n\nIf you want insert into db test data, you must run this command:\n\n```bash\ndocker-compose exec -w /app app sh\n```\n\nThen, type:\n\n```bash\nflask db upgrade\npython test_data.py\n```\n\nBlog page will show youtube videos from channel only when you spicify the access token.\nYou should create file 'youtube_token.txt' and place youtube access key into this file.\nSee https://console.cloud.google.com/ to do this.\n\n## Migrations\n\nFor editing DB tables on python, i use migrations with flask-migrate. You can easy create your own DB's versions.\n\nUse this command to get the cli in the container:\n\n```bash\ndocker-compose exec -w /app app sh\n```\n\nAnd, you can upgrade db:\n\n```bash\nflask db upgrade\n```\n\nIf you want to create your own migration, you must edit db models and run this command in the container:\n\n```bash\nflask db migrate -m \"My migration message\"\n```\n\n## Tests\n\nFor tests, you should run the app.\nThen, go to the tests folder and run tests with following commands:\n\n```bash\ncd tests\npytest\n```\n\nRun single test, for example:\n\n```bash\npytest api/test_products.py\n\n```\n\n## Contribution\n\nIf you want to contribute, please write me (contacts in bio)\n\n### Good luck :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepanzubkov%2Fbakery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepanzubkov%2Fbakery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepanzubkov%2Fbakery/lists"}