{"id":18332696,"url":"https://github.com/rockncoder/nov11","last_synced_at":"2025-04-09T18:39:44.354Z","repository":{"id":146635836,"uuid":"110356272","full_name":"Rockncoder/nov11","owner":"Rockncoder","description":"Day 2's base code","archived":false,"fork":false,"pushed_at":"2017-12-15T20:51:14.000Z","size":1108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T11:20:22.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Rockncoder.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":"2017-11-11T15:26:00.000Z","updated_at":"2018-01-26T11:21:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7c61e5c-4c1a-422e-891b-baf8d86e5763","html_url":"https://github.com/Rockncoder/nov11","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rockncoder%2Fnov11","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rockncoder%2Fnov11/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rockncoder%2Fnov11/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rockncoder%2Fnov11/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rockncoder","download_url":"https://codeload.github.com/Rockncoder/nov11/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248089515,"owners_count":21045917,"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":[],"created_at":"2024-11-05T19:39:49.423Z","updated_at":"2025-04-09T18:39:44.336Z","avatar_url":"https://github.com/Rockncoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Node Bootcamp \nThis app demonstrates using restify to create a microservice RESTful API in Node.js. \n* The API use webtokens to secure\n* Shows how to decompose node apps using modules\n* Use socket.io to support messaging\n* More features coming later\n\nHow this project was built:\n* mkdir nov11\n* cd nov11\n* npm init\n* npm i -s restify bunyan restify-bunyan-logger restify-jwt-community jsonwebtoken socket.io delivery\n* Install Jasmine globally \n* npm install -g jasmine\n\n### JSON Web Tokens\n\nIn order to get a token, call the \"/token\" path with your email + password in the post body as JSON. It much match one of the accounts in users.js. \nA token will be returned. Then return that token on all calls to subsequent paths in the header as a Bearer token:\n\nAuthorization: Bearer \u003ctoken\u003e\n\n\n### socket.io ###\n\nTester: \n* http://amritb.github.io/socketio-client-tool/#\n* http://localhost:8000/\n\n\n### Online References ###\n* https://www.npmjs.com/package/bunyan\n* https://www.npmjs.com/package/delivery \n* https://thiscouldbebetter.wordpress.com/2015/08/21/a-simple-web-server-in-node-js-with-a-mariadb-backend/\n* https://www.tutorialspoint.com/socket.io/socket.io_environment.htm\n* https://socket.io/get-started/chat/\n* https://blog.risingstack.com/node-js-mysql-example-handling-hundred-gigabytes-of-data/\n* https://mariadb.org/mariadb-non-blocking-client-api-and-node-js/\n* npm install restify-jwt* https://scotch.io/tutorials/authenticate-a-node-js-api-with-json-web-tokens\n* https://www.owasp.org/index.php/Password_Storage_Cheat_Sheet\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockncoder%2Fnov11","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frockncoder%2Fnov11","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockncoder%2Fnov11/lists"}