{"id":20511539,"url":"https://github.com/thiiagoms/node-mongodb","last_synced_at":"2026-05-15T08:38:31.647Z","repository":{"id":115850186,"uuid":"488179023","full_name":"thiiagoms/node-mongodb","owner":"thiiagoms","description":":leaves:  :books:  Books API with NodeJS and MongoDB ","archived":false,"fork":false,"pushed_at":"2022-05-15T19:02:26.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T03:03:45.137Z","etag":null,"topics":["learning-by-doing","learning-nodejs","nodejs"],"latest_commit_sha":null,"homepage":"","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/thiiagoms.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":"2022-05-03T11:18:25.000Z","updated_at":"2022-05-19T00:36:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"1dc2689b-7634-4535-9817-6e342046b4e8","html_url":"https://github.com/thiiagoms/node-mongodb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thiiagoms/node-mongodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiiagoms%2Fnode-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiiagoms%2Fnode-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiiagoms%2Fnode-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiiagoms%2Fnode-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiiagoms","download_url":"https://codeload.github.com/thiiagoms/node-mongodb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiiagoms%2Fnode-mongodb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006041,"owners_count":26084024,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["learning-by-doing","learning-nodejs","nodejs"],"created_at":"2024-11-15T20:36:17.042Z","updated_at":"2025-10-11T03:05:08.727Z","avatar_url":"https://github.com/thiiagoms.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/thiiagoms/node-mongodb\"\u003e\n    \u003cimg src=\"assets/logo.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n     \u003ch3 align=\"center\"\u003eBook API with NodeJs, Express and Mongodb :four_leaf_clover: :books:\u003c/h3\u003e\n\u003c/p\u003e\n\n## Install\n\n- First, clone the project:\n\n```bash\n$ git clone https://github.com/thiiagoms/node-express-mongodb\n```\n\n- Second, install dependencies:\n\n```bash\n$ cd node-express-mongodb\n$ npm install\n```\n\n- Third, create `.env` and add your Mongo credentials in `.env` file:\n\n```bash\n$ cp .env.example .env\n$ cat .env\n\nDATABASE_HOST=\u003cyour-mongo-host-here\u003e\nDATABASE_NAME=\u003cyour-mongo-dbname-here\u003e\nDATABASE_USER=\u003cyour-mongo-dbuser-here\u003e\nDATABASE_PASS=\u003cyour-mongo-dbass-here\u003e\n```\n\n## Run\n\n- Run dev mode with `nodemon`:\n\n```\n$ npm run dev\n```\n\n## Endpoints\n\n### Books with author\n\n- `GET - /books` - Return all books with/without author\n- `GET - /books/:id` - Return single book with/without author`\n- `POST - /books` - Create new book\n- `PUT - /books/:id` - Update book\n- `DELETE - /books/:id` - Delete book\n\n### Author\n\n- `GET - /books` - Return all authors\n- `GET - /books/:id` - Return single author\n- `POST - /books` - Create new author\n- `PUT - /books/:id` - Update author\n- `DELETE - /books/:id` - Delete author\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiiagoms%2Fnode-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiiagoms%2Fnode-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiiagoms%2Fnode-mongodb/lists"}