{"id":24516387,"url":"https://github.com/knaxus/rest-and-graphql","last_synced_at":"2026-05-01T08:31:55.569Z","repository":{"id":33498847,"uuid":"158923082","full_name":"knaxus/rest-and-graphql","owner":"knaxus","description":":zap: Highly scalable REST API codebase with GraphQL layer on its :zap:","archived":false,"fork":false,"pushed_at":"2022-12-10T16:35:20.000Z","size":1148,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-01T02:05:30.948Z","etag":null,"topics":["graphql-api","graphql-endpoint","graphql-server","javascipt","javascript-applications","mysql","nodejs-api","nodejs-development","nodejs-server","rest-services","restful-api"],"latest_commit_sha":null,"homepage":"https://ashokdey.in","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knaxus.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":"2018-11-24T09:54:55.000Z","updated_at":"2021-06-15T06:25:21.000Z","dependencies_parsed_at":"2023-01-15T01:10:24.495Z","dependency_job_id":null,"html_url":"https://github.com/knaxus/rest-and-graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/knaxus/rest-and-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knaxus%2Frest-and-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knaxus%2Frest-and-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knaxus%2Frest-and-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knaxus%2Frest-and-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knaxus","download_url":"https://codeload.github.com/knaxus/rest-and-graphql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knaxus%2Frest-and-graphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32490810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["graphql-api","graphql-endpoint","graphql-server","javascipt","javascript-applications","mysql","nodejs-api","nodejs-development","nodejs-server","rest-services","restful-api"],"created_at":"2025-01-22T01:25:47.067Z","updated_at":"2026-05-01T08:31:55.548Z","avatar_url":"https://github.com/knaxus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scalable API Architecture\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bef9e90ff8d340a58bd307db645ce715)](https://app.codacy.com/app/ashokdey/rest-and-graphql?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=knaxus/rest-and-graphql\u0026utm_campaign=Badge_Grade_Dashboard)\n\nThis repository is a demostration of highly scalable \u0026 easily maintainable codebase architecture for both **REST \u0026 GraphQL API** interface.\n\n![Banner](./__assets/banner.png)\n\n## Tech Stack\n\n- Node.js\n- GraphQL\n- MySQL\n\n## Work Progress\n\n- Upcoming APIs in this repo\n  - User Registration\n  - ACL\n  - Admin Portal\n  - Seller Portal\n- Unit Testing\n  - REST endpoints\n  - GraphQL endpoints\n- CI and CD\n\n## Run locally\n\n- Clone the repo\n- `npm install`\n- Setup a `.env` file at the root of the repo\n- `npm run dev`\n- GraphQL endpoint will be http://localhost:PORT/graphql\n\n## Notes\n\n- Contents of `.env` file\n\n```env\nPORT=8080\nNODE_ENV = development\nREAD_DB_HOST = localhost\nREAD_DB_USER = root\nREAD_DB_PASSWORD = password\nREAD_DB_NAME = awesome_products\nREAD_DB_PORT = 3306\nREAD_DB_CONNECTION_LIMIT = 10\nWRITE_DB_HOST = localhost\nWRITE_DB_USER = root\nWRITE_DB_PASSWORD = password\nWRITE_DB_NAME = awesome_products\nWRITE_DB_PORT = 3306\nWRITE_DB_CONNECTION_LIMIT = 10\n```\n\n- Use the `SQL` file located in `resources` folder to create the database\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknaxus%2Frest-and-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknaxus%2Frest-and-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknaxus%2Frest-and-graphql/lists"}