{"id":23272425,"url":"https://github.com/letsdeepchat/codeoptim-assignment","last_synced_at":"2025-04-06T09:53:07.701Z","repository":{"id":267236029,"uuid":"791736078","full_name":"letsdeepchat/CodeOptim-Assignment","owner":"letsdeepchat","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-25T09:25:33.000Z","size":2532,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T15:41:48.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/letsdeepchat.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-04-25T09:15:21.000Z","updated_at":"2024-04-25T09:25:35.000Z","dependencies_parsed_at":"2024-12-09T07:48:28.853Z","dependency_job_id":null,"html_url":"https://github.com/letsdeepchat/CodeOptim-Assignment","commit_stats":null,"previous_names":["letsdeepchat/codeoptim-assignment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2FCodeOptim-Assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2FCodeOptim-Assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2FCodeOptim-Assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2FCodeOptim-Assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letsdeepchat","download_url":"https://codeload.github.com/letsdeepchat/CodeOptim-Assignment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247463933,"owners_count":20942950,"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":[],"created_at":"2024-12-19T19:15:40.557Z","updated_at":"2025-04-06T09:53:07.683Z","avatar_url":"https://github.com/letsdeepchat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeOptim Backend Assignment\n\nCreate an Application For E-commerce Platform.\nCreate an E-commerce Platform’s API Endpoints, which are mentioned below:\n(MongoDB is preferable.)\n• Register API for our customers. Store admin credentials using seeding or\nmigration.\n• Login API for our customers.\n• Create the crud APIs for the product.\n• Create add-to-cart functionality with payment gateway integration(You can\ncreate a Sandbox account for any service like Stripe or PayPal. Etc.,.\nRequirements:\nThey can add products to the cart without login, but when they pay the\namount, they need to do login. (make this validation from the backend before payment.)\n\n## Installation\n\n1. Install dependencies:\n\n\u003cimg width=\"281\" alt=\"image\" src=\"https://github.com/deepak14ri/CodeOptim-Assignment/assets/49471265/63a06caf-4044-4e5c-8b4c-e5a391a986a0\"\u003e\n\n\n## Usage\n\n### Running the Server\n\nTo start the server, run the following command:\n\n# npm start\n\n### Running the Client\n\nTo run the client, use the following command:\n\n# npm run dev\n\n### Other Commands\n\nTo get node_modules\n\nnpm install\n\n### Endpoints\n\n#### User Signup\n- **Method:** POST\n- **URL:** http://localhost:4000/user/signup\n- **Description:** Endpoint for user registration/signup.\n\n#### User Login\n- **Method:** GET\n- **URL:** http://localhost:4000/user/login\n- **Description:** Endpoint for user login.\n\n#### Product and Category CRUD Operations\n- **Method:** GET/POST/PUT/PATCH/DELETE\n- **URL:** http://localhost:4000/user\n- **Description:** Endpoint to perform CRUD operations for products or categories. Depending on the request type and parameters, you can create, retrieve, update, or delete products or categories.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsdeepchat%2Fcodeoptim-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletsdeepchat%2Fcodeoptim-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsdeepchat%2Fcodeoptim-assignment/lists"}