{"id":16175461,"url":"https://github.com/app-generator/api-server-flask-mongo","last_synced_at":"2026-04-27T20:33:00.528Z","repository":{"id":100502747,"uuid":"398485109","full_name":"app-generator/api-server-flask-mongo","owner":"app-generator","description":"Flask API Server - FlaskRestX / SQLite / MongoDB | AppSeed","archived":false,"fork":false,"pushed_at":"2022-12-01T16:16:38.000Z","size":32,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T18:49:21.283Z","etag":null,"topics":["api-rest","appseed","appseed-sample","flask"],"latest_commit_sha":null,"homepage":"https://appseed.us/boilerplate-code/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/app-generator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-08-21T06:32:02.000Z","updated_at":"2025-09-19T08:10:39.000Z","dependencies_parsed_at":"2023-05-15T11:15:46.874Z","dependency_job_id":null,"html_url":"https://github.com/app-generator/api-server-flask-mongo","commit_stats":null,"previous_names":[],"tags_count":4,"template":true,"template_full_name":null,"purl":"pkg:github/app-generator/api-server-flask-mongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fapi-server-flask-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fapi-server-flask-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fapi-server-flask-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fapi-server-flask-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/api-server-flask-mongo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fapi-server-flask-mongo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32354567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["api-rest","appseed","appseed-sample","flask"],"created_at":"2024-10-10T04:44:53.272Z","updated_at":"2026-04-27T20:33:00.511Z","avatar_url":"https://github.com/app-generator.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## [Flask API Server - Mongo](https://github.com/app-generator/api-server-flask-mongo)\n\nFlask Starter with JWT authentication, and **SQLite** persistance - Provided by **AppSeed** [App Generator](https://appseed.us/app-generator).\nIt has all the ready-to-use bare minimum essentials.\n\n\u003cbr /\u003e\n\n\u003e Features:\n\n- ✅ `Up-to-date dependencies` \n- ✅ [API Definition](https://docs.appseed.us/boilerplate-code/api-unified-definition) - the unified API structure implemented by this server\n- ✅ Simple JWT API powered by `flask-restx` and `flask_jwt_extended`\n- ✅ Authentication with JWT (JWT login, JWT logout, Register)\n- ✅ **Persistance**:  `MongoDB`\n- ✅ Unitary tests, Docker\n\n\u003cbr /\u003e\n\n\u003e Can be used with other [React Starters](https://appseed.us/apps/react) for a complete **Full-Stack** experience:\n\n| [React Node JS Berry](https://appseed.us/product/berry-dashboard/api-server-nodejs/react/) | [React Node Soft Dashboard](https://appseed.us/product/soft-ui-dashboard/api-server-nodejs/react/) | [React Node Horizon](https://appseed.us/product/horizon-ui/api-server-nodejs/) |\n| --- | --- | --- |\n| [![React Node JS Berry](https://user-images.githubusercontent.com/51070104/176936514-f1bccb21-bafe-4b43-9e4c-b6fe0ec9511d.png)](https://appseed.us/product/berry-dashboard/api-server-nodejs/react/) | [![React Node Soft Dashboard](https://user-images.githubusercontent.com/51070104/176936814-74386559-4e05-43d5-b9a4-8f70ce96a610.png)](https://appseed.us/product/soft-ui-dashboard/api-server-nodejs/react/) | [![React Node Horizon](https://user-images.githubusercontent.com/51070104/174428337-181e6dea-0ad9-4fe1-a35f-25e5fa656a9d.png)](https://appseed.us/product/horizon-ui/api-server-nodejs/)\n\n\u003cbr /\u003e\n\n![Flask API Server - Open-source Flask Starter provided by AppSeed.](https://user-images.githubusercontent.com/51070104/126349643-264d4cf4-6d0b-4c24-8185-adf69409fa4e.png)\n\n\u003cbr /\u003e\n\n## Table of Contents\n\n1. [Getting Started](#getting-started)\n2. [Project Structure](#project-structure)\n3. [Modules](#modules)\n4. [Testing](#testing)\n\n\n## Getting Started\n\nclone the project\n\n```bash\n$ git clone https://github.com/app-generator/api-server-flask-mongo.git\n$ cd api-server-flask-mongo\n```\n\ncreate virtual environment using python3 and activate it (keep it outside our project directory)\n\n```bash\n$ python3 -m venv /path/to/your/virtual/environment\n$ source \u003cpath/to/venv\u003e/bin/activate\n```\n\ninstall dependencies in virtualenv\n\n```bash\n$ pip install -r requirements.txt\n```\n\nsetup `flask` command for our app\n\n```bash\n$ export FLASK_APP=run.py\n$ export FLASK_ENV=development\n```\n\n\u003e Or for Windows-based systems\n\n```powershell\n$ (Windows CMD) set FLASK_APP=run.py\n$ (Windows CMD) set FLASK_ENV=development\n$\n$ (Powershell) $env:FLASK_APP = \".\\run.py\"\n$ (Powershell) $env:FLASK_ENV = \"development\"\n```\n\nstart test APIs server at `localhost:5000`\n\n```bash\n$ python run.py\n```\nor \n```bash\n$ flask run\n```\n\nuse `flask-restx`' swagger dashboard to test APIs, or use `POSTMAN`\n\n\n## Project Structure\n\n```bash\napi-server-flask/\n├── api\n│   ├── config.py\n│   ├── __init__.py\n│   ├── models.py\n│   └── routes.py\n├── Dockerfile\n├── README.md\n├── requirements.txt\n├── run.py\n└── tests.py\n```\n\n\u003cbr /\u003e\n\n## Docker\n\nOur docker image details are in `Dockerfile`\n\nTo build the docker image (replace app name between `\u003c \u003e` as per your requirment)\n\n```bash\n$ docker build -t \u003capi-server-flask-app\u003e:latest .\n```\n\nTo run the docker container\n\n```bash\n$ docker run -d -p 5000:5000 \u003capi-server-flask-app\u003e\n```\n\n\u003cbr /\u003e\n\n## Modules\n\nThis application uses the following modules\n\n - Flask==1.1.4\n - flask-restx==0.4.0\n - Flask-JWT-Extended\n - flask-mongoengine\n - pytest\n\n## Testing\n\nRun tests using `pytest tests.py`\n\n\u003cbr /\u003e\n\n---\n[Flask API Server - Mongo](https://github.com/app-generator/api-server-flask-mongo) - provided by AppSeed [App Generator](https://appseed.us)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fapi-server-flask-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fapi-server-flask-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fapi-server-flask-mongo/lists"}