{"id":16596314,"url":"https://github.com/tanmoythander/node-rest-server","last_synced_at":"2026-04-09T18:36:22.466Z","repository":{"id":28718951,"uuid":"119161448","full_name":"tanmoythander/node-rest-server","owner":"tanmoythander","description":"Secure REST API server example with Nodejs, Express, mongoose, JsonWebToken \u0026 bcrypt","archived":false,"fork":false,"pushed_at":"2022-12-22T04:56:36.000Z","size":349,"stargazers_count":0,"open_issues_count":10,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T01:10:40.434Z","etag":null,"topics":["authentication","bcrypt","express-js","express-middleware","expressjs","jsonwebtoken","mongodb","mongodb-database","mongoose","nodejs","rest-api","user-group-management"],"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/tanmoythander.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}},"created_at":"2018-01-27T12:13:18.000Z","updated_at":"2019-10-28T09:58:12.000Z","dependencies_parsed_at":"2023-01-14T09:25:18.692Z","dependency_job_id":null,"html_url":"https://github.com/tanmoythander/node-rest-server","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanmoythander%2Fnode-rest-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanmoythander%2Fnode-rest-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanmoythander%2Fnode-rest-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanmoythander%2Fnode-rest-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanmoythander","download_url":"https://codeload.github.com/tanmoythander/node-rest-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242270329,"owners_count":20100275,"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":["authentication","bcrypt","express-js","express-middleware","expressjs","jsonwebtoken","mongodb","mongodb-database","mongoose","nodejs","rest-api","user-group-management"],"created_at":"2024-10-11T23:52:51.411Z","updated_at":"2026-04-09T18:36:16.986Z","avatar_url":"https://github.com/tanmoythander.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-rest-server\n#### Secure REST API server example with Nodejs, Express, mongoose \u0026 JsonWebToken\n\n## Installing on local machine\n#### Please make sure you have node.js installed on your machine\nIf you don't have, [click here...](https://nodejs.org/)\n\n\n### 1. check if you have it installed or not,\n\n\tnpm -v\n\nand,\n\n\tnode -v\n\n\nyou should see some version info in return.\n\n### 2. Install the global packages\nrun the command on any directory\n\n\tnpm install -g nodemon apidoc eslint\n\t\nwait for it to be completed. It usually takes a minute or less to complete.\nIt will download all the dependencies.\n\n\n### 3. now go to the directory where you want to place the project files using git bash (terminal for mac)\n\nrun the command\n\n\tgit clone URL\n\nhere URL is the http url you get from the repository page, [Click here to clone](https://github.com/tanmoythander/node-rest-server/).\nPlease note that you need to authenticate to clone this private repository.\n\n### 4. now navigate to the project directory with cmd (terminal for mac)\nrun the command\n\n\tnpm install\n\t\nwait for it to be completed. It usually takes a minute or less to complete.\nIt will download all the dependencies.\n\n### 5. Configure the database\nYou will need to setup a mongodb database by your own.  \nAfter setting up the database, go to the line 247 of [app.js](https://github.com/tanmoythander/node-rest-server/blob/master/app.js) and replace the **CONNECTION_URI** with your mongodb Connection URI.  \nIf you dont know your Connection URI please [check here](https://docs.mongodb.com/manual/reference/connection-string/).\n\n### 6. Now run the command\n\n\tnpm start\t\nor,\n\n\tnode app.js\n\t\nIt will serve the project on default port (3484).  \nThe documentation of the default API set can be found [here](https://tanmoythander.info/api/node-rest-server/).\n\n\n## Developer Hint\n\n### Please change your editor configuration like below before you start development\n\n#### Indent character: \"\\t\" (tab)\n\n#### Indent size: 2\n\n#### Line endings: LF (unix)  \n\nIt's good to remember that, **./app.js** is the entry point to the app.  \n\n### Build apidoc\nrun the command\n\n\tnpm run apidoc\n\nIt will build the apidoc in the directory **./apidoc**.  \n\n### Lint source\nrun the command\n\n\tnpm run eslint\n\nIt will show warnings and errors if there is any formatting issue. In case of no formatting issue, it will show nothing.  \n\n### Install nodemon\nrun the command\n\n\tnpm run dev\n\t\nIt will serve the project. On any file saved, the app will be restarted and linted.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanmoythander%2Fnode-rest-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanmoythander%2Fnode-rest-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanmoythander%2Fnode-rest-server/lists"}