{"id":50874130,"url":"https://github.com/imperadorxs/todo-api","last_synced_at":"2026-06-15T08:02:43.033Z","repository":{"id":303866656,"uuid":"356609924","full_name":"imperadorxs/todo-api","owner":"imperadorxs","description":"A robust api, for creating lists and tasks, plus all the functionality of login, password recovery and password reset, and account creation, created with nodejs in typescript using express","archived":false,"fork":false,"pushed_at":"2021-04-13T13:30:28.000Z","size":206,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T06:05:16.723Z","etag":null,"topics":["express","mongodb","node","nodejs","postgresql","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/imperadorxs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-04-10T14:42:50.000Z","updated_at":"2023-08-31T06:05:26.000Z","dependencies_parsed_at":"2025-07-10T06:20:37.414Z","dependency_job_id":null,"html_url":"https://github.com/imperadorxs/todo-api","commit_stats":null,"previous_names":["imperadorxs/todo-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imperadorxs/todo-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imperadorxs%2Ftodo-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imperadorxs%2Ftodo-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imperadorxs%2Ftodo-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imperadorxs%2Ftodo-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imperadorxs","download_url":"https://codeload.github.com/imperadorxs/todo-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imperadorxs%2Ftodo-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34353193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["express","mongodb","node","nodejs","postgresql","typescript"],"created_at":"2026-06-15T08:02:41.964Z","updated_at":"2026-06-15T08:02:43.028Z","avatar_url":"https://github.com/imperadorxs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://imperadorxs-images.s3.amazonaws.com/todo-api.png)\n\n\u003ch3 align=\"center\"\u003e\n  API to register tasks todo\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"GitHub top language\" src=\"https://img.shields.io/github/languages/top/imperadorxs/todo-api\"\u003e\n\n  \u003ca href=\"https://www.linkedin.com/in/imperadorxs/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg alt=\"Made by\" src=\"https://img.shields.io/badge/made%20by-Allan%20Santiago-%20\"\u003e\n  \u003c/a\u003e\n\n  \u003cimg alt=\"Repository size\" src=\"https://img.shields.io/github/repo-size/imperadorxs/todo-api\"\u003e\n\n  \u003ca href=\"https://github.com/imperadorxs/todo-api/commits/main\"\u003e\n    \u003cimg alt=\"GitHub last commit\" src=\"https://img.shields.io/github/last-commit/imperadorxs/todo-api\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://github.com/imperadorxs/todo-api/issues\"\u003e\n    \u003cimg alt=\"Repository issues\" src=\"https://img.shields.io/github/issues/imperadorxs/todo-api\"\u003e\n  \u003c/a\u003e\n\n  \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/imperadorxs/todo-api\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-about-the-project\"\u003eAbout the project\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-technologies\"\u003eTechnologies\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-getting-started\"\u003eGetting started\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-how-to-contribute\"\u003eHow to contribute\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"#-license\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n\n## 👨🏻‍💻 About the project\n\nThis API allows you to create a user and log in, create lists and tasks, in addition to creating tasks for the current day or independent tasks.\nProject developed using TDD, in addition to being developed based on 3 entities, User, Task, List.\n\n## 🚀 Technologies\n\nTechnologies that I used to develop this api\n\n- [Node.js](https://nodejs.org/en/)\n- [Typescript](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html)\n- [Express](https://expressjs.com/pt-br/)\n- [TypeORM](https://typeorm.io/#/)\n- [JWT-token](https://jwt.io/)\n- [PostgreSQL](https://www.postgresql.org/)\n- [Redis](https://hub.docker.com/_/redis)\n- [Date-fns](https://date-fns.org/)\n- [Nodemailer](https://nodemailer.com/)\n- [ethereal](https://ethereal.email/)\n- [handlebars](https://handlebarsjs.com/)\n- [multer](https://github.com/expressjs/multer)\n- [celebrate](https://github.com/arb/celebrate)\n- [class-transformer](https://github.com/typestack/class-transformer)\n- [rate-limiter-flexible](https://github.com/animir/node-rate-limiter-flexible/wiki/Overall-example)\n- [Jest](https://jestjs.io/)\n- [Babel](https://babeljs.io/setup)\n- [Eslint](https://eslint.org/)\n- [Prettier](https://prettier.io/)\n- [EditorConfig](https://editorconfig.org/)\n\n## 💻 Getting started\n\nImport the `Insomnia.json` on Insomnia App\n\n### Requirements\n\n- [Docker](https://www.docker.com/)\n- [Node](https://nodejs.org/en/download/)\n- [Yarn](https://classic.yarnpkg.com/en/docs/install#windows-stable)\n\n**Clone the project and access the folder**\n\n```bash\n$ git clone https://github.com/imperadorxs/todo-api \u0026\u0026 cd todo-api\n```\n\n**Follow the steps below**\n\n```bash\n\n# Create a docker container postgres\n# Change POSTGRES_PASSWORD\n# if your have other container using postres change the first external port to 5436 or greather\n$ docker run --name todo-api -e POSTGRES_PASSWORD=your-password -p 5432:5432 -d postgres\n\n# Create a docker container redis\n# if your have other container using redis change the first external port to 6380 or greather\n$ docker run -d --name redis -e REDIS_PASSWORD= -p 6379:6379 redis:alpine\n\n# Install the dependencies\n$ yarn\n\n# Make a copy of '.env.example' to '.env'\n# and set with your environment variables\n# remenber generate an md5 code at http://www.md5.cz/ and change the variable APP_SECRET\n\n$ cp .env.example .env\n\n# Make a copy of 'ormconfig.example.json' to 'ormconfig.json'\n# and set with your database variables\n\n$ cp ormconfig.example.json ormconfig.json\n\n# Run the migrations and seeds\n$ yarn typeorm migration:run\n\n# Run this command to start the server in development mode\n$ yarn dev:server\n\n# to generate your build\n# when you generate build remenber for change src to dist and ts to js in ormconfig.json\n$ yarn build\n\n# start aplication *NEED BUILD *\n$ yarn start\n\n# Well done, project is started!\n```\n## 👨🏻‍💻 Endpoints\n\n# User\n- /users: [ POST ] Sign up to create a new user.\n- /users/avatar: [ PUT ] To change a profile image.\n- /password/forgot: [ POST ] To generate a new token to reset password.\n- /password/reset: [ POST ] To use a token for reset password.\n- /profile: [ GET ] To get user profile data.\n- /profile: [ PUT ] To update use profile data.\n- /sessions: [ POST ] Sign in to get the access token.\n\n# Lists\n- /lists: [ GET ] Get all user lists.\n- /lists: [ POST ] Create a new list.\n- /lists: [ DEL ] Delete one user list.\n- /lists: [ PUT ] Update one user list.\n\n# Tasks\n- /tasks: [ GET ] Get all user tasks.\n- /tasks/scheduled: [ GET ] Get all user scheduled tasks.\n- /tasks/type: [ GET ] Get all user tasks by type.\n- /tasks/today: [ GET ] Get all user today tasks.\n- /tasks: [ POST ] Create a new task.\n- /tasks: [ DEL ] Delete one task.\n- /tasks: [ PUT ] Update one task.\n\n\n## 🤔 How to contribute\n\n- **Make a fork of this repository**\n\n```bash\n# Fork using GitHub official command line\n# If you don't have the GitHub CLI, use the web site to do that.\n\n$ gh repo fork imperadorxs/todo-api\n```\n\n```bash\n# Clone your fork\n$ git clone your-fork-url \u0026\u0026 cd todo-api\n\n# Create a branch with your feature\n$ git checkout -b my-feature\n\n# Make the commit with your changes\n$ git commit -m 'feat: My new feature'\n\n# Send the code to your remote branch\n$ git push origin my-feature\n```\n\nAfter your pull request is merged, you can delete your branch\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\nMade with 💜\u0026nbsp; by Allan Santiago 👋 [See my linkedin](https://www.linkedin.com/in/imperadorxs/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimperadorxs%2Ftodo-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimperadorxs%2Ftodo-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimperadorxs%2Ftodo-api/lists"}