{"id":24497187,"url":"https://github.com/dpisati/node-typeorm","last_synced_at":"2026-04-13T08:30:59.492Z","repository":{"id":117127296,"uuid":"326097471","full_name":"dpisati/node-typeorm","owner":"dpisati","description":"This is a Boilerplate to start quick and fresh your new project with authentication and authorization using JWT, TypeORM and TypeScript. This project was made by Matheus Silva.","archived":false,"fork":false,"pushed_at":"2021-01-02T19:25:51.000Z","size":139,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T06:31:37.312Z","etag":null,"topics":["api","jwt","typeorm","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dpisati.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":"2021-01-02T02:59:52.000Z","updated_at":"2022-05-15T20:23:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb29c811-d259-4655-b7fb-1db1ac057d4e","html_url":"https://github.com/dpisati/node-typeorm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dpisati/node-typeorm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpisati%2Fnode-typeorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpisati%2Fnode-typeorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpisati%2Fnode-typeorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpisati%2Fnode-typeorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpisati","download_url":"https://codeload.github.com/dpisati/node-typeorm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpisati%2Fnode-typeorm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","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":["api","jwt","typeorm","typescript"],"created_at":"2025-01-21T21:32:55.934Z","updated_at":"2026-04-13T08:30:59.476Z","avatar_url":"https://github.com/dpisati.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003e\n    \u003cimg src=\"./.github/image.png\" alt=\"Boilerplate\" /\u003e\n    \u003cbr\u003e\u003cbr\u003e\n    \u003cb\u003eTypeScript, TypeORM, JWT - API Boilerplate.\u003c/b\u003e  \n    \u003cbr\u003e\n\u003c/h3\u003e\n\n# Index\n\n- [About](#about)\n- [Functionalities](#functionalities)\n- [Technologies](#technologies)\n- [How to use](#how-to-use)\n- [How to contribute](#how-to-contribute)\n\n\u003ca id=\"about\"\u003e\u003c/a\u003e\n\n## :bookmark: About\n\nThis is a Boilerplate to start quick and fresh your new project with authentication and authorization using JWT, TypeORM and TypeScript. \nThis project was made by [Matheus Silva](https://github.com/maateusilva) - [Youtube](https://www.youtube.com/watch?v=TjAXBLszCb0\u0026list=PLrxGhJAruLiIJYfBkKme8I1XPvbMEgpFC\u0026index=22).\n\n\u003ca id=\"functionalities\"\u003e\u003c/a\u003e\n\n## :fire: Functionalities\n\n- ### **Register**\n\n  - Register User with: Name, Email and Password.\n  - On Register: check if user alreay exists (unique email).\n  - On Register: check if user added name, email and password.\n  - Hash user password using bcryptjs.\n\n- ### **Authenticate**\n\n  - Authenticate user with Email and Password.\n  - On authenticate: check if user added name and password.\n  - On authenticate: check if user is valid.\n  - On authenticate: check if password matches with hash.\n  - Receive token as response containing: id, name, email, user type (admin / user).\n\n- ### **Middleware**\n\n  - Middleware check if has a token and if is valid.\n\n\u003ca id=\"technologies\"\u003e\u003c/a\u003e\n\n## :rocket: Technologies\n\nThe project is made with:\n\n- [TypeScript](https://www.typescriptlang.org/)\n- [JWT](https://jwt.io/)\n- [TypeORM](https://typeorm.io/#/)\n- [Node.js](https://nodejs.org/en/)\n- [Express](https://expressjs.com/)\n- [Bcryptjs](https://www.npmjs.com/package/bcryptjs)\n- [Nodemon](https://nodemon.io/)\n- [Dotenv](https://www.npmjs.com/package/dotenv)\n\n\u003ca id=\"how-to-use\"\u003e\u003c/a\u003e\n\n## :fire: How to Use\n\n- ### **Dependencies**\n\n  - Is **required** to install **[Node.js](https://nodejs.org/en/)**\n  - In order to run scripts and install dependencies you need to install a **package manager** (ie: **[YARN](https://yarnpkg.com/)**).\n\n  \u003cbr\u003e\n\n1. First step, clone this github repository:\n\n```sh\n  $ git clone https://github.com/dpisati/node-typeorm.git\n```\n\n2. Add variables on `.env` file:\n\nThe **api** requires some environment variables stored inside the `.env` file.\n\nExample:\n\nFile: `.env`\n\nContent:\n\n```text\nPORT = add a port or run on 3333 by default\nJWT_SECRET = strong password to be used by JWT\nJWT_EXPIRES_IN = set how long the token should be valid\n```\n\n3. Configure `ormconfig.json` to connect the database. Default values as below:\n\n```text\n{\n    \"type\": \"mysql\",\n    \"host\": \"localhost\",\n    \"port\": 3306,\n    \"username\": \"root\",\n    \"password\": \"\",\n    \"database\": \"node-typeorm\",\n    \"entities\": [\n       \"src/app/models/*.ts\"\n    ],\n    \"migrations\": [\n       \"src/database/migrations/*.ts\"\n    ],\n    \"cli\": {\n        \"migrationsDir\": \"src/database/migrations\"\n    }\n }\n```\n\n4. Run the application:\n\n```sh\n  # Install dependencies.\n  $ yarn install\n\n  ## Create the database using TypeORM\n  $ yarn typeorm migration:run\n\n  # Start the API\n  $ yarn run dev\n```\n\n\n\u003ca id=\"how-to-contribute\"\u003e\u003c/a\u003e\n\n## :recycle: How to Contribute\n\n- Create a Fork from this repo,\n- Create a branch with your feature: `git checkout -b my-feature`\n- Commit changes: `git commit -m 'feat: My new feature'`\n- Push to your branch: `git push origin my-feature`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpisati%2Fnode-typeorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpisati%2Fnode-typeorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpisati%2Fnode-typeorm/lists"}