{"id":21036505,"url":"https://github.com/moemoe89/simple-api-flask","last_synced_at":"2026-04-05T20:40:42.045Z","repository":{"id":39829917,"uuid":"254769720","full_name":"moemoe89/simple-api-flask","owner":"moemoe89","description":"🐍 This repo for practicing Simple API using Python (Flask Framework), PostgreSQL, Docker","archived":false,"fork":false,"pushed_at":"2023-05-01T21:39:17.000Z","size":68,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T16:18:15.048Z","etag":null,"topics":["docker","flask","postgresql","python","python-3"],"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/moemoe89.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":"2020-04-11T01:26:21.000Z","updated_at":"2022-02-27T07:05:30.000Z","dependencies_parsed_at":"2024-11-19T13:21:33.043Z","dependency_job_id":"6d62d1c0-e144-4ff4-aef6-17796915528c","html_url":"https://github.com/moemoe89/simple-api-flask","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/moemoe89%2Fsimple-api-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fsimple-api-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fsimple-api-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fsimple-api-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moemoe89","download_url":"https://codeload.github.com/moemoe89/simple-api-flask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243476692,"owners_count":20296930,"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":["docker","flask","postgresql","python","python-3"],"created_at":"2024-11-19T13:20:26.600Z","updated_at":"2025-12-28T20:11:21.317Z","avatar_url":"https://github.com/moemoe89.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-api-flask #\nSimple API Flask using Python as Programming Language (Flask Framework), PostgreSQL as Database\n\n### Requirements\nSimple API is currently extended with the following requirements. Instructions on how to use them in your own application are linked below.\n\n| Requirement | Version    |\n| ----------- | ---------- |\n| Python      | \u003e= 3.7.7   |\n| PIP         | \u003e= 20.0.2  |\n| Flask       | \u003e= 1.1.2   |\n| PosgtreSQL  | \u003e= 12.0    |\n\n### Setup\n* Setup Python \u003chttps://www.python.org/\u003e\n* Setup PIP \u003chttps://pypi.org/project/pip/\u003e\n* Setup Flask \u003chttps://flask.palletsprojects.com/\u003e\n* Setup PostgreSQL \u003chttps://www.postgresql.org/\u003e\n\n### Installation\nMake sure you the requirements above already install on your system. Or you could easily run with Docker to make your environment clean.\n\nClone the project to your directory and install the dependencies.\n```sh\n$ git clone git@github.com:moemoe89/simple-api-flask.git\n$ cd simple-api-flask\n$ pipenv install\n```\n\nSetup your environments.\n```sh\n$ cp .env.example .env\n```\nChange your PostgreSQL credentials depends on your PostgreSQL installed config.\n```sh\nFLASK_ENV=development\nDATABASE_URL=postgres://postgres@127.0.0.1:5432/simple_api\nJWT_SECRET_KEY=secret_key\n```\n\n### Migrate\nSetup your migration following by this command.\n```sh\n$ python3 manage.py db init\n$ python3 manage.py db migrate\n$ python3 manage.py db upgrade\n```\n\n### Run Application\nFor run application:\n```sh\n$ python3 run.py\n```\n\nVerify the apllication by navigating to your server address in your preferred browser.\n\n```sh\n127.0.0.1:5000\n```\n\n### Docker\nSimple API is very easy to install and deploy in a Docker container. Simply use the docker-compose build to build the image.\n\n```sh\n$ docker-compose build\n```\nOnce done, run the Docker image by using docker-compose up command.\n\n```sh\n$ docker-compose up -d\n```\n\nVerify the application by navigating to your server address in your preferred browser.\n\n```sh\n127.0.0.1:5000\n```\n\nStop application could be done with docker-compose stop command.\n```sh\n$ docker-compose stop\n```\n\nLicense\n----\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoemoe89%2Fsimple-api-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoemoe89%2Fsimple-api-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoemoe89%2Fsimple-api-flask/lists"}