{"id":19113526,"url":"https://github.com/catalin246/flask-rest","last_synced_at":"2026-05-02T17:38:38.343Z","repository":{"id":224956058,"uuid":"764677677","full_name":"Catalin246/flask-rest","owner":"Catalin246","description":" This Flask web app offers a basic API with user authentication. It includes endpoints for managing tasks (todos), secured by JWT tokens for authorized access.","archived":false,"fork":false,"pushed_at":"2024-03-02T19:19:51.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T05:28:53.322Z","etag":null,"topics":["api","flask","jwt","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/Catalin246.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":"2024-02-28T14:14:16.000Z","updated_at":"2024-03-07T11:47:47.000Z","dependencies_parsed_at":"2024-03-02T16:25:51.059Z","dependency_job_id":"655787f7-83fc-4146-b497-588ed5c8418f","html_url":"https://github.com/Catalin246/flask-rest","commit_stats":null,"previous_names":["catalin246/flask-rest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Catalin246%2Fflask-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Catalin246%2Fflask-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Catalin246%2Fflask-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Catalin246%2Fflask-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Catalin246","download_url":"https://codeload.github.com/Catalin246/flask-rest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240170054,"owners_count":19759142,"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":["api","flask","jwt","python"],"created_at":"2024-11-09T04:36:32.899Z","updated_at":"2026-05-02T17:38:33.318Z","avatar_url":"https://github.com/Catalin246.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### FLASK RESTX BOILER-PLATE WITH JWT BUILD ON PYTHON 3.9\n\n### Terminal commands\nNote: make sure you have `pip` and `virtualenv` installed.\n    To run test: flask test\n\n    To run application: flask run\n\n\nMake sure to run the initial migration commands to update the database (from the venv!).\n\n    \u003e export FLASK_APP=manage.py\n    \n    \u003e flask db init\n\n    \u003e flask db migrate\n\n    \u003e flask db upgrade\n\n\n### Viewing the app ###\n    Open the following url on your browser to view swagger documentation\n    http://127.0.0.1:5000/\n\n\n### Using Postman / Insomnia ####\n    Authorization header is in the following format:\n\n    Key: Authorization\n    Value: \"token_generated_during_login\"\n\n    For testing authorization, url for getting all user requires an admin token while url for getting a single\n    user by public_id requires just a regular authentication.\n\n\n### Based on : Full description and guide (beware this guide targets an older python version!) ###\nhttps://medium.freecodecamp.org/structuring-a-flask-restplus-web-service-for-production-builds-c2ec676de563\n\n### Errors\n\n`export FLASK_APP=manage.py`\n\nflask shell\n\n\nfrom app.main.model.user import User\nimport datetime\nadmin = User(email=\"admin@admin.nl\", username=\"admin\", password=\"admin123\",registered_on=datetime.datetime.utcnow(), admin=True)\ndb.session.add(admin)\ndb.session.commit()\n\nfrom app.main.model.user import User\nimport datetime\nadmin = User(email=\"cata@admin.nl\", username=\"cata\", password=\"password\",registered_on=datetime.datetime.utcnow(), admin=True)\ndb.session.add(admin)\ndb.session.commit()","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalin246%2Fflask-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatalin246%2Fflask-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalin246%2Fflask-rest/lists"}