{"id":25774710,"url":"https://github.com/yanliu1111/flask-rest-api-project","last_synced_at":"2026-04-14T07:32:59.270Z","repository":{"id":236663183,"uuid":"623180677","full_name":"yanliu1111/flask-rest-api-project","owner":"yanliu1111","description":"🛒 Implemented an Order and Delivery Backend System with Database Management, including User Authentication and Staff Authorization. Streamlined Operations with Monitoring of Production Descriptions and Delivery Status.","archived":false,"fork":false,"pushed_at":"2025-08-22T04:11:46.000Z","size":418,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T06:23:27.111Z","etag":null,"topics":["flask-api","flask-jwt","flask-restx-api","postgresql","pytest","sqlite3"],"latest_commit_sha":null,"homepage":"https://flask-rest-api-project-rmrw.onrender.com/","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/yanliu1111.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":"2023-04-03T21:25:43.000Z","updated_at":"2025-08-22T04:11:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"918d7187-57e6-4cb2-97dc-96367233049f","html_url":"https://github.com/yanliu1111/flask-rest-api-project","commit_stats":null,"previous_names":["yanliu1111/flask-rest-api-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yanliu1111/flask-rest-api-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanliu1111%2Fflask-rest-api-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanliu1111%2Fflask-rest-api-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanliu1111%2Fflask-rest-api-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanliu1111%2Fflask-rest-api-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanliu1111","download_url":"https://codeload.github.com/yanliu1111/flask-rest-api-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanliu1111%2Fflask-rest-api-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31786872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flask-api","flask-jwt","flask-restx-api","postgresql","pytest","sqlite3"],"created_at":"2025-02-27T05:33:01.553Z","updated_at":"2026-04-14T07:32:59.264Z","avatar_url":"https://github.com/yanliu1111.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FLASK REST API PROJECT, deployed on Render.com\n\nDeployed in Render.com, check it out 👉 https://flask-rest-api-project-rmrw.onrender.com/\n\u003cbr\u003eDatabase transformation: SQLite -\u003e PostgreSQL\n\n## Tools and Technologies 🛠️:\n\nFlask, Flask-SQLAlchemy, Flask-JWT-Extended, Flask-RESTX, Python-Decouple, PyTest, SwaggerUI, Werkzeug, Unittest, Render.com, PostgreSQL, DB browser, SQLite\n\n## Practicing Include 📚:\n\n- Flask REST API with Python\n- Environment variables with Python-Decouple\n- JWT Authentication with Flask-JWT-Extended\n- Databases with Flask-SQLAlchemy\n- How to write Unit Tests with Unittest and PyTest\n- Documenting REST APIs with SwaggerUI and Flask-RESTX\n- Error Handling with Werkzeug\n\n## Basic Setup 🚀\n\nEnter the project folder and create a virtual environment\n\n```bash\n$ python -m venv env\n$ source env/bin/actvate #On linux Or Unix\n$ source env/Scripts/activate #On Windows\n$ pip install -r requirements.txt #Install all requirements\npython runserver.py #Run the server\n```\n\n## Changed the id type from integer to serial in the table\n\nNote: While transferring the database schema from SQLite to PostgreSQL, I encountered errors when signing up new users and creating new orders in SwaggerUI. After thorough troubleshooting, I discovered that PostgreSQL does not auto-increment the ID, unlike SQLite. To resolve this, I deleted the transformed old table in HeidiSQL, changed the ID type to serial, created a new table, inserted data, and implemented SQL auto-increment code in the table, which resolved the issue.\n\n## DEMO Time 🛒\n\n## Run the project in development environment\n\nDatabase: SQLite || Backend test tool: Thunder Client\u003cbr\u003e\nlocalhost http://127.0.0.1:5000/\n![screenshot1](screencut/flaskapi.jpg)\n\n## Run the project in production environment\n\n![screenshot1](screencut/SwaggerUITest.jpg)\n\n## 1. Signup a new user\n\n![screenshot1](screencut/signup.jpg)\n![screenshot1](screencut/signup2.jpg)\n\n## 2. Login with the user\n\n![screenshot1](screencut/login1.jpg)\n![screenshot1](screencut/login2.jpg)\n\n## 3. Authorization with JWT successfully\n\n\u003cimg src=\"screen/../screencut/jwt1.jpg\" alt=\"s\" width=\"400\" height=\"220\"\u003e\n\n\u003cimg src=\"screen/../screencut/jwt2.jpg\" alt=\"s\" width=\"400\" height=\"200\"\u003e\n\n## Reference:\n\n👍 **Very good Flask learning resource from Youtuber [Ssali Jonathan](https://www.youtube.com/watch?v=OEZxEY_wdN4\u0026list=PLEt8Tae2spYnFMndU9EM082imnnzke07J)** update\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanliu1111%2Fflask-rest-api-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanliu1111%2Fflask-rest-api-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanliu1111%2Fflask-rest-api-project/lists"}