├── .dockerignore ├── .env.example ├── .env.production ├── .flake8 ├── .github └── workflows │ ├── ci.yml │ └── deploy.yml ├── .gitignore ├── .pre-commit-config.yaml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── Makefile ├── Procfile ├── README.md ├── app ├── __init__.py ├── cli.py ├── config │ ├── __init__.py │ └── config.py ├── models │ ├── __init__.py │ ├── category.py │ ├── post.py │ └── tag.py ├── routes │ ├── __init__.py │ ├── health.py │ └── posts.py └── utils │ ├── __init__.py │ ├── errors.py │ ├── middleware.py │ ├── pagination.py │ └── rate_limiter.py ├── docker-compose.prod.yml ├── docker-compose.yml ├── examples ├── README.md ├── curl_examples.sh ├── javascript_client.js └── python_client.py ├── nginx ├── Dockerfile └── nginx.conf ├── postman_collection.json ├── pyproject.toml ├── pytest.ini ├── requirements.txt ├── run.py └── tests ├── __init__.py ├── conftest.py ├── test_health.py └── test_posts.py /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/.env.example -------------------------------------------------------------------------------- /.env.production: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/.env.production -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/.flake8 -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/Makefile -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: gunicorn run:app 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/README.md -------------------------------------------------------------------------------- /app/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/__init__.py -------------------------------------------------------------------------------- /app/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/cli.py -------------------------------------------------------------------------------- /app/config/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/config/__init__.py -------------------------------------------------------------------------------- /app/config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/config/config.py -------------------------------------------------------------------------------- /app/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/models/__init__.py -------------------------------------------------------------------------------- /app/models/category.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/models/category.py -------------------------------------------------------------------------------- /app/models/post.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/models/post.py -------------------------------------------------------------------------------- /app/models/tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/models/tag.py -------------------------------------------------------------------------------- /app/routes/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/routes/__init__.py -------------------------------------------------------------------------------- /app/routes/health.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/routes/health.py -------------------------------------------------------------------------------- /app/routes/posts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/routes/posts.py -------------------------------------------------------------------------------- /app/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/utils/__init__.py -------------------------------------------------------------------------------- /app/utils/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/utils/errors.py -------------------------------------------------------------------------------- /app/utils/middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/utils/middleware.py -------------------------------------------------------------------------------- /app/utils/pagination.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/utils/pagination.py -------------------------------------------------------------------------------- /app/utils/rate_limiter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/app/utils/rate_limiter.py -------------------------------------------------------------------------------- /docker-compose.prod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/docker-compose.prod.yml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/curl_examples.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/examples/curl_examples.sh -------------------------------------------------------------------------------- /examples/javascript_client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/examples/javascript_client.js -------------------------------------------------------------------------------- /examples/python_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/examples/python_client.py -------------------------------------------------------------------------------- /nginx/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/nginx/Dockerfile -------------------------------------------------------------------------------- /nginx/nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/nginx/nginx.conf -------------------------------------------------------------------------------- /postman_collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/postman_collection.json -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/pyproject.toml -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/pytest.ini -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/requirements.txt -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/run.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | """Tests package.""" 2 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/test_health.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/tests/test_health.py -------------------------------------------------------------------------------- /tests/test_posts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UNC-GDSC/Blog-Posts-Backend/HEAD/tests/test_posts.py --------------------------------------------------------------------------------