{"id":19020420,"url":"https://github.com/dj0nny/react-recordshop-server","last_synced_at":"2026-04-04T22:32:20.979Z","repository":{"id":42387119,"uuid":"162981830","full_name":"dj0nny/react-recordShop-server","owner":"dj0nny","description":"The backend for the react-recordShop app","archived":false,"fork":false,"pushed_at":"2026-01-22T10:16:34.000Z","size":157,"stargazers_count":0,"open_issues_count":33,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-01-23T01:07:58.092Z","etag":null,"topics":["backend","express","graphql","mongodb","node-js"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dj0nny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-12-24T11:03:41.000Z","updated_at":"2018-12-29T12:41:07.000Z","dependencies_parsed_at":"2024-03-26T18:26:15.982Z","dependency_job_id":"489cb5e9-f9c8-411b-9d0a-fbc4f4a21d46","html_url":"https://github.com/dj0nny/react-recordShop-server","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"0cd43394f027814d18eac8d2af2239baa8c4b235"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dj0nny/react-recordShop-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dj0nny%2Freact-recordShop-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dj0nny%2Freact-recordShop-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dj0nny%2Freact-recordShop-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dj0nny%2Freact-recordShop-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dj0nny","download_url":"https://codeload.github.com/dj0nny/react-recordShop-server/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dj0nny%2Freact-recordShop-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":["backend","express","graphql","mongodb","node-js"],"created_at":"2024-11-08T20:17:06.787Z","updated_at":"2026-04-04T22:32:20.957Z","avatar_url":"https://github.com/dj0nny.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-recordShop-server\n\n[![Known Vulnerabilities](https://snyk.io/test/github/dj0nny/react-recordShop-server/badge.svg?targetFile=package.json)](https://snyk.io/test/github/dj0nny/react-recordShop-server?targetFile=package.json)\n\n\n__This is the backend for the [react-recordShop](https://github.com/dj0nny/react-recordShop) app.__\u003cbr\u003e\nFor storing the data it'll be use [mLab](https://mlab.com/), a mongoDB cloud service.\nThis app was developed using [Express](http://expressjs.com/), [GraphQL](https://graphql.org/) and [MongoDB](https://www.mongodb.com/)\n\n## Getting started\n\n### Prerequisites\n\nYou must have NodeJS installed on your machine with npm or yarn.\n\nYou'll find them on the official websites:\u003cbr\u003e\n__NodeJS__: https://nodejs.org/en/\u003cbr\u003e\n__Npm__: https://www.npmjs.com/\u003cbr\u003e\n__Yarn__: https://yarnpkg.com/en/\n\nFor storing all the data, in this project it will be use __mLab__. For getting a free development key visit: https://mlab.com/\n\n### Installing\n\n__Using Git__\n\nClone the repository: `git clone https://github.com/dj0nny/react-recordShop-server.git`\n\n__Download__\n\nYou can download the repository [here](https://github.com/dj0nny/react-recordShop-server/archive/develop.zip)\n\n- - - -\n\nInstall the dependecies using:\n`npm install` or `yarn install`\n\nFor running the server type on a CLI: `node app.js` or `nodemon app.js` if you have [nodemon](https://nodemon.io/) installed on your machine. \nFor install nodemon on your computer, open a terminal and type `npm install -g nodemon` or `yarn global nodemon`\n\nOpen a browser and navigate to http://localhost:4000/graphql.\n\n## Running the test\n\n### Quering the database\n\nFor first, inside the `app.js` file, you have to insert the connection URL for your Mongo database gave from mLab:\n\n`mongoose.connect('...') // the url goes here`\n\nOnce you have navigated to http://localhost:4000/graphql, you'll see something like this:\n\n![picture alt](https://raw.githubusercontent.com/dj0nny/react-recordShop-server/develop/assets/graphql.png)\n\nAll the queries will be write on the left and the results will be print on the right.\n\n#### Fetch all bands with all their records\n\n```javascript\n{\n  bands{\n    id\n    name\n    nation\n    records {\n      id\n      title\n      genre\n      releaseYear\n    }\n  }\n}\n```\n\n#### Fetch all bands\n\n```javascript\n{\n  bands{\n    id\n    name\n    nation\n  }\n}\n```\n\n#### Fetch all records\n\n```javascript\n{\n  records{\n    id\n    title\n    genre\n    releaseYear\n  }\n}\n```\n#### Fetch one record (by id) and the band who composed it\n\n```javascript\n{\n  record(id: \"idValue\"){\n    id\n    title\n    genre\n    releaseYear\n    band {\n      name\n      nation\n    }\n  }\n}\n```\n\n#### Fetch one band (by id) and the all its records\n\n```javascript\n{\n  band(id: \"idValue\") {\n    name\n    nation\n    records{\n      title\n      genre\n      releaseYear\n    }\n  }\n}\n```\n\n### Mutations\n\nMongoDB (as a NoSQL DBMS) doesn't have the `INSERT, UPDATE, DELETE, DROP`, ecc.. statements: they are replaced with the __mutations__. A mutation is a changing inside the data.\n\n#### Add a new band\n\n```javascript\n  mutation{\n    addBand(name: \"bandName\", nation: \"nation\") {\n      name\n      nation\n    }\n  }\n```\n\n#### Add a new record\n\n```javascript\n  mutation{\n    addRecord(title: \"recordTitle\", genre: \"genreName\", releaseYear: yearAsInt, bandID: \"bandId\") {\n      title\n      genre\n      releaseYear\n    }\n  }\n```\n\n## Built with ❤ using\n\n* [NodeJS](https://nodejs.org/en/) - JavaScript runtime\n* [Express](http://expressjs.com/) - Web framework for NodeJS\n* [GraphQL](https://graphql.org/) - Query language for APIs\n* [MongoDB](https://www.mongodb.com/) - A NoSQL DBMS\n* [Npm](https://www.npmjs.com/) - Package manager\n\n## Contributing\n\nIf you want to improve this project Pull Request ⇄ and Stars ★ are welcome.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](https://github.com/dj0nny/react-recordShop-server/blob/develop/LICENSE.md) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdj0nny%2Freact-recordshop-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdj0nny%2Freact-recordshop-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdj0nny%2Freact-recordshop-server/lists"}