{"id":19777105,"url":"https://github.com/anibalventura/product-log-api","last_synced_at":"2026-04-28T12:02:25.584Z","repository":{"id":73487351,"uuid":"566091726","full_name":"anibalventura/product-log-api","owner":"anibalventura","description":"REST API for product updates. Built with NodeJS/Express, TypeScript and Prisma as ORM.","archived":false,"fork":false,"pushed_at":"2023-05-07T15:42:54.000Z","size":429,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T15:47:24.905Z","etag":null,"topics":["expressjs","nodejs","orm","prisma","rest-api","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/anibalventura.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-11-15T00:16:59.000Z","updated_at":"2023-02-08T21:50:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"abbd306b-dbb5-457c-92c7-1e5c1fe45450","html_url":"https://github.com/anibalventura/product-log-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anibalventura/product-log-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anibalventura%2Fproduct-log-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anibalventura%2Fproduct-log-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anibalventura%2Fproduct-log-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anibalventura%2Fproduct-log-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anibalventura","download_url":"https://codeload.github.com/anibalventura/product-log-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anibalventura%2Fproduct-log-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["expressjs","nodejs","orm","prisma","rest-api","typescript"],"created_at":"2024-11-12T05:23:13.088Z","updated_at":"2026-04-28T12:02:25.562Z","avatar_url":"https://github.com/anibalventura.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Product Log API\n\n[![License](https://img.shields.io/static/v1?label=License\u0026message=MIT\u0026color=blue)](LICENSE.md)\n\nCRUD API for product updates. Built with NodeJS/Express, TypeScript and Prisma as ORM.\n\n## Overview\n\n| Routes                   | Description                               | Request body | Response body    |\n| ------------------------ | ----------------------------------------- | ------------ | ---------------- |\n| `POST /user`             | Create a new user for API auth token      | Yes          | Bearer Token     |\n| `POST /user/login`       | Login existing user to get API auth token | Yes          | Bearer Token     |\n| `DELETE /user/:username` | Delete existing user                      | No           | Message object   |\n| `GET /product`           | Get all products                          | No           | Array of objects |\n| `GET /product/:id`       | Get a single product by id                | No           | Object           |\n| `POST /product`          | Create a single product                   | Yes          | Object           |\n| `PUT /product/:id`       | Update a single product                   | Yes          | Object           |\n| `DELETE /product/:id`    | Delete a single product                   | No           | Object           |\n| `GET /update`            | Get all products updates                  | No           | Array of objects |\n| `GET /update/:id`        | Get a single product update by id         | No           | Object           |\n| `POST /update`           | Create a single product update            | Yes          | Object           |\n| `PUT /update/:id`        | Update a single product update            | Yes          | Object           |\n| `DELETE /update/:id`     | Delete a single product update            | No           | Object           |\n\n## Usage\n\nPrerequisites:\n\n- [NodeJS](https://nodejs.org/en/) \u0026 [NPM](https://www.npmjs.com/)\n- Register on [Render](https://render.com/) and then create a free PostgreSQL DB.\n\n### Build \u0026 Run\n\n1. Clone and open the project on [Visual Studio Code](https://code.visualstudio.com/) or via terminal.\n2. Install dependencies running `npm install`\n3. Add DB connection string from [Render](https://render.com/) on `DATABASE_URL` variable to the corresponding `.env` file and on `./prisma/schema.prisma` datasource url.\n4. Run prisma migrations with `npx prisma migrate dev --name init`\n5. Run the project with `npm run dev`\n6. Create a new user and use the returned token as `Bearer Token` for authentication.\n\nNOTE: Check `postman_collection.json` for all available routes.\n\n### Tests\n\nRun all tests with `npm run test` or by file with `npm run test filename.test.ts`.\n\nCheck `./tests` folder for unit and integrations tests.\n\nNOTE: Check files and add a valid `Bearer Token` before running tests.\n\n## License\n\n```xml\nMIT License\n\nCopyright (c) 2023 Anibal Ventura\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanibalventura%2Fproduct-log-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanibalventura%2Fproduct-log-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanibalventura%2Fproduct-log-api/lists"}