{"id":26184418,"url":"https://github.com/eficode/books-database-service","last_synced_at":"2025-07-20T16:04:24.054Z","repository":{"id":274775730,"uuid":"870641992","full_name":"eficode/books-database-service","owner":"eficode","description":"Example web application demo project, that is implemented with the help of GenAI agents","archived":false,"fork":false,"pushed_at":"2025-07-09T12:53:52.000Z","size":1055,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-10T13:42:23.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/eficode.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,"zenodo":null}},"created_at":"2024-10-10T12:10:16.000Z","updated_at":"2025-03-21T12:55:52.000Z","dependencies_parsed_at":"2025-02-19T14:23:15.104Z","dependency_job_id":"2893041b-e7bd-48f6-9188-ecbc76cd8f64","html_url":"https://github.com/eficode/books-database-service","commit_stats":null,"previous_names":["eficode/books-database-service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eficode/books-database-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eficode%2Fbooks-database-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eficode%2Fbooks-database-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eficode%2Fbooks-database-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eficode%2Fbooks-database-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eficode","download_url":"https://codeload.github.com/eficode/books-database-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eficode%2Fbooks-database-service/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266152266,"owners_count":23884477,"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":[],"created_at":"2025-03-11T22:55:49.025Z","updated_at":"2025-07-20T16:04:24.038Z","avatar_url":"https://github.com/eficode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Books Database Service\n\nA modern web application for managing a books database with a beautiful UI and API.\n\n## Features\n\n- RESTful API for managing books\n- Beautiful and responsive user interface\n- Real-time filtering and sorting of books\n- Pagination for large datasets\n- Categorization of books\n\n## Running the Application\n\n### Using Docker (Recommended)\n\nThe easiest way to run the application is using Docker Compose:\n\n1. Make sure you have Docker and Docker Compose installed\n2. Clone this repository\n3. Run the following command in the project directory:\n\n```bash\ndocker-compose up -d\n```\n\nThe application will be available at http://localhost:8000\n\nTo stop the application:\n\n```bash\ndocker-compose down\n```\n\n### Using Poetry\n\n1. **Install Poetry**:\n\n    ```bash\n    curl -sSL https://install.python-poetry.org | python3 -\n    ```\n\n2. **Install the Dependencies**:\n\n    ```bash\n    poetry install\n    ```\n\n3. **Run the Application**:\n\n    ```bash\n    poetry run dev-server\n    ```\n\nThe application will be available at http://localhost:8000\n\n### Using Python virtual environment\n\n1. **Create and activate a virtual environment**:\n\n    ```bash\n    python -m venv .venv\n    source .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\n    ```\n\n2. **Install dependencies**:\n\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n3. **Run the application**:\n\n    ```bash\n    python server.py\n    ```\n\nThe application will be available at http://localhost:8000\n\n## API Documentation\n\nThe API documentation is available at http://localhost:8000/docs when the server is running.\n\n## Running Tests\n\n### API Tests\n\nRun all API tests:\n\n```bash\npoetry run pytest\n```\n\nRun tests with verbose output:\n\n```bash\npoetry run pytest -v\n```\n\nRun a specific test:\n\n```bash\npoetry run pytest tests/test_books.py::test_create_book -v\n```\n\n### UI Tests with Robot Framework\n\nFirst, initialize the Browser library (only needed once):\n\n```bash\npoetry run python -m Browser.entry init\n```\n\nRun all Robot Framework UI tests:\n\n```bash\npoetry run robot --outputdir robot_results robot_tests/\n```\n\nRun a specific Robot test:\n\n```bash\npoetry run robot --outputdir robot_results -t \"User Can Open Books UI\" robot_tests/\n```\n\nOr use the provided script to run all UI tests:\n\n```bash\n./scripts/run_robot_tests.sh\n```\n\nThe Robot Framework tests handle Docker automatically: they start the application with `docker-compose up` and clean up with `docker-compose down` when tests are complete.\n\n## Database Initialization\n\nTo generate sample books data:\n\n```bash\npython scripts/migrate_db.py\npython scripts/generate_books.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feficode%2Fbooks-database-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feficode%2Fbooks-database-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feficode%2Fbooks-database-service/lists"}