{"id":23460152,"url":"https://github.com/a-m-dev/nodejs_simple_restful_api","last_synced_at":"2025-12-30T21:44:43.973Z","repository":{"id":42915189,"uuid":"248884099","full_name":"a-m-dev/NodeJs_Simple_Restful_API","owner":"a-m-dev","description":"Simple Standard NodeJs setup for Restful Api design","archived":false,"fork":false,"pushed_at":"2023-07-11T02:42:40.000Z","size":2300,"stargazers_count":0,"open_issues_count":18,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T10:49:07.478Z","etag":null,"topics":["babel","mongodb","mongoose","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"","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/a-m-dev.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":"2020-03-21T01:19:05.000Z","updated_at":"2023-08-03T18:39:46.000Z","dependencies_parsed_at":"2025-02-16T00:32:13.017Z","dependency_job_id":null,"html_url":"https://github.com/a-m-dev/NodeJs_Simple_Restful_API","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/a-m-dev/NodeJs_Simple_Restful_API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-m-dev%2FNodeJs_Simple_Restful_API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-m-dev%2FNodeJs_Simple_Restful_API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-m-dev%2FNodeJs_Simple_Restful_API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-m-dev%2FNodeJs_Simple_Restful_API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-m-dev","download_url":"https://codeload.github.com/a-m-dev/NodeJs_Simple_Restful_API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-m-dev%2FNodeJs_Simple_Restful_API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270899433,"owners_count":24664712,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":["babel","mongodb","mongoose","nodejs","rest-api"],"created_at":"2024-12-24T06:44:42.411Z","updated_at":"2025-12-30T21:44:43.934Z","avatar_url":"https://github.com/a-m-dev.png","language":"JavaScript","readme":"# nodejs_standard_setup\n\nSimple Standard NodeJs setup for Restful Api design\n\n### boot up\n\nmake sure that mongo is runing on your machine on port `27017` or also you can pull docker image of mongodb and use that. for starting the project just run `npm install` first and `npm run serve` to spin up that on port `:3010`.\n\n### description\n\nthis is just a simple repo for you to see how nodejs basically sets up for a standard Restful API. in feature brances Jest will be added for testing. for now there are just couple of middlewares to handle a bit of error handeling and more importantly cors issues and response to `OPTIONS` method. also there is a resource called `author` that has controller as much as route and model.\n\n### build\n\nyou are using ESM mosules in the entire project, which enabels you to use `import/export`, `async/await` and many more features of ES6 in this project, so , in order to transpile that to regular js you need to run `npm run build`; this command would create a `built` folder in root directory and actually you can create a docker file to spins up a node js with an nginx and runs the content of that folder and there we go, you got your backend system!\n\nalso notice that in `mongoConnect.js` remember to change the connection string when you build and want to deploy, any changes in the `docker-compose.yml` file in order to improve the usablity would be appritiated to send some pull request to me!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-m-dev%2Fnodejs_simple_restful_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-m-dev%2Fnodejs_simple_restful_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-m-dev%2Fnodejs_simple_restful_api/lists"}