{"id":16544770,"url":"https://github.com/sinisaos/headless-forum-fastapi","last_synced_at":"2025-06-22T06:06:29.226Z","repository":{"id":110287379,"uuid":"320473670","full_name":"sinisaos/headless-forum-fastapi","owner":"sinisaos","description":"Backend for simple forum made with FastAPI and Piccolo ORM ecosystem.","archived":false,"fork":false,"pushed_at":"2024-04-04T17:16:32.000Z","size":293,"stargazers_count":29,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T06:06:12.187Z","etag":null,"topics":["fastapi","orm","piccolo"],"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/sinisaos.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-11T05:11:55.000Z","updated_at":"2025-03-06T11:39:46.000Z","dependencies_parsed_at":"2024-03-10T12:23:20.229Z","dependency_job_id":"f8995d7f-afca-43fb-8894-9d8fa55d0362","html_url":"https://github.com/sinisaos/headless-forum-fastapi","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"e26db8519e68d94a38449320a364a3d91aae4d4f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sinisaos/headless-forum-fastapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinisaos%2Fheadless-forum-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinisaos%2Fheadless-forum-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinisaos%2Fheadless-forum-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinisaos%2Fheadless-forum-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinisaos","download_url":"https://codeload.github.com/sinisaos/headless-forum-fastapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinisaos%2Fheadless-forum-fastapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261244053,"owners_count":23129642,"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":["fastapi","orm","piccolo"],"created_at":"2024-10-11T19:04:35.358Z","updated_at":"2025-06-22T06:06:23.670Z","avatar_url":"https://github.com/sinisaos.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Backend for simple forum made with [FastAPI](https://fastapi.tiangolo.com/) and [Piccolo ORM](https://www.piccolo-orm.com/) ecosystem.\n\n-------------------------------------------------------\n\n### Instalation\n\nClone repository in fresh virtualenv.\n\n```bash\ngit clone https://github.com/sinisaos/headless-forum-fastapi.git\n```\n\n### Install requirements\n\n\n```bash\ncd headless-forum-fastapi\npip install -r requirements/requirements.txt\n```\n\n### Create database\n\n\n```bash\nsudo -i -u yourpostgresusername psql\nCREATE DATABASE forum;\n\\q;\n```\n\n### Setup\n-------------------------------------------------------\nCreate ``.env`` file in root of the project.\n\n```bash\nDB_NAME=your db name\nDB_USER=your db username\nDB_PASSWORD=your db password\nDB_HOST=your db host\nDB_PORT=your db port\nSECRET_KEY=your secret key\nALGORITHM=\"HS256\"\nACCESS_TOKEN_EXPIRE_MINUTES=30\n```\n\n### Migrations\n\n```bash\n./scripts/migrations.sh\n```\n\n### Create admin user\n\n```bash\n./scripts/user.sh\n```\n\n### Testing\n\nInstall test requirements.\n\n```bash\npip install -r requirements/test-requirements.txt\n```\n\nRun tests.\n\n```bash\n./scripts/test.sh\n```\n\n### Linting\n\n```bash\n./scripts/lint.sh\n```\n\n### Getting started \n\n```bash\n./scripts/start.sh\n```\n\nAfter site is running log in as admin user on [localhost:8000/admin/](http://localhost:8000/admin/) and add categories, topics etc. \n\nFor non admin user go to API docs [localhost:8000/docs/](http://localhost:8000/docs/) where you can register.\n\nAfter that you can login with Authorize button to access protected routes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinisaos%2Fheadless-forum-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinisaos%2Fheadless-forum-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinisaos%2Fheadless-forum-fastapi/lists"}