{"id":25549752,"url":"https://github.com/matheusadc/sample-flask-auth","last_synced_at":"2026-04-30T16:31:24.497Z","repository":{"id":276617159,"uuid":"929791715","full_name":"MatheusADC/sample-flask-auth","owner":"MatheusADC","description":"Repository created to store the authentication API code with the database.","archived":false,"fork":false,"pushed_at":"2025-02-25T12:05:33.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T17:45:46.152Z","etag":null,"topics":["docker-compose","flask","flask-login","flask-sqlalchemy","python"],"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/MatheusADC.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":"2025-02-09T12:17:06.000Z","updated_at":"2025-02-25T12:05:36.000Z","dependencies_parsed_at":"2025-05-26T08:21:34.463Z","dependency_job_id":null,"html_url":"https://github.com/MatheusADC/sample-flask-auth","commit_stats":null,"previous_names":["matheusadc/sample-flask-auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MatheusADC/sample-flask-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatheusADC%2Fsample-flask-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatheusADC%2Fsample-flask-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatheusADC%2Fsample-flask-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatheusADC%2Fsample-flask-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatheusADC","download_url":"https://codeload.github.com/MatheusADC/sample-flask-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatheusADC%2Fsample-flask-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267814284,"owners_count":24148326,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker-compose","flask","flask-login","flask-sqlalchemy","python"],"created_at":"2025-02-20T10:19:49.921Z","updated_at":"2026-04-30T16:31:24.460Z","avatar_url":"https://github.com/MatheusADC.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"https://github.com/user-attachments/assets/caabfdf0-0f9e-44a3-8200-c6579fe87887\" alt=\"description icon\" width=\"28\"\u003e Description\nRepository created to store the authentication API code with the database.\n\n# \u003cimg src=\"https://github.com/user-attachments/assets/2bd91f82-43a7-44c6-8fb3-eaa3ca20089e\" alt=\"terminal icon\" width=\"28\"\u003e Commands\n\n## \u003cimg src=\"https://github.com/user-attachments/assets/9bd14bb5-8e8c-4050-ac18-1383038c84a5\" alt=\"books icon\" width=\"24\"\u003e Installing and updating dependencies\n```\npip install -r requirements.txt --upgrade\n```\n\n```\npip install bcrypt==4.1.2\n```\n\n## \u003cimg src=\"https://github.com/user-attachments/assets/f8992568-f0e4-4f98-84f1-c877ff0d471b\" alt=\"database icon\" width=\"24\"\u003e Creating a database\n### Using Flask commands\n```\nflask shell\n```\n\n### Indicating the creation of the database\n```\ndb.create_all()\n```\n\n### Recording the creation of the database\n```\ndb.session.commit()\n```\n\n### Exiting the terminal\n```\nexit()\n```\n\n## \u003csub\u003e\u003cimg src=\"https://img.icons8.com/?size=100\u0026id=92061\u0026format=png\u0026color=000000\" alt=\"database icon\" width=\"28\"\u003e\u003c/sub\u003e Deleting a database\n### Using Flask commands\n```\nflask shell\n```\n\n### Indicating the removal of the tables\n```\ndb.drop_all()\n```\n\n### Recording the removal of the database\n```\ndb.session.commit()\n```\n\n### Exiting the terminal\n```\nexit()\n```\n\n## \u003cimg src=\"https://github.com/user-attachments/assets/df9d2ef7-42e7-4454-ac81-c92832d0c6dc\" alt=\"user icon\" width=\"24\"\u003e Creating the user\n### Using Flask commands\n```\nflask shell\n```\n\n### Creating a user\n```\nuser = User(username=\"CHOSEN_USERNAME\", password=\"CHOSEN_PASSWORD\")\n```\n\n### Adding the user\n```\ndb.session.add(user)\n```\n\n### Recording the creation of the database\n```\ndb.session.commit()\n```\n\n### Exiting the terminal\n```\nexit()\n```\n\n## \u003csub\u003e\u003cimg src=\"https://github.com/user-attachments/assets/7578230c-47a3-41c6-ac71-3925ddb5fc20\" alt=\"Docker icon\" width=\"28\"\u003e\u003c/sub\u003e Container\n### Initialize and run a container\n```\ndocker-compose up\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusadc%2Fsample-flask-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatheusadc%2Fsample-flask-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusadc%2Fsample-flask-auth/lists"}