{"id":21877862,"url":"https://github.com/zeroniki/movie-database","last_synced_at":"2026-05-06T15:44:55.545Z","repository":{"id":255185355,"uuid":"848792684","full_name":"ZeroNiki/Movie-Database","owner":"ZeroNiki","description":"This is a web application on Fastapi that displays movies","archived":false,"fork":false,"pushed_at":"2024-10-11T08:35:26.000Z","size":1956,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T20:43:33.086Z","etag":null,"topics":["alembic","fastapi","fastapi-sqlalchemy","fastapi-users","postgresql","python","python3","sqlalchemy"],"latest_commit_sha":null,"homepage":"","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/ZeroNiki.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":"2024-08-28T12:19:15.000Z","updated_at":"2024-10-11T08:35:29.000Z","dependencies_parsed_at":"2024-09-14T20:09:29.063Z","dependency_job_id":"c4cec71e-0db0-41c3-b18a-d06a4780b1d3","html_url":"https://github.com/ZeroNiki/Movie-Database","commit_stats":null,"previous_names":["zeroniki/movie-database"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZeroNiki/Movie-Database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroNiki%2FMovie-Database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroNiki%2FMovie-Database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroNiki%2FMovie-Database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroNiki%2FMovie-Database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZeroNiki","download_url":"https://codeload.github.com/ZeroNiki/Movie-Database/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroNiki%2FMovie-Database/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265327759,"owners_count":23747761,"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":["alembic","fastapi","fastapi-sqlalchemy","fastapi-users","postgresql","python","python3","sqlalchemy"],"created_at":"2024-11-28T08:10:47.408Z","updated_at":"2026-05-06T15:44:55.513Z","avatar_url":"https://github.com/ZeroNiki.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Movie Database\n\n## Navigation\n\n[RU README.md](https://github.com/ZeroNiki/Movie-Database/blob/main/RU_README.md)\n\n- [About](#About)\n- [Install](#Install)\n- [About the database](#About-the-database)\n  - [Alembic migrations](#Alembic-migrations)\n  - [Where did I get the data from?](#Where-did-I-get-the-data-from?)\n- [Architecture of the project](#Architecture-of-the-project)\n  - [Routes](#Routes)\n- [TODO](#TODO)\n\n## About\n\nlib:\n\n- fastapi\n- fastapi_users\n- sqlalchemy (for postgresql)\n- alembic\n\nThis is a web application for displaying movies. It is possible to register and authorize the user\n\n## Install\n\n```bash\ngit clone https://github.com/ZeroNiki/Movie-Database.git\ncd git\n```\n\n\u003cimg src=\"https://github.com/ZeroNiki/Movie-Database/blob/main/media/render_git.gif\" alt=\"Alt text\" width=\"800\" height=\"500\"\u003e\n\nconfigure [.env](https://github.com/ZeroNiki/Movie-Database/blob/main/.env) file:\n\n```\nDATABASE=xxxx\nUSER=xxxx\nHOST=xxxx\nPASSWORD=xxxx\nPORT=xxxx\n\nAUTH_TOKEN=xxxx\n```\n\n`Database` - Name of your database\n`User` - User of your database\n`HOST` - Host of your database (by default `localhost`)\n`PASSWORD` - Password of your database (by default `postgres`)\n`PORT` - Port of your database (by default `5432`)\n\n`AUTH_TOKEN` - Here you can use the token generator\n\nCreate virtual environment:\n\n```bash\npython3 -m venv venv\n\npip install -r requirements.txt\n\nsource venv/bin/activate\n```\n\nIf you use Windows 10:\n\n```bash\npython -m venv venv\n\npip install -r requirements.txt\n\nvenv\\Scripts\\activate\n```\n\nOnce you have configured the [.env](https://github.com/ZeroNiki/Movie-Database/blob/main/.env) file and create venv you can start running the application:\n\n```bash\nuvicorn src.main:app --reload\n```\n\n\u003cimg src=\"https://github.com/ZeroNiki/Movie-Database/blob/main/media/render_uvicorn.gif\" alt=\"Alt text\" width=\"800\" height=\"500\"\u003e\n\ngo to http://127.0.0.1:8000\n\n## About the database\n\n**PostgreSQL** is used as a database\nThe bd template is found in [Database example](https://github.com/ZeroNiki/Movie-Database/tree/main/Database%20example) dir\n\n### Alembic migrations\n\n**first create a directory `versions` in `migrations/`**\n\n```bash\nmkdir migrations/versions\n\nalembic revision --autogenerate -m \"First init\"\n\nalembic upgrade head\n```\n\n### Where did I get the data from?\n\nTaken from the API of this [resource](https://developer.themoviedb.org/docs/getting-started)\n\n## Architecture of the project\n\n```\n  src\n   ├── auth\n   │   └── ...\n   ├── operations\n   │   └── ...\n   ├── pages\n   │   └── ...\n   ├── static\n   │   ├── css\n   │   │   └── ...\n   │   └── Favicon\n   │       └── ...\n   └── templates\n       └── ...\n```\n\n`src/auth` - Everything in this folder is intended for user authorization\u003cbr\u003e\n`src/operations` - Designed for interaction with the database\u003cbr\u003e\n`src/pages` - For pages\u003cbr\u003e\n`src/static` - For static files (css, js, media content)\u003cbr\u003e\n`src/templates` - For html\u003cbr\u003e\n\n### Routes\n\n`/pages/home/` - home page\u003cbr\u003e\n`/pages/search?q={keyword}` - search page\u003cbr\u003e\n`/pages/movie/{movie_id}` - movie page\u003cbr\u003e\n`/pages/register` - Signup page\u003cbr\u003e\n`/pages/login` - Login page\u003cbr\u003e\n\n## TODO\n\n- [ ] 5 September 2024 `Finalize role for users`\n- [x] 4 September 2024 `Fix minor bugs in nav`\n- [x] 2 September 2024 `link auth to front-end`\n- [x] 2 September 2024 `Add auth`\n- [x] 1 September 2024 `Finalize the /pages/movie/{id}`\n- [x] 30 August 2024 `Fix the display text in /pages/search?q={query}`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroniki%2Fmovie-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeroniki%2Fmovie-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroniki%2Fmovie-database/lists"}