{"id":15040649,"url":"https://github.com/andrewjbateman/mean-graphql-crud","last_synced_at":"2026-01-07T00:25:04.684Z","repository":{"id":40668627,"uuid":"173340777","full_name":"AndrewJBateman/mean-graphql-crud","owner":"AndrewJBateman","description":":clipboard: Full-stack MEAN app with Create, Read, Update \u0026 Delete functionality.","archived":false,"fork":false,"pushed_at":"2023-03-07T09:43:30.000Z","size":9662,"stargazers_count":0,"open_issues_count":30,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T12:26:52.626Z","etag":null,"topics":["angular","angular-material","angular13","backend","css3","express-middleware","frontend","graphql","html5","mean-stack","mongodb","mongodb-database","node-js","nodejs","nodemon","typescript2","typescript4"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/AndrewJBateman.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":"2019-03-01T17:17:35.000Z","updated_at":"2022-02-18T09:28:10.000Z","dependencies_parsed_at":"2025-02-01T12:36:23.752Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/mean-graphql-crud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fmean-graphql-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fmean-graphql-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fmean-graphql-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fmean-graphql-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/mean-graphql-crud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245799548,"owners_count":20674132,"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":["angular","angular-material","angular13","backend","css3","express-middleware","frontend","graphql","html5","mean-stack","mongodb","mongodb-database","node-js","nodejs","nodemon","typescript2","typescript4"],"created_at":"2024-09-24T20:44:52.399Z","updated_at":"2026-01-07T00:25:04.639Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: MEAN GraphQL CRUD\n\n* A MongoDB Express Angular Node.js (MEAN) full-stack app using Apollo and GraphQL to get data from a MongoDB database.\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/mean-graphql-crud?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/mean-graphql-crud?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/mean-graphql-crud?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/mean-graphql-crud?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Next API Data](#zap-next-api-data)\n  * [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General Info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal_strength: Technologies](#signal_strength-technologies)\n  * [:floppy_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:clipboard: Status \u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General Info\n\n* Very basic Angular front-end where user can create read and delete database records with fields: name, quotation \u0026 an ID automatically assigned\n* From `http://localhost:3000/graphql` GraphQL can be used to query (GET) and mutate (POST, PUT, DELETE etc.) database records. Records can only be edited from here (i.e. not from the Angular frontend)\n* MongoDB Atlas backend database\n* Data is passed using GraphQL and Apollo using [Apollo-Angular HTTP](https://apollo-angular.com/docs/data/network)\n\n## :camera: Screenshots\n\n![Example screenshot](./imgs/crud.png).\n\n## :signal_strength: Technologies\n\n* [Node.js v16](https://nodejs.org/) javascript runtime using the [Chrome V8 engine](https://v8.dev/)\n\n* [Angular v13](https://angular.io/) frontend\n* [GraphQL v16](https://github.com/graphql/graphql-js)\n* [Apollo v3](https://www.apollographql.com/) GraphQL implementation data graph layer\n* [Apollo Client v3](https://www.npmjs.com/package/apollo-client) caching GraphQL client to UI components can fetch data via GraphQL. More documentation [here](https://apollographql.com/docs/react/).\n* [Apollo Angular v3](https://www.npmjs.com/package/apollo-angular) caching GraphQL server. [Website](https://apollo-angular.com/)\n\n## :floppy_disk: Setup\n\n**Backend**\n* From `/backend` run `npm i` to install dependencies\n* Create `backend/config.json` then add database access credentials - see `config.example.json`\n* `npm run start` to run the backend in dev. mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser. Restarts itself if code updated\n\n**Frontend**\n* From `/frontend` run `npm i` to install dependencies\n* `npm run start` to run frontend in dev. mode.\n\n## :computer: Code Examples\n\n* `backend/graphql/resolvers` function to return an array of quotes with id using the map function\n\n```javascript\n\tquotes: async function () {\n\t\tconst quotes = await Quote.find();\n\t\treturn {\n\t\t\tquotes: quotes.map((q) =\u003e {\n\t\t\t\treturn {\n\t\t\t\t\t...q._doc,\n\t\t\t\t\t_id: q._id.toString(),\n\t\t\t\t};\n\t\t\t}),\n\t\t};\n\t},\n```\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Part-working. Backend connects, Frontend error: `ERROR Error: Http failure response for https://48p1r2roz4.sse.codesandbox.io/:`\n* To-Do: Add edit to frontend. Add styles\n\n## :clap: Inspiration\n\n* [Jon Peppinck: Angular GraphQL MEAN Apollo CRUD API](https://www.youtube.com/watch?v=zCMNvnlDoVg)\n\n## :file_folder: License\n\n* N/A\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fmean-graphql-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fmean-graphql-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fmean-graphql-crud/lists"}