{"id":16483455,"url":"https://github.com/swap76/apollo-graphql-mongo-boilerplate","last_synced_at":"2025-03-21T07:30:54.326Z","repository":{"id":41708042,"uuid":"240571619","full_name":"Swap76/Apollo-GraphQL-Mongo-Boilerplate","owner":"Swap76","description":"Apollo GraphQL MongoDB Boilerplate","archived":false,"fork":false,"pushed_at":"2023-01-24T02:27:22.000Z","size":1265,"stargazers_count":5,"open_issues_count":23,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T22:32:13.108Z","etag":null,"topics":["apollo-graphql","boilerplate","graphql","mongodb","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Swap76.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}},"created_at":"2020-02-14T18:15:40.000Z","updated_at":"2023-10-19T06:58:19.000Z","dependencies_parsed_at":"2023-02-13T12:01:09.458Z","dependency_job_id":null,"html_url":"https://github.com/Swap76/Apollo-GraphQL-Mongo-Boilerplate","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/Swap76%2FApollo-GraphQL-Mongo-Boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swap76%2FApollo-GraphQL-Mongo-Boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swap76%2FApollo-GraphQL-Mongo-Boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swap76%2FApollo-GraphQL-Mongo-Boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swap76","download_url":"https://codeload.github.com/Swap76/Apollo-GraphQL-Mongo-Boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244757358,"owners_count":20505382,"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":["apollo-graphql","boilerplate","graphql","mongodb","nodejs"],"created_at":"2024-10-11T13:14:04.951Z","updated_at":"2025-03-21T07:30:54.022Z","avatar_url":"https://github.com/Swap76.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apollo GraphQL with MongoDB Boilerplate\n\n### Documentation:  [https://swap76.github.io/Apollo-GraphQL-Mongo-Boilerplate/](https://swap76.github.io/Apollo-GraphQL-Mongo-Boilerplate/#/) \n\n## This boilerplate includes following things:-\n- Apollo GraphQL server creation \u0026 configuration\n- MongoDB setup \u0026 Model Examples\n- GraphQL schema examples\n- JWT Authorization Middlewear\n- REST API Configuration\n\n## Project Structure\n\nOur project has the following structure:\n  * docs\n  * node_modules\n  * src\n    * config\n    * controllers\n    * graphql\n    * middleware\n    * models\n    * routes\n    * utils\n  * test\n\n  ### 1. Docs\n  This contains all the markdown files for the documentation of the project, which is visualized on Docsify.\n  \n  ### 2. Node Modules\n  Contains project dependencies.\n\n  ### 3. Config\n  This contains all the configuration files; like database connectivity, winston setup, etc.\n\n  ### 4. Controllers\n  This contains all the REST API end-points.\n\n  ### 5. GraphQL\n  This contains schema files, queries and mutations for GraphQL API.\n\n  ### 6. Middleware\n  This contains all the middleware functions of the request-response pipeline.\n\n  ### 7. Models\n  This contains all the mongoDB schema.\n\n  ### 8. Routes\n  This contains all the routes for REST API.\n\n  ### 9. Utils\n  This contains all the helper functions associated with other endpoints.\n  \n  ### 10. Tests\n  This contains basic setup for chai, mocha testing which can be integrated with Travis CI easily or any other CI\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running o# Apollo GraphQL with MongoDB Boilerplate\n\n## This boilerplate includes following things:-\n- Apollo GraphQL server creation \u0026 configuration\n- MongoDB setup \u0026 Model Examples\n- GraphQL schema examples\n- JWT Authorization Middlewear\n- REST API Configuration\n- Tests using Chai \u0026 Mocha\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n### Prerequisites\n\nFollowing are the softwares requried to get arena up and running.\n* [Node.js](https://nodejs.org) - Chrome's V8 Javascript Engine\n* [MongoDB](https://mongodb.org) - NoSQL Database\n* [Redis](https://redis.io/) - Redis Cache\n\n### Installing\n\n- Install the packages mentioned in package.json file for getting all dependencies of the project.\n  ```\n  npm install --save\n  ```\n- Getting the configuration ready\n  ```\n  cp .env.example .env\n  ```\n- Starting the application\n  ```\n  npm run dev\n  ```\n\n- Setting the pre-push hook\n  ```\n  ./hooks.sh\n  ```\n\n## Linting the Code\n\n- For linting the code\n```\nnpm run lint -s\n```\n\n- For fixing the linting mistakes in code\n```\nnpm run fix -s\n```\n\n## Issues\n\nIssues are managed via GitHub Issues [here](https://github.com/Swap76/Apollo-GraphQL-Mongo-Boilerplate/issues).\n\n## Developers\n\n* **Swapnil Shinde** - [Swap76](https://github.com/Swap76)\n\n## License\n\nThis project is licensed under the Apache License. See the [LICENSE.md](https://github.com/Swap76/Apollo-GraphQL-Mongo-Boilerplate/blob/master/LICENSE) file for details.\nn your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswap76%2Fapollo-graphql-mongo-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswap76%2Fapollo-graphql-mongo-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswap76%2Fapollo-graphql-mongo-boilerplate/lists"}