{"id":18709090,"url":"https://github.com/baguilar6174/nest-store-server","last_synced_at":"2026-04-16T05:33:47.230Z","repository":{"id":64084566,"uuid":"570355475","full_name":"baguilar6174/nest-store-server","owner":"baguilar6174","description":"This API Rest presents a product server for an ecommerce with Authentication and Authorization using PostgreSQL database relationships.","archived":false,"fork":false,"pushed_at":"2022-12-16T02:59:38.000Z","size":812,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-19T08:11:29.660Z","etag":null,"topics":["docker","jwt","nestjs","nestjs-backend","postgresql","swagger","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/baguilar6174.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}},"created_at":"2022-11-25T01:28:20.000Z","updated_at":"2022-12-16T02:25:20.000Z","dependencies_parsed_at":"2023-01-14T21:30:27.474Z","dependency_job_id":null,"html_url":"https://github.com/baguilar6174/nest-store-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/baguilar6174/nest-store-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baguilar6174%2Fnest-store-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baguilar6174%2Fnest-store-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baguilar6174%2Fnest-store-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baguilar6174%2Fnest-store-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baguilar6174","download_url":"https://codeload.github.com/baguilar6174/nest-store-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baguilar6174%2Fnest-store-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31872654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":["docker","jwt","nestjs","nestjs-backend","postgresql","swagger","typeorm","typescript"],"created_at":"2024-11-07T12:26:15.602Z","updated_at":"2026-04-16T05:33:47.199Z","avatar_url":"https://github.com/baguilar6174.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo-small.svg\" width=\"200\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456\n[circleci-url]: https://circleci.com/gh/nestjs/nest\n\n## Description\n\nThis API Rest presents a product server for an ecommerce using PostgreSQL database relationships.\n\n## Installation\n\nClone this repository\n\n```bash\ngit clone https://github.com/baguilar6174/nest-store-server.git\n```\n\nInstall dependencies\n\n```bash\n$ yarn\n```\n\nYou need Nest CLI\n\n```bash\n$ npm i -g @nestjs/cli\n```\n\nConfigure and start Database (in the root project)\n\n```bash\ndocker-compose up -d\n```\n\nClone `.env.template` file and rename to `.env`\n\nComplete environment variables\n\n## Running the app\n\n```bash\n# development\n$ yarn start\n\n# watch mode\n$ yarn start:dev\n\n# production mode\n$ yarn start:prod\n```\n\n## Endpoints\n\n```\nPopulate DB (users and products)\n\nhttp://localhost:300/api/v1/seed\n```\n\nYou can find all endpoints here:\n\n```\nSwagger documentation\n\nhttp://localhost:3000/api\n```\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eSwagger documentation\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\" valign=\"center\"\u003e\u003cimg src=\"./media/swagger.png\" width=\"75%\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nAlso you can use [`Postman Collention`](./media/postman_collection.json)\n\n## My process\n\n### Built with\n\n- Nest JS\n- Typescript\n- PostgreSQL\n- TypeORM\n\n### What I learned\n\n- Nest with TypeScript\n- Restful APIS with PostgreSQL\n- TypeORM\n- Create and using Constrains\n- Data validations and types\n- Nest core building blocks\n  - Services\n  - Controllers\n  - Providers\n  - Decorators\n  - Gateways\n  - Guards\n  - Interceptors\n  - Exception Filters\n  - Modules\n- DTOs (Data Transfer Object)\n- Entities and TypeORM decorators\n- Class Validator\n- Class Transformer\n- Results pagination\n- Tables relationships (one to many | many to one)\n- Query Runner\n- Query Builder\n- Transactions\n- Commits and rollbacks\n- Using File System\n- Authentication\n- Authorization\n- Json Web Tokens\n- Password Hash\n- Nest Passport\n- Protect endpoints\n- Custom Method Decorators\n- Custom Class Decorators\n- Custom Property Decorators\n- Using Tokens\n- Postman documentation\n- Nest Swagger\n\n## TODO\n\n- Use plainToInstance to return a entity with custom fields\n- Use constants (delete magic strings)\n- Api documentation (using Swagger decorators)\n- Refresh token endpoint\n- Timestamps in entities\n\n## Stay in touch\n\n- Website - [www.bryan-aguilar.com](https://www.bryan-aguilar.com/)\n- Medium - [baguilar6174](https://baguilar6174.medium.com/)\n- LinkeIn - [baguilar6174](https://www.linkedin.com/in/baguilar6174)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaguilar6174%2Fnest-store-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaguilar6174%2Fnest-store-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaguilar6174%2Fnest-store-server/lists"}