{"id":14957551,"url":"https://github.com/makinhs/rest-api-tutorial","last_synced_at":"2025-04-04T11:12:31.729Z","repository":{"id":33037224,"uuid":"134106108","full_name":"makinhs/rest-api-tutorial","owner":"makinhs","description":"This is a sample source code for the article published on Toptal: https://www.toptal.com/nodejs/secure-rest-api-in-nodejs","archived":false,"fork":false,"pushed_at":"2023-02-01T07:21:15.000Z","size":367,"stargazers_count":431,"open_issues_count":4,"forks_count":303,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-28T10:06:26.215Z","etag":null,"topics":["expressjs","expressjs-api","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/makinhs.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":"2018-05-19T23:48:59.000Z","updated_at":"2025-02-26T03:38:30.000Z","dependencies_parsed_at":"2024-12-13T15:08:42.420Z","dependency_job_id":"e5476b06-e421-4fdc-b1b5-b58588404482","html_url":"https://github.com/makinhs/rest-api-tutorial","commit_stats":{"total_commits":32,"total_committers":12,"mean_commits":"2.6666666666666665","dds":0.71875,"last_synced_commit":"8722596a2c5e7d206c1c7fe8244392354af0a9dd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makinhs%2Frest-api-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makinhs%2Frest-api-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makinhs%2Frest-api-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makinhs%2Frest-api-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makinhs","download_url":"https://codeload.github.com/makinhs/rest-api-tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"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":["expressjs","expressjs-api","rest-api"],"created_at":"2024-09-24T13:15:08.130Z","updated_at":"2025-04-04T11:12:31.702Z","avatar_url":"https://github.com/makinhs.png","language":"JavaScript","readme":"# REST API Tutorial\n\nThis sample is published as part of [the corresponding article](https://www.toptal.com/nodejs/secure-rest-api-in-nodejs) at the Toptal Engineering Blog. Visit https://www.toptal.com/developers/blog and subscribe to our newsletter to read great posts!\n\n## Before using\n\n- Please make sure that you have:\n - Node.js installed (https://nodejs.org/)\n - MongoDB installed and running locally (https://www.mongodb.com/)\n   - Using Windows, just open the terminal at where you installed mongo and run `mongod.exe`\n - Run `npm install` or `yarn` in your root project folder\n\n## Usage\n\nTo run the project, please use a command line the following:\n - `npm start`\n    - It will run the server at port 3600.\n\n\n### 2019-09-13 update\n\n- Refactored mongoose to a proper common service.\n- Added a Dockerfile and docker-compose configuration.\n\nIf you are familiar to docker and you have docker installed on your machine and just want to run the project without issues please do:\n\n - docker-compose build\n - docker-compose up\n - It will run the mongodb at port 27017 (for testing purposes only).\n - It will run the server at port 3600.\n\n### 2020-02-01\n\nI've created a 2020 version of this project using Typescript. If you might be interested on it, please check the following repository: https://github.com/makinhs/expressjs-api-tutorial\n\n### 2020-09-09\n\n- Updated and pruned dependencies.\n- Fixed deprecation warnings.\n- Leveraged `findOneAndUpdate` to simplify PATCH code.\n- Changed default MongoDB server name to `localhost` to simplify first-time setup.\n- Checked that it works with the latest version of Node.js, 14.9.0.\n\n### 2020-11-14\n\n- Accepted changes in the docker file that was causing MongoDB issues on Windows Subsystem Linux (WSL2) - Ubuntu.\n- If you are new to this project, I highly recommend starting with Typescript first, like we talk about here: https://www.toptal.com/express-js/nodejs-typescript-rest-api-pt-1\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakinhs%2Frest-api-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakinhs%2Frest-api-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakinhs%2Frest-api-tutorial/lists"}