{"id":13689093,"url":"https://github.com/syqu22/flask-pastebin","last_synced_at":"2025-05-01T23:32:07.615Z","repository":{"id":40578124,"uuid":"363497832","full_name":"syqu22/flask-pastebin","owner":"syqu22","description":"Simple flask web application","archived":false,"fork":false,"pushed_at":"2022-09-06T11:56:13.000Z","size":299,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-03T15:15:19.434Z","etag":null,"topics":["bootstrap5","flask","flask-login","flask-sqlalchemy","flask-wtf","jinja2","mysql","pastebin","pytest","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syqu22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-01T20:07:37.000Z","updated_at":"2023-11-13T01:24:49.000Z","dependencies_parsed_at":"2022-08-09T23:40:34.316Z","dependency_job_id":null,"html_url":"https://github.com/syqu22/flask-pastebin","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/syqu22%2Fflask-pastebin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syqu22%2Fflask-pastebin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syqu22%2Fflask-pastebin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syqu22%2Fflask-pastebin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syqu22","download_url":"https://codeload.github.com/syqu22/flask-pastebin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224282114,"owners_count":17285772,"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":["bootstrap5","flask","flask-login","flask-sqlalchemy","flask-wtf","jinja2","mysql","pastebin","pytest","python"],"created_at":"2024-08-02T15:01:33.539Z","updated_at":"2024-11-12T13:30:44.979Z","avatar_url":"https://github.com/syqu22.png","language":"Python","readme":"\n# flask-pastebin\n\nThis is my first Flask project.\nI wanted to do pastebin web application to learn about Python and Web Applications.\nTechnology I have used:\n- Flask\n- Flask-WTF for forms and validation\n- Flask-SQLAlchemy for Database functionality\n- Flask-Login for user authentication\n- Pytest for testing\n- Jinja2 + Bootstrap 5 for Templates\n\n## Features\n\n- Publish public or private pastebins\n- Paste expiration\n- User privalges to view/edit/delete his own pastebins\n- Syntax highlighting\n- View recently created public pastebins\n- Fetch all data through simple API\n\n  \n## Screenshots\n\n\u003cimg src=\"https://github.com/syqu22/flask-pastebin/blob/main/web/static/01.png\" height=50% width=60%\u003e\n\u003cimg src=\"https://github.com/syqu22/flask-pastebin/blob/main/web/static/02.png\" height=50% width=60%\u003e\n\u003cimg src=\"https://github.com/syqu22/flask-pastebin/blob/main/web/static/03.png\" height=50% width=60%\u003e\n\u003cimg src=\"https://github.com/syqu22/flask-pastebin/blob/main/web/static/04.png\" height=50% width=60%\u003e\n\n  \n## Installation \n\nFirst clone the repository to use it localy:\n```sh\n$ git clone https://github.com/syqu22/flask-pastebin.git\n```\n\nThen install all required libraries  through:\n\n```bash \n  pip install -r requirements.txt\n```\nThere's already an user preloaded in database and you can access him  with:\n\nLogin: ```test``` \n\nPassword: ```test123```\n\nThere's also a special url ```/admin``` \nthanks to Flask-Admin, where you can have access to database from the website\n    \n## API Reference\n\n#### Get user\n\n```http\n  GET /api/users/${id}\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `int` | **Required**. Id of user to fetch |\n\n#### Get users\n\n```http\n  GET /api/users\n```\n\n| Parameter | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `page` | `int` | Used to paginate (one page returns maximum of 50 users)|\n\n\n#### Get pastebins of user\n\n```http\n  GET /api/users/${id}/pastebins\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `int` | **Required**. Id of user to fetch |\n\n#### Get pastebin\n\n```http\n  GET /api/pastebins/${id}\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `int` | **Required**. Id of pastebin to fetch |\n\n#### Get pastebins\n\n```http\n  GET /api/pastebins\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `int` | Used to paginate (one page returns maximum of 50 pastebins) |\n\n\n\n  \n","funding_links":[],"categories":["flask"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyqu22%2Fflask-pastebin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyqu22%2Fflask-pastebin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyqu22%2Fflask-pastebin/lists"}