{"id":16551109,"url":"https://github.com/michaelcurrin/express-rest-quickstart","last_synced_at":"2026-04-29T16:39:27.608Z","repository":{"id":93178182,"uuid":"262610002","full_name":"MichaelCurrin/express-rest-quickstart","owner":"MichaelCurrin","description":"A base REST API project using Express and Node","archived":false,"fork":false,"pushed_at":"2024-11-03T20:41:24.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T08:48:18.700Z","etag":null,"topics":["base","express","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MichaelCurrin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-09T16:17:13.000Z","updated_at":"2024-11-03T20:41:26.000Z","dependencies_parsed_at":"2024-09-10T22:42:10.127Z","dependency_job_id":"af8888b4-66b7-4282-8b2d-ddd152ff4623","html_url":"https://github.com/MichaelCurrin/express-rest-quickstart","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/MichaelCurrin/express-rest-quickstart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fexpress-rest-quickstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fexpress-rest-quickstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fexpress-rest-quickstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fexpress-rest-quickstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MichaelCurrin","download_url":"https://codeload.github.com/MichaelCurrin/express-rest-quickstart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fexpress-rest-quickstart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268229844,"owners_count":24217016,"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-01T02:00:08.611Z","response_time":67,"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":["base","express","nodejs","rest-api"],"created_at":"2024-10-11T19:36:23.229Z","updated_at":"2026-04-29T16:39:27.577Z","avatar_url":"https://github.com/MichaelCurrin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express JS REST Quickstart\n\u003e A base REST API project using Express and Node\n\n[![GitHub tag](https://img.shields.io/github/tag/MichaelCurrin/express-rest-quickstart?include_prereleases=\u0026sort=semver)](https://github.com/MichaelCurrin/express-rest-quickstart/releases/)\n[![License](https://img.shields.io/badge/License-MIT-blue)](#license)\n\n[![Package - express](https://img.shields.io/github/package-json/dependency-version/MichaelCurrin/express-rest-quickstart/express?logo=express\u0026logoColor=white)](https://www.npmjs.com/package/express)\n\n\n## Requirements\n\n- [Node.js](https://nodejs.org)\n\n\n## Installation\n\n### Install system dependencies\n\nInstall Node.js using this [gist](https://gist.github.com/MichaelCurrin/aa1fc56419a355972b96bce23f3bccba).\n\n### Clone project\n\nClone repo.\n\n```sh\n$ git clone git@github.com:MichaelCurrin/express-rest-quickstart.git\n$ cd express-js-create-app-quickstart\n```\n\n### Install project dependencies\n\n```sh\nnpm install\n```\n\n\n## Usage\n\n### Serve\n\nStart local dev server.\n\n```sh\n$ npm start\n```\n\nOpen in the browser:\n\n- http://localhost:3000/\n\n### Request\n\nWhile the server is running, you can run these in another terminal tab.\n\n```sh\n$ curl http://localhost:3000/\n\n$ curl http://localhost:3000/foo\n\n$ curl http://localhost:3000/foo -X POST\n\n$ # Form data.\n$ curl http://localhost:3000/foo -X POST -d 'a=b'\n$ # JSON data.\n$ curl http://localhost:3000/foo -X POST -d '{\"a\": \"b\"}' -H \"Content-Type: application/json\"\n\n$ curl http://localhost:3000/foo -X DELETE\n\n$ curl http://localhost:3000/foo/123\n\n$ curl http://localhost:3000/bar\n\n$ # Verbose flag shows the error code.\n$ curl -v http://localhost:3000/baz\n$ curl -v http://localhost:3000/admin\n```\n\n\n## Developer notes\n\n### Attributes of the request object\n\n```javascript\nreq.body\nreq.url\nreq.headers\nreq.query\nreq.params\n```\n\n### Body parse\n\nYou do not need use use `bodyparser` package anymore to handle JSON body - see resources.\n\nThe `.urlencoded` middleware is needed to parse the form data. You pass explicitly pass it `extended` option (default is `true`), to avoid a deprecation warning. See [express #3650](https://github.com/expressjs/express/issues/3650).\n\nThe `.json` middleware parse JSON-formatted text for bodies with a Content-Type of `application/json`.\n\n\n## Resources\n\n- [expressjs.com](https://expressjs.com/) homepage.\n- [express](https://www.npmjs.com/package/express) package on NPM.\n- Express docs\n    - [Quickstart](https://expressjs.com/en/starter/hello-world.html)\n    - [Routing](https://expressjs.com/en/starter/basic-routing.html)\n    - [Route paths](http://expressjs.com/en/guide/routing.html#route-paths)\n    - [express Methods](http://expressjs.com/en/api.html#express.json)\n- Posts\n    - [You may not need bodyparser](https://medium.com/@mmajdanski/express-body-parser-and-why-may-not-need-it-335803cd048c)\n    - [Get HTTP POST Body in Express.js](https://stackabuse.com/get-http-post-body-in-express-js/)\n    - [How to setup Express JS server](https://dev.to/kyrelldixon/how-to-setup-an-express-js-server-in-node-js-56hp) - includes how to test in multiple ways\n\n\n## Related projects\n\n- [![MichaelCurrin - express-quickstart](https://img.shields.io/static/v1?label=MichaelCurrin\u0026message=express-quickstart\u0026color=blue\u0026logo=github)](https://github.com/MichaelCurrin/express-quickstart)\n- [![MichaelCurrin - node-project-template](https://img.shields.io/static/v1?label=MichaelCurrin\u0026message=node-project-template\u0026color=blue\u0026logo=github)](https://github.com/MichaelCurrin/node-project-template)\n\n\n## License\n\nReleased under [MIT](/LICENSE) by [@MichaelCurrin](https://github.com/MichaelCurrin).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcurrin%2Fexpress-rest-quickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelcurrin%2Fexpress-rest-quickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcurrin%2Fexpress-rest-quickstart/lists"}