{"id":21702915,"url":"https://github.com/imrlopezag/ts-api-template","last_synced_at":"2026-03-04T07:32:38.337Z","repository":{"id":152241923,"uuid":"625084297","full_name":"ImRLopezAG/Ts-Api-Template","owner":"ImRLopezAG","description":"This is an API template made with express and typescript, to speed up your development, it contains repositories and generic services for the typical CRUD actions, based on a Sequelize model, we use it for data persistence","archived":false,"fork":false,"pushed_at":"2023-11-27T13:19:25.000Z","size":192,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T09:22:06.066Z","etag":null,"topics":["api-template","express","jwt","jwt-authentication","mongodb","mongoose","nodejs","ts-api-template","typescript","typescript-api"],"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/ImRLopezAG.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}},"created_at":"2023-04-08T02:58:21.000Z","updated_at":"2024-02-20T17:21:52.000Z","dependencies_parsed_at":"2023-11-27T14:31:57.465Z","dependency_job_id":"36a07ad8-eb18-4bcb-aeb0-43ecf0cf70d6","html_url":"https://github.com/ImRLopezAG/Ts-Api-Template","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/ImRLopezAG%2FTs-Api-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImRLopezAG%2FTs-Api-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImRLopezAG%2FTs-Api-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImRLopezAG%2FTs-Api-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ImRLopezAG","download_url":"https://codeload.github.com/ImRLopezAG/Ts-Api-Template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586227,"owners_count":21128995,"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":["api-template","express","jwt","jwt-authentication","mongodb","mongoose","nodejs","ts-api-template","typescript","typescript-api"],"created_at":"2024-11-25T21:22:11.617Z","updated_at":"2026-03-04T07:32:33.287Z","avatar_url":"https://github.com/ImRLopezAG.png","language":"TypeScript","readme":"\n# Ts-Template-Api\n\nThis is an API template made with express and typescript, to speed up your development, it contains repositories and generic services for the typical CRUD actions, based on a Sequelize model, we use it for data persistence\n\n```\nORM: Sequelize\nLanguage: Typescript\nFramework: Express\nDatabase: mySql\nDeploy: Vercel,\nAuth: JWT\nDocumentation: Swagger\n```\n## Badges\n\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)\n![GitHub Last Commit](https://img.shields.io/github/last-commit/ImRLopezAG/Forget-Project)\n\n### 🛠️ Tools\n\n[![Node](https://img.shields.io/badge/Node-339933?logo=node.js\u0026logoColor=white)](https://nodejs.org/es/)\n[![Express](https://img.shields.io/badge/Express-000000?logo=express\u0026logoColor=white)](https://expressjs.com/es/)\n[![Typescript](https://img.shields.io/badge/Typescript-3178C6?logo=typescript\u0026logoColor=white)](https://www.typescriptlang.org/)\n[![Sequelize](https://img.shields.io/badge/Sequelize-52B0E7?logo=sequelize\u0026logoColor=white)](https://sequelize.org/)\n[![Mysql](https://img.shields.io/badge/Mysql-4479A1?logo=mysql\u0026logoColor=white)](https://www.mysql.com/)\n[![Vercel](https://img.shields.io/badge/Vercel-000000?logo=vercel\u0026logoColor=white)](https://vercel.com/)\n[![JWT](https://img.shields.io/badge/JWT-000000?logo=json-web-tokens\u0026logoColor=white)](https://jwt.io/)\n[![Swagger](https://img.shields.io/badge/Swagger-85EA2D?logo=swagger\u0026logoColor=black)](https://swagger.io/)\n[![Prettier](https://img.shields.io/badge/Prettier-F7B93E?logo=prettier\u0026logoColor=black)](https://prettier.io/)\n[![Eslint](https://img.shields.io/badge/Eslint-4B32C3?logo=eslint\u0026logoColor=white)](https://eslint.org/)\n![Ts-Standard](https://img.shields.io/badge/Ts--Standard-3178C6?logo=typescript\u0026logoColor=white)\n\n## Installation\n\n\n```bash\n git clone https://github.com/ImRLopezAG/Ts-Api-Template.git\n\n cd my-project\n npm install my-project\n\n cd my-project\n yarn install my-project\n\n cd my-project\n pnpm install my-project\n\n you need to configure .env file like the .env.dev  also you can add your configuration\n```\n    \n## API Reference\n\n### Authenticate with JWT\n\n```\n  Post /api/Auth/Login\n```\n\n| Body | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `username` | `string` | **Required**. username |\n| `password` | `string` | **Required**. password |\n\n\n#### Get all items\n\n```\n  GET /api/Entity/List\n```\n\n#### Get item\n\n```\n GET /api/Entity/Get/${id}\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `string` | **Required**. Id of item to fetch |\n\n#### Post item\n\n```\n Post /api/Entity/Create\n```\n\n| Body | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `Entity Properties`      | `Entity` | **Required**. properties of item to fetch |\n\n#### Update item\n\n```\n Put /api/Entity/Update\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `string` | **Required**. Id of item to update |\n\n\n| Body | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `Entity Properties`      | `Entity` | **Required**. properties of item to put |\n\n#### Delete item\n\n```\n Delete /api/Entity/Delete\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `string` | **Required**. Id of item to delete |\n\n## Users\n\n### Get Users\n\n```\n  GET /api/User/List\n```\n\n\n### Get User\n\n```\n  GET /api/User/Get/${id}\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `string` | **Required**. Id of item to fetch |\n### Get User by email\n\n```\n  GET /api/User/email/${email}\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `email`      | `string` | **Required**. Id of item to fetch |\n### Get User by username\n\n```\n  GET /api/User/username/${username}\n```\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `username`      | `string` | **Required**. Id of item to fetch |\n\n\n### Add User\n\n```\n  Post /api/User/Create\n```\n\n| Body | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `email`      | `string` | **Required**.  |\n| `username`      | `string` | **Required**.  |\n| `password`      | `string` | **Required**.  |\n\n### Update User\n\n```\n  Put /api/User/Update/${id}\n```\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `string` | **Required**.|\n\n| Body | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `email`      | `string` | **Required**.  |\n| `username`      | `string` | **Required**.  |\n| `password`      | `string` | **Required**.  |\n\n### Delete User\n\n```\n  Delete /api/User/Delete/${id}\n```\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `id`      | `string` | **Required**.|\n\n\n\n## Authors\n\n- [@ImRLopez](https://www.github.com/imrlopezag)\n\n\n## 🔗 Links\n[![portfolio](https://img.shields.io/badge/my_portfolio-000?style=for-the-badge\u0026logo=ko-fi\u0026logoColor=white)](https://imrlopez.dev)\n[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/in/angel-gabriel-lopez/)\n[![twitter](https://img.shields.io/badge/twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white)](https://twitter.com/imr_lopez)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimrlopezag%2Fts-api-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimrlopezag%2Fts-api-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimrlopezag%2Fts-api-template/lists"}