{"id":15137549,"url":"https://github.com/didikz/edotcommerce","last_synced_at":"2026-03-07T18:32:17.829Z","repository":{"id":256236926,"uuid":"854687369","full_name":"didikz/edotcommerce","owner":"didikz","description":"Edotcommerce Prototype built with Nestjs","archived":false,"fork":false,"pushed_at":"2024-09-09T16:41:49.000Z","size":411,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T13:35:55.311Z","etag":null,"topics":["javascript","nestjs","rest-api"],"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/didikz.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":"2024-09-09T15:54:45.000Z","updated_at":"2024-09-09T16:41:53.000Z","dependencies_parsed_at":"2024-09-09T19:42:07.747Z","dependency_job_id":"99086e45-c0a2-437c-aa5d-90f101a1f556","html_url":"https://github.com/didikz/edotcommerce","commit_stats":null,"previous_names":["didikz/edotcommerce"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/didikz/edotcommerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didikz%2Fedotcommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didikz%2Fedotcommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didikz%2Fedotcommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didikz%2Fedotcommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/didikz","download_url":"https://codeload.github.com/didikz/edotcommerce/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didikz%2Fedotcommerce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30226247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T18:12:09.766Z","status":"ssl_error","status_checked_at":"2026-03-07T18:11:58.786Z","response_time":53,"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":["javascript","nestjs","rest-api"],"created_at":"2024-09-26T07:01:06.546Z","updated_at":"2026-03-07T18:32:17.807Z","avatar_url":"https://github.com/didikz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EDOTCOMMERCE API\n\nAn API for EDOTCOMMERCE platform. Consists of\n\n+ [x] Authentication API: POST `/v1/auth`\n+ [ ] Get Products API: GET `/v1/products`\n+ [ ] Get Product detail API: GET `/v1/products/{slug}`\n+ [ ] Get Carts API: GET `/v1/carts`\n+ [ ] Put Item to Cart: PUT `/v1/carts`\n+ [ ] Delete Item from Cart: DELETE `/v1/carts`\n+ [ ] Checkout Order: POST `/v1/carts/checkout`\n\n## Entity Relationship Diagram\n\n![ERD Diagram](./edotcommerce.png)\n\n## Setup \u0026 Installations\n\n+ Clone repository\n+ Install dependencies `npm install`\n+ Run mysql server and create database named `edotcommerce`\n+ adjust database configuration by copying env file `cp .env.example .env`\n+ Run migration using `npm run migration:run` or import sql file `edotcommerce.sql` to created database\n+ Run API with `npm run start:dev`\n\n## API Documentation\n\n### Authentication\n\nAuthentication API is used to authenticate users for accessing protected resources in the application.\n\n+ Method: `POST`\n+ Endpoint: `/v1/auth`\n+ Content-Type: `application/json`\n+ Request:\n\n```json\n{\n    \"mail_phone\": \"08123456\",\n    \"password\": \"secret123\"\n}\n```\n\n\u003e + `mail_phone`: string, required, could be phone number or email address\n\u003e + `password`: string, required\n\n+ Response success (200)\n\n```json\n{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwidXNlcm5hbWUiOiJqb2huZG9lQGdtYWlsLmNvbSIsImlhdCI6MTcyNTgxODQ4MiwiZXhwIjoxNzI1ODIyMDgyfQ.jnf13mRY6S3oD83dCqkLY9hVKRR0ktaEP5cBd0g0NHY\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidikz%2Fedotcommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdidikz%2Fedotcommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidikz%2Fedotcommerce/lists"}