{"id":23331481,"url":"https://github.com/yogeshnishad007/book_library","last_synced_at":"2025-04-07T10:49:26.947Z","repository":{"id":210413664,"uuid":"726498220","full_name":"yogeshnishad007/Book_Library","owner":"yogeshnishad007","description":"Deployed Link","archived":false,"fork":false,"pushed_at":"2023-12-06T08:13:02.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T13:26:16.201Z","etag":null,"topics":["backend","booklibrary"],"latest_commit_sha":null,"homepage":"https://lovely-moccasins-eel.cyclic.app/","language":"JavaScript","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/yogeshnishad007.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}},"created_at":"2023-12-02T15:15:15.000Z","updated_at":"2023-12-06T07:51:46.000Z","dependencies_parsed_at":"2023-12-06T08:42:40.941Z","dependency_job_id":"3e17251c-016c-4498-af31-a02af535ea8e","html_url":"https://github.com/yogeshnishad007/Book_Library","commit_stats":null,"previous_names":["yogeshnishad007/book_library"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogeshnishad007%2FBook_Library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogeshnishad007%2FBook_Library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogeshnishad007%2FBook_Library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogeshnishad007%2FBook_Library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yogeshnishad007","download_url":"https://codeload.github.com/yogeshnishad007/Book_Library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640526,"owners_count":20971554,"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":["backend","booklibrary"],"created_at":"2024-12-20T22:39:01.277Z","updated_at":"2025-04-07T10:49:26.924Z","avatar_url":"https://github.com/yogeshnishad007.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Triluxo Backend\n\nWelcome to the backend application for Triluxo! This Express.js application interacts with a MongoDB database to manage books.\n\n## Getting Started\n\n### Prerequisites\n- Node.js installed\n- MongoDB installed and running\n\n### Installation\n1. **Clone the repository:**\n    ```bash\n    git clone https://github.com/your-username/Triluxo-Backend.git\n    ```\n\n2. **Navigate to the project directory:**\n    ```bash\n    cd Triluxo-Backend\n    ```\n\n3. **Install dependencies:**\n    ```bash\n    npm install\n    ```\n\n## Usage\n\n### Deployed Link\nTo access the home page, navigate to [https://lovely-moccasins-eel.cyclic.app/](https://lovely-moccasins-eel.cyclic.app/) in your browser.\n\n### API Endpoints\n\n#### Get Books Data\n- Retrieve a list of books:\n    ```http\n    GET /books\n    ```\n    Example response:\n    ```json\n    [\n        {\n            \"id\": 1,\n            \"title\": \"Sample Book 1\",\n            \"author\": \"Author 1\",\n            \"publishedYear\": 2022\n        },\n        {\n            \"id\": 2,\n            \"title\": \"Sample Book 2\",\n            \"author\": \"Author 2\",\n            \"publishedYear\": 2023\n        }\n    ]\n    ```\n\n#### Add a New Book\n- Add a new book to the database:\n    ```http\n    POST /post\n    ```\n    Example request body:\n    ```json\n    {\n        \"title\": \"New Book\",\n        \"author\": \"New Author\",\n        \"publishedYear\": 2023\n    }\n    ```\n\n#### Update a Book\n- Update an existing book by ID:\n    ```http\n    PUT /update/:id\n    ```\n    Example request body:\n    ```json\n    {\n        \"title\": \"Updated Title\",\n        \"author\": \"Updated Author\",\n        \"publishedYear\": 2023\n    }\n    ```\n\n#### Delete a Book\n- Delete a book by ID:\n    ```http\n    DELETE /delete/:id\n    ```\n\n    Example response:\n    ```json\n    {\n        \"message\": \"Book with ID 1 deleted successfully.\"\n    }\n    ```\n\nMake sure to run the application locally (http://localhost:4000) to test these endpoints.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyogeshnishad007%2Fbook_library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyogeshnishad007%2Fbook_library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyogeshnishad007%2Fbook_library/lists"}