{"id":26491728,"url":"https://github.com/danielc92/node-graphql-book-server","last_synced_at":"2026-04-12T00:02:03.903Z","repository":{"id":51758335,"uuid":"200773974","full_name":"danielc92/node-graphql-book-server","owner":"danielc92","description":"Backend server for book app, using MongoDB, Mongoose, GraphQL and Nodejs.","archived":false,"fork":false,"pushed_at":"2022-12-11T00:55:29.000Z","size":521,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T20:36:55.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/danielc92.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}},"created_at":"2019-08-06T04:05:01.000Z","updated_at":"2019-08-12T09:45:40.000Z","dependencies_parsed_at":"2023-01-26T13:30:25.783Z","dependency_job_id":null,"html_url":"https://github.com/danielc92/node-graphql-book-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielc92/node-graphql-book-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielc92%2Fnode-graphql-book-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielc92%2Fnode-graphql-book-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielc92%2Fnode-graphql-book-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielc92%2Fnode-graphql-book-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielc92","download_url":"https://codeload.github.com/danielc92/node-graphql-book-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielc92%2Fnode-graphql-book-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31699440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"ssl_error","status_checked_at":"2026-04-11T21:17:24.556Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-03-20T08:50:25.833Z","updated_at":"2026-04-12T00:02:03.810Z","avatar_url":"https://github.com/danielc92.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL Javascript Server\nBackend server for book app, using MongoDB, Mongoose, GraphQL and Nodejs.\n\n### Concepts\nThis project covers;\n- Creating a basic web server with Express and Node.\n- Creating a MongoDB instance and accessing it via Mongoose ODM.\n- Adding a query layer (GraphQL) to access and manipulate data from MongoDB.\n- Exposing the server, such that a front-end application can access it (eg. React).\n\n### Running the server\n\nFrom root project directory. `nodemon` allows for hot-reloading. Alternatively you can run the server with `node server.js`.\n\n```sh\nnodemon server.js\n```\n\n### Accessing the server\n\nYou can access the server in browser using the `GraphiQL` interface via `http://localhost:3001/graphql`. Conversely you can access it via the frontend. In this case I accessed the GraphQL server using Apollo and React. However I used `GraphiQL` for testing purposes.\n\n### Requirements\n\nThis server runs on Node. The version of Node I used was `v10.16.0`.\n\nI also installed a MongoDB instance locally, more instructions on that can be found on the official mongodb documentation.\n\nThe requirements are shown in package.json and can be installed via\n\n```sh\nnpm install\n```\n\n### Screenshots\nScreenshots taken from graphiql interface after visiting `localhost:3001/graphql` in chrome. The last two screenshots showcase the extreme flexiblity which GraphQL allows for, allowing for very deep nesting and optional fields makes it a great tool for querying client side.\n\n**Using the addAuthor mutation to create new author(s).**\n![An image from graphiql](https://github.com/danielc92/node-graphql-book-server/blob/master/screenshots/1.png)\n\n**Querying author(s).**\n![An image from graphiql](https://github.com/danielc92/node-graphql-book-server/blob/master/screenshots/2.png)\n\n**Using the addBook mutation to create new book(s).**\n![An image from graphiql](https://github.com/danielc92/node-graphql-book-server/blob/master/screenshots/3.png)\n\n**Querying books, as well as their respective author.**\n![An image from graphiql](https://github.com/danielc92/node-graphql-book-server/blob/master/screenshots/4.png)\n\n**Querying authors, as well as their respective books.**\n![An image from graphiql](https://github.com/danielc92/node-graphql-book-server/blob/master/screenshots/5.png)\n\n### Sources\n\n- [GraphQL npm package](https://www.npmjs.com/package/graphql)\n- [Express](https://www.npmjs.com/package/express)\n- [Mongoose ODM](https://www.npmjs.com/package/mongoose)\n- [MongoDB](https://www.mongodb.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielc92%2Fnode-graphql-book-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielc92%2Fnode-graphql-book-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielc92%2Fnode-graphql-book-server/lists"}