{"id":23272346,"url":"https://github.com/letsdeepchat/login-project-with-mern","last_synced_at":"2025-04-06T09:52:38.452Z","repository":{"id":233938928,"uuid":"787961965","full_name":"letsdeepchat/login-project-with-mern","owner":"letsdeepchat","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-27T08:52:37.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T15:40:50.206Z","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-17T14:10:42.000Z","updated_at":"2024-04-27T08:52:41.000Z","dependencies_parsed_at":"2024-04-27T09:53:10.284Z","dependency_job_id":null,"html_url":"https://github.com/letsdeepchat/login-project-with-mern","commit_stats":null,"previous_names":["deepak14ri/login-project-with-mern","letsdeepchat/login-project-with-mern"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2Flogin-project-with-mern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2Flogin-project-with-mern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2Flogin-project-with-mern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdeepchat%2Flogin-project-with-mern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letsdeepchat","download_url":"https://codeload.github.com/letsdeepchat/login-project-with-mern/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:14:50.632Z","updated_at":"2025-04-06T09:52:38.414Z","avatar_url":"https://github.com/letsdeepchat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jurysoft Machine Test Backend Post\n\nScenario:\nSuppose you are making an ecommerce system where you are\nhandling the whole development of the backend. The products\nyou are going to sell in the website/application will have a\ncategory for that you have to store id and name. For each\ncategory there will be N numbers of products. Product will contain\nname, price, stock, selling count, category. As a Database you\nhave to use arrays.\n\nWhat needs to be done?\n1. Single api to login for user and admin using username and\npassword. If the username is user@gmail.com and\npassword is 1234 then the user should be able to login as\nuser if admin@gmail.com and password 1234 then it should\nlogin as admin.\n2. Api to create (only for admin), update (only for admin),\ndelete (only for admin) (If there is any product in that\ncategory then it should not delete), fetch all with search\n(for all), fetch single by id for category (for all).\n3. Api to create (only for admin), update (only for admin),\ndelete (only for admin) (If the product has been added to\ncart then it should not be deleted), fetch all with search\n(for all), fetch single by id for products (for all).\n4. Api for adding the product to cart by user\n5. Api for removing from cart by user\n\n6. Api to increase the quantity in cart by user\n\nJurysoft Machine Test Backend Post\n\nWhat should be submitted?\n1. Zipped code (Laravel / Node js / Python)\n2. Postman collection zip\nTime allotted: 2 Hours\n\n## Installation\n\n1. Install dependencies:\n\n\u003cimg width=\"185\" alt=\"image\" src=\"https://github.com/deepak14ri/login-project-with-mern/assets/49471265/c7072ee5-4a9a-45c3-a54c-29e12b5d3bef\"\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%2Flogin-project-with-mern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletsdeepchat%2Flogin-project-with-mern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsdeepchat%2Flogin-project-with-mern/lists"}