{"id":19510356,"url":"https://github.com/surajmendhe5573/authentication","last_synced_at":"2026-04-06T21:34:48.304Z","repository":{"id":252111555,"uuid":"839453342","full_name":"surajmendhe5573/Authentication","owner":"surajmendhe5573","description":"Authentication APIs","archived":false,"fork":false,"pushed_at":"2024-08-08T16:51:42.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T23:51:26.685Z","etag":null,"topics":["authentication","expressjs","mongodb","nodejs","nodemailer","rest-api"],"latest_commit_sha":null,"homepage":"","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/surajmendhe5573.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-08-07T16:31:31.000Z","updated_at":"2024-08-08T16:51:45.000Z","dependencies_parsed_at":"2024-11-10T23:15:42.092Z","dependency_job_id":null,"html_url":"https://github.com/surajmendhe5573/Authentication","commit_stats":null,"previous_names":["surajmendhe5573/authentication"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/surajmendhe5573/Authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajmendhe5573%2FAuthentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajmendhe5573%2FAuthentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajmendhe5573%2FAuthentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajmendhe5573%2FAuthentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/surajmendhe5573","download_url":"https://codeload.github.com/surajmendhe5573/Authentication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajmendhe5573%2FAuthentication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31491097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"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":["authentication","expressjs","mongodb","nodejs","nodemailer","rest-api"],"created_at":"2024-11-10T23:15:39.343Z","updated_at":"2026-04-06T21:34:48.277Z","avatar_url":"https://github.com/surajmendhe5573.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Product Management and Contact APIs\n\nThis project provides a basic API for user authentication and product management using Node.js, Express.js, and MongoDB. It includes endpoints for user sign-up, sign-in, and product operations.\n\n## Features\n\n- User sign-up and sign-in with JWT authentication\n- Product management operations (Create and Retrieve Products)\n- Send Notifications via email\n\n# API Endpoints \n\n## User Endpoints\n\n### Sign Up\n- **URL:** `http://localhost:6000/users/signup`\n- **Method:** `POST`\n- **Description:** Registers a new user.\n- **Request Body:**\n  ```json\n  {\n    \"username\": \"string\",\n    \"email\": \"string\",\n    \"password\": \"string\"\n  }\n\n\n### Sign In\n\n **URL:** `http://localhost:6000/users/signin`\n\n**Method:** `POST`\n\n**Description:** Authenticate a user and return a JWT token.\n\n**Request Headers:**\n- Content-Type: `application/json`\n\n**Request Body:**\n```json\n{\n  \"email\": \"string\",\n  \"password\": \"string\"\n}\n```\n\n\n## Product Endpoints\n\n### Create Product\n\n **URL:** `http://localhost:6000/products/create`\n\n**Method:** `POST`\n\n**Description:** Upload a new product.\n\n**Request Headers:**\n- Content-Type: `application/json`\n\n**Request Body:**\n```json\n{\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"price\": \"number\",\n  \"stock\": \"number\"\n}\n\n```\n\n### Fetch Products\n\n **URL:** `http://localhost:6000/products/fetch`\n\n**Method:** `GET`\n\n**Description:** Retrieve a list of all products.\n\n\n### Contact Form API\n- **URL:** `http://localhost:6000/contact`\n- **Method:** `POST`\n- **Description:** Handles contact form submissions and sends an email with the submitted details..\n**Request Body:**\n\nThe request body should be in JSON format and include the following fields:\n- `name` (string): The name of the person submitting the form.\n- `email` (string): The email address of the person submitting the form.\n- `message` (string): The message/content of the contact form.\n\n**Example Request:**\n\n```json\n{\n  \"name\": \"John Doe\",\n  \"email\": \"johndoe@example.com\",\n  \"message\": \"Hello, this is a test message!\"\n}\n```\n**Response:**\n\n```json\n{\n  \"message\": \"Email sent successfully\"\n}\n```\n\n## Set Up Environment Variables\n\nCreate a `.env` file in the root directory of your project and add your environment variables. Below is an example `.env` file:\n\n**Example `.env` file:**\n```env\nSecretKey=your_jwt_secret_key\nMONGO_URI=mongodb://localhost:27017/defaultdb\nPORT=3000\nEMAIL_USER=your-email@gmail.com\nEMAIL_PASS=your-email-password\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurajmendhe5573%2Fauthentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurajmendhe5573%2Fauthentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurajmendhe5573%2Fauthentication/lists"}