{"id":22561920,"url":"https://github.com/cristianprochnow/signup-bcrypt-jwt-study","last_synced_at":"2026-04-13T22:33:39.029Z","repository":{"id":55643877,"uuid":"288029290","full_name":"cristianprochnow/signup-bcrypt-jwt-study","owner":"cristianprochnow","description":"🔐 A simple study case about how Bcrypt and JWT works in a register or authentication.","archived":false,"fork":false,"pushed_at":"2020-12-15T22:17:34.000Z","size":150,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T12:44:48.565Z","etag":null,"topics":["bcrypt","jwt","nodejs","sqlite","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/cristianprochnow.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}},"created_at":"2020-08-16T21:45:23.000Z","updated_at":"2020-08-17T03:48:12.000Z","dependencies_parsed_at":"2022-08-15T05:20:40.334Z","dependency_job_id":null,"html_url":"https://github.com/cristianprochnow/signup-bcrypt-jwt-study","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cristianprochnow/signup-bcrypt-jwt-study","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianprochnow%2Fsignup-bcrypt-jwt-study","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianprochnow%2Fsignup-bcrypt-jwt-study/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianprochnow%2Fsignup-bcrypt-jwt-study/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianprochnow%2Fsignup-bcrypt-jwt-study/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cristianprochnow","download_url":"https://codeload.github.com/cristianprochnow/signup-bcrypt-jwt-study/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianprochnow%2Fsignup-bcrypt-jwt-study/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bcrypt","jwt","nodejs","sqlite","typescript"],"created_at":"2024-12-07T22:10:53.906Z","updated_at":"2026-04-13T22:33:39.010Z","avatar_url":"https://github.com/cristianprochnow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📖 About\n\n**A simple study case about how Bcrypt and JWT works in a register or authentication.**\n\n## 🧰 Made with\n\n- TypeScript\n- Node\n- Express\n- Bcrypt\n- UUID\n- Knex\n- SQLite\n- Json Web Token (JWT)\n- Dotenv\n\n# 🏁 Getting started\n\n1. Clone this repository\n```bash\ngit clone https://github.com/cristianprochnow/signup-bcrypt-jwt-study.git\n```\n\n2. Install packages\n\n**NPM**\n```\nnpm install\n```\n**Yarn**\n```\nyarn\n```\n\n3. Start server\n\n**NPM**\n```\nnpm dev\n```\n**Yarn**\n```\nyarn dev\n```\n\n4. Make the migrations for database\n\n**NPM**\n```\nnpm knex:migrate\n```\n**Yarn**\n```\nyarn knex:migrate\n```\n\n5. Set up environment variables\n\n- Create a file with name `.env`, put the variable `SECRET_KEY` inside this one and then set a value. Example:\n```\n// example #1\nSECRET_KEY=bacon123\n\n// example #2\nSECRET_KEY=vnfnviinvreivn\n\n// example #3\nSECRET_KEY=ce83bebe-9dbc-4f80-89a4-96ffc98beedd\n\n// example #4\nSECRET_KEY=$2b$12$OCScM5a3x4ZYiqYQ2dIF1uo0bYdKjvMcvnKV35PXwu8TDDWRgd5I2\n```\n\n6. Set up the workspace in Insomnia\n\n[![Run in Insomnia][imsomnia-button]][insomnia-url]\n\n**It's done! 🎉**\n\n# 🛣 Roadmap\n\n- [x] Add TS setup\n- [x] Init TS\n- [x] Add `ts-node-dev` script\n- [x] Add ESLint\n- [x] Add database\n- [x] Create route for Sign Up\n- [x] Improve route for Sign Up\n  - [x] Add uuid\n  - [x] Add Bcrypt\n  - [x] Add verification for ensure that there are not two user with same username\n- [x] Process data\n- [x] Store in database\n- [x] Create route for Log In\n- [x] Create JWT\n  - [x] Add .env\n  - [x] Add secret key\n  - [x] Add JWT to login\n- [x] Create Middleware\n  - [x] Translate data from token\n\n_Made with ♥. Enjoy it!_\n\n[imsomnia-button]: https://insomnia.rest/images/run.svg\n[insomnia-url]: https://insomnia.rest/run/?label=SignupBcrypt\u0026uri=https%3A%2F%2Fgithub.com%2Fcristianprochnow%2Fsignup-bcrypt-jwt-study%2Fblob%2Fmaster%2FInsomnia.json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianprochnow%2Fsignup-bcrypt-jwt-study","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcristianprochnow%2Fsignup-bcrypt-jwt-study","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianprochnow%2Fsignup-bcrypt-jwt-study/lists"}