{"id":19912347,"url":"https://github.com/bwdmonkey/flask-psycopg2-starter","last_synced_at":"2025-05-03T03:31:29.960Z","repository":{"id":104623078,"uuid":"186482296","full_name":"bwdmonkey/flask-psycopg2-starter","owner":"bwdmonkey","description":"a flask psycopg2 server without SQLAlchemy","archived":false,"fork":false,"pushed_at":"2023-05-01T20:34:32.000Z","size":21,"stargazers_count":5,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T11:11:08.616Z","etag":null,"topics":["flask","postgresql","psycopg2","starter-kit"],"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/bwdmonkey.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":"2019-05-13T19:26:19.000Z","updated_at":"2024-03-25T08:50:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"69582213-ed4d-4cea-82e8-eefaf8cdb535","html_url":"https://github.com/bwdmonkey/flask-psycopg2-starter","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/bwdmonkey%2Fflask-psycopg2-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwdmonkey%2Fflask-psycopg2-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwdmonkey%2Fflask-psycopg2-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwdmonkey%2Fflask-psycopg2-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwdmonkey","download_url":"https://codeload.github.com/bwdmonkey/flask-psycopg2-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252137563,"owners_count":21700239,"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":["flask","postgresql","psycopg2","starter-kit"],"created_at":"2024-11-12T21:29:05.309Z","updated_at":"2025-05-03T03:31:29.955Z","avatar_url":"https://github.com/bwdmonkey.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-psycopg2-starter\n\nA starter kit including Flask and Psycopg2 without SQLAlchemy\n\n## Requirements\n\n- `Python\u003e=3.7.3` [General](https://www.python.org/downloads/release/python-373/)\n- `PostgreSQL\u003e=11.2` [General](https://www.postgresql.org/download/) [macOS](https://postgresapp.com/)\n\n## Installation\n\n```bash\n# flask-psycopg2-starter/\n$ make install\n[...]\n```\n\n## Routes\n\n```bash\n# flask-psycopg2-starter/\n$ flask routes\nEndpoint       Methods    Rule\n-------------  ---------  -----------------------\nauth.login     GET, POST  /auth/login\nauth.logout    GET        /auth/logout\nauth.register  GET, POST  /auth/register\nindex          GET        /\nstatic         GET        /static/\u003cpath:filename\u003e\n```\n\n## Production\n\nIf you are starting with this boilerplate to build an application for prod deployment, there is a `serve.py` that wraps the Flask application with a basic logger.\n\n## Issues\n\nIf you run into permission issues like below,\n\n```bash\n# flask-psycopg2-starter/\n$ make install\nvirtualenv venv\nmake: ./make-venv: Permission denied\nmake: *** [install] Error 1\n$ chmod +x make-venv # should fix the issue\n```\n\nIf you run into issues installing `psycopg2` on macOS, refer to [this StackOverflow post](https://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa). Personally, I had to set following flags such that compiler can find `openssl`:\n\n``` bash\nexport LDFLAGS=\"-L/usr/local/opt/openssl/lib\"\nexport CPPFLAGS=\"-I/usr/local/opt/openssl/include\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwdmonkey%2Fflask-psycopg2-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwdmonkey%2Fflask-psycopg2-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwdmonkey%2Fflask-psycopg2-starter/lists"}