{"id":25249799,"url":"https://github.com/mateuseap/python-with-flask","last_synced_at":"2026-04-30T16:34:40.613Z","repository":{"id":128956983,"uuid":"588407652","full_name":"mateuseap/python-with-flask","owner":"mateuseap","description":"Learning how to use Python with the microframework Flask","archived":false,"fork":false,"pushed_at":"2023-01-21T02:09:23.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T07:49:08.367Z","etag":null,"topics":["flask","postgresql","python","sqlalchemy"],"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/mateuseap.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-01-13T03:21:31.000Z","updated_at":"2023-08-13T22:46:20.000Z","dependencies_parsed_at":"2023-06-14T22:45:45.250Z","dependency_job_id":null,"html_url":"https://github.com/mateuseap/python-with-flask","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mateuseap/python-with-flask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateuseap%2Fpython-with-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateuseap%2Fpython-with-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateuseap%2Fpython-with-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateuseap%2Fpython-with-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mateuseap","download_url":"https://codeload.github.com/mateuseap/python-with-flask/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateuseap%2Fpython-with-flask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32470879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["flask","postgresql","python","sqlalchemy"],"created_at":"2025-02-12T03:50:56.455Z","updated_at":"2026-04-30T16:34:40.589Z","avatar_url":"https://github.com/mateuseap.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python with Flask\n\n## 🔧 Pre-requisites\n\nBefore running the project, you must have the following tool installed on your machine: \n* [Python v3.11.0](https://www.python.org/downloads/release/python-3110/)\n\nAlso, you will need to clone the repository:\n\n```bash\n## Cloning the repository\ngit clone https://github.com/mateuseap/python-with-flask\n## Entering the directory\ncd python-with-flask\n```\n## 🚀 Project setup\n\n### \u003e Setting the environment variables\n\nCreate a file named ``.env`` and copy and past in it what is inside the ``.env.example`` file (create the ``.env`` file in the same place that ``.env.example`` file is localized). After that, you'll need to change de ``DATABASE_URL`` variable value and put in it the URL of your own database, following the given structure: \n\n```bash\n## Database URL\npostgresql://username:password@host:port/database_name\n```\n\nYou can also change the ``API_KEY`` variable value, but if you leave the default value, the project will still work properly.\n\n### \u003e Running the app\n\nYou'll need to run the commands below:\n```bash\n## Creating a virtual environment\npython -m venv env\n.\\env\\Scripts\\activate\n## Upgrading the pip \npython -m pip install --upgrade pip\n## Installing dependencies\npip install -r .\\requirements.txt\n## Running the app\npython -m flask run\n```\n\nOpen [http://127.0.0.1:5000](http://127.0.0.1:5000) to view it in the browser.\n\n### \u003e Creating the database\n\nFirst, you'll need to open up a ``Python`` interactive shell:\n\n```bash\nflask shell\n```\n\nThe special shell above runs commands in the context of the ``Flask`` application, so that the ``Flask-SQLAlchemy`` functions called are connected to the application. After openning this shell, you'll just need write this in it to create the database:\n\n```Python\nfrom app import db, User\ndb.create_all()\nexit()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateuseap%2Fpython-with-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmateuseap%2Fpython-with-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateuseap%2Fpython-with-flask/lists"}