{"id":24438754,"url":"https://github.com/ezeparziale/flask-auth-google-template","last_synced_at":"2026-03-16T09:01:51.117Z","repository":{"id":159910156,"uuid":"526417424","full_name":"ezeparziale/flask-auth-google-template","owner":"ezeparziale","description":":key: Flask app with Google Auth login","archived":false,"fork":false,"pushed_at":"2025-03-03T10:08:31.000Z","size":132,"stargazers_count":5,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T17:53:22.254Z","etag":null,"topics":["bootstrap","flask","flask-login","google-auth","postgres","pydantic-v2","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/ezeparziale.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":"2022-08-19T00:50:56.000Z","updated_at":"2025-02-14T01:32:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"54592f86-8992-4e8c-9f0a-a707844b6812","html_url":"https://github.com/ezeparziale/flask-auth-google-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ezeparziale/flask-auth-google-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezeparziale%2Fflask-auth-google-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezeparziale%2Fflask-auth-google-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezeparziale%2Fflask-auth-google-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezeparziale%2Fflask-auth-google-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezeparziale","download_url":"https://codeload.github.com/ezeparziale/flask-auth-google-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezeparziale%2Fflask-auth-google-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260690914,"owners_count":23047101,"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":["bootstrap","flask","flask-login","google-auth","postgres","pydantic-v2","sqlalchemy"],"created_at":"2025-01-20T19:17:39.295Z","updated_at":"2026-03-16T09:01:51.111Z","avatar_url":"https://github.com/ezeparziale.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :key: Flask auth google template\n\nFlask app with Google auth login and postgres db\n\n## :floppy_disk: Installation\n\n\u003e [!IMPORTANT]\n\u003e Min Python version: 3.13\n\nClone this repo:\n\n```bash\ngit clone https://github.com/ezeparziale/flask-auth-google-template\n```\n\nCreate virtual environment:\n\n```bash\npython -m venv env\n```\n\nActivate environment:\n\n- Windows:\n\n```bash\n. env/scripts/activate\n```\n\n- Mac/Linux:\n\n```bash\n. env/bin/activate\n```\n\nUpgrade pip:\n\n```bash\npython -m pip install --upgrade pip\n```\n\nInstall requirements:\n\n```bash\npip install -r requirements-dev.txt\n```\n\nInstall pre-commit:\n\n```bash\npre-commit install\n```\n\n## :wrench: Config\n\nCreate `.env` and `.env.db` files. Check the examples `.env.example` and `.env.db.example`\n\n:globe_with_meridians: Google Auth credentials:\n\nCreate your app and obtain your `client_id` and `secret`:\n\n```http\nhttps://developers.google.com/workspace/guides/create-credentials\n```\n\n:construction: Before first run:\n\nRun `docker-compose` :whale: to start the database server\n\n```bash\ndocker compose -f \"compose.yaml\" up -d --build adminer db\n```\n\nand init the database with alembic:\n\n```bash\nalembic upgrade head\n```\n\n:key: How to create cert and key\n\nFor run the `option 2` or `option 3` you need a `cert.pem` and `key.pem`.\n\nCreate a self-signed certificate with openssl:\n\n```bash\nopenssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365\n```\n\n## :runner: Run\n\n### :1st_place_medal: Option 1\n\nRun the database with docker and the app with flask using a cert adhoc.\n\n- Database:\n\n```bash\ndocker compose -f \"compose.yaml\" up -d --build adminer db\n```\n\n- Flask app:\n\n```bash\nflask --debug run --cert=adhoc\n```\n\n### :2nd_place_medal: Option 2\n\nRun the database with docker and the app with flask using your certificate.\n\n- Database:\n\n```bash\ndocker compose -f \"compose.yaml\" up -d --build adminer db\n```\n\n- Flask app:\n\n```bash\nflask --debug run --cert=cert.pem --key=key.pem\n```\n\n### :3rd_place_medal: Option 3\n\nRun the database and the flask app with docker. This option use a cert and key.\nIn this option Flask run over gunicorn.\n\n- Database and flask app:\n\n```bash\ndocker compose -f \"compose.yaml\" up -d --build\n```\n\n## :pushpin: Features\n\n- [x] Google Auth login\n- [x] Sign up new users\n- [x] Bootstrap\n- [x] Flask\n- [x] Alembic\n- [x] Docker\n- [x] Docker compose\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezeparziale%2Fflask-auth-google-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezeparziale%2Fflask-auth-google-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezeparziale%2Fflask-auth-google-template/lists"}